Solved by ptrblck in post #4 
              
              
                I think you could reuse the provided code snippets from the blog post, e.g. something like this should work: 
 with torch.profiler.profile(
    schedule=torch.profiler.schedule(
        wait=2,
        warmup=2,
        active=6,
        repeat=1),
    on_trace_ready=tensorboard_trace_handler,
    w…