提交 9148fa5c 编写于 作者: C chenguowei01

add speed to vdl

上级 dabacffe
......@@ -212,6 +212,8 @@ def train(model,
if use_vdl:
log_writer.add_scalar('Train/loss', avg_loss, num_steps)
log_writer.add_scalar('Train/lr', lr, num_steps)
log_writer.add_scalar('Train/time_step', time_step,
num_steps)
avg_loss = 0.0
timer.restart()
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册