提交 54d27a12 编写于 作者: M mmglove 提交者: cuicheng01

fix profiler

上级 427b293c
...@@ -99,10 +99,10 @@ def add_profiler_step(options_str=None): ...@@ -99,10 +99,10 @@ def add_profiler_step(options_str=None):
if _profiler_options is None: if _profiler_options is None:
_profiler_options = ProfilerOptions(options_str) _profiler_options = ProfilerOptions(options_str)
# profile 3个纬度打印性能数据 https://www.paddlepaddle.org.cn/documentation/docs/zh/guides/performance_improving/profiling_model.html#chakanxingnengshujudetongjibiaodan # profile : https://www.paddlepaddle.org.cn/documentation/docs/zh/guides/performance_improving/profiling_model.html#chakanxingnengshujudetongjibiaodan
# timer_only = True 仅展示模型的吞吐量以及时间开销 # timer_only = True only the model's throughput and time overhead are displayed
# timer_only = False 调用 summary 能够打印统计表单,通过不同角度的表单呈现性能数据 # timer_only = False calling summary can print a statistical form that presents performance data from different perspectives.
# timer_only = False 同时产出Timeline 信息在 profiler_log目录下 # timer_only = False the output Timeline information can be found in the profiler_log directory
if _prof is None: if _prof is None:
_prof = profiler.Profiler( _prof = profiler.Profiler(
scheduler = (_profiler_options['batch_range'][0], _profiler_options['batch_range'][1]), scheduler = (_profiler_options['batch_range'][0], _profiler_options['batch_range'][1]),
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册