未验证 提交 b751a805 编写于 作者: L LielinJiang 提交者: GitHub

fix benchmark time count use hapi (#33225)

上级 4878f0e5
......@@ -395,6 +395,10 @@ class ProgBarLogger(Callback):
values.append(
('ips', "%.5f samples/sec" %
(samples / (timer['data_time'] + timer['batch_time']))))
timer['count'] = 0
timer['samples'] = 0
timer['data_time'] = 0.
timer['batch_time'] = 0.
progbar.update(steps, values)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册