torch.autograd.profiler.profile.export_chrome_trace

profile.export_chrome_trace(path)[源代码]

将 EventList 导出为 Chrome tracing 工具支持的文件格式。

检查点稍后可以在 chrome://tracing URL 下加载和查看。

参数

path (str) – 指定跟踪记录将被写入的路径。