If we pass --profile options to train.py, the profiler is enabled and output the statistics for each operation.
The StatSummarizer class is originally used in the TensorFlow Model Benchmark Tool, but it is not exposed in any public python API. I'm not sure whether it would be removed in the future.
If we pass
--profile
options totrain.py
, the profiler is enabled and output the statistics for each operation.The
StatSummarizer
class is originally used in the TensorFlow Model Benchmark Tool, but it is not exposed in any public python API. I'm not sure whether it would be removed in the future.