pytorch / 2 / generated / torch.autograd.profiler.profile.export_chrome_trace.html

torch.autograd.profiler.profile.export_chrome_trace

profile.export_chrome_trace(path) [source]

Exports an EventList as a Chrome tracing tools file.

The checkpoint can be later loaded and inspected under chrome://tracing URL.

Parameters

path (str) – Path where the trace will be written.

© 2024, PyTorch Contributors
PyTorch has a BSD-style license, as found in the LICENSE file.
https://pytorch.org/docs/2.1/generated/torch.autograd.profiler.profile.export_chrome_trace.html