torch.profiler — PyTorch 1.10.1 documentation
pytorch.org › docs › stablePyTorch Profiler is a tool that allows the collecton of the performance metrics during the training and inference. Profiler’s context manager API can be used to better understand what model operators are the most expensive, examine their input shapes and stack traces, study device kernel activity and visualize the execution trace. Note