pytorch / tutorials

PyTorch tutorials.
https://pytorch.org/tutorials/
BSD 3-Clause "New" or "Revised" License
8.23k stars 4.06k forks source link

pytorch profiler failed to record execution events #2996

Closed cfangplus closed 2 weeks ago

cfangplus commented 3 months ago

🚀 Describe the improvement or the new tutorial

I copy this python file here https://github.com/pytorch/tutorials/blob/main/intermediate_source/tensorboard_profiler_tutorial.py and run on my conda environment, however, it seems failed to record execution events because the log folder only create a json file and the tensorboard also failed to show the result. btw there is no error or exception thrown and my pytorch and torchvision version is ok.

Existing tutorials on this topic

No response

Additional context

No response

cc @aaronenyeshi @chaekit @jcarreiro

venkatram-dev commented 2 months ago

Please install torch_tb_profiler

pip install torch_tb_profiler

https://github.com/pytorch/tutorials/blob/main/intermediate_source/tensorboard_profiler_tutorial.py#L170C7-L170C36

cfangplus commented 2 months ago

Of course I followed the instructions and install tb. After step into the code, now I know the event file is actually json file, but the browser in my window environment still failed to show the result but browser in mac environment is successful.