-
Notifications
You must be signed in to change notification settings - Fork 3.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Save PyTorch profile data to CSV (#7114)
Enable to save pytorch profiling results to csv (top 5 most time consuming ops). - The --write-csv argument has been modified so that it can now take three values: **None** (do not write data to csv) **bench** (write benchmark data to csv) **prof** (write pytorch profiler data to csv) - Added new argument --export-chrome-trace, that enables to export chrome trace file (defaults to true). Example command to profile with pytorch and save results to csv: `python ./inference_benchmark.py --profile --write-csv prof --export-chrome-trace False` --------- Co-authored-by: rusty1s <matthias.fey@tu-dortmund.de>
- Loading branch information
Showing
6 changed files
with
151 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters