提交 31016773 编写于 作者: S shippingwang

fix

上级 d3bad33f
...@@ -444,8 +444,8 @@ def run(dataloader, ...@@ -444,8 +444,8 @@ def run(dataloader,
logger.scaler('loss', metrics[0][0], total_step, vdl_writer) logger.scaler('loss', metrics[0][0], total_step, vdl_writer)
total_step += 1 total_step += 1
if mode == 'eval': if mode == 'eval':
if idx % config.get('print_interval', 1) == 0: if idx % config.get('print_interval', 10) == 0:
logger.info("{:s} step:{:<4d} {:s}s".format(mode, idx, logger.info("{:s} step:{:<4d} {:s}".format(mode, idx,
fetchs_str)) fetchs_str))
else: else:
epoch_str = "epoch:{:<3d}".format(epoch) epoch_str = "epoch:{:<3d}".format(epoch)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册