tlparse: Parse structured PT2 logs
tlparse parses structured torch trace logs and outputs HTML files analyzing data.
Quick start: Run PT2 with the TORCH_TRACE environment variable set:
TORCH_TRACE=/tmp/my_traced_log_dir python example.py
Feed input into tlparse (this will process the latest log file in the directory):
tlparse /tmp/my_traced_log_dir -o tl_out/ --latest
You can also specify a log filename:
tlparse /tmp/my_traced_log_dir/dedicated_log_torch_trace_ro2i1hvn.log -o tl_out/
Adding custom parsers
You can extend tlparse with custom parsers which take existing structured log data and output any file. To do so, first implement StructuredLogParser with your own trait:
;
How to release
- Make a release commit by updating Cargo.toml and then running cargo update
- Push the release commit and a tag for it. This will trigger PyPI release
- cargo publish