提交 5ea7d098 编写于 作者: Z zhangxuefei

Update the order of step and epoch_id in the print function (train.py line128)

上级 502e70b0
...@@ -125,7 +125,7 @@ def train(nn_type, ...@@ -125,7 +125,7 @@ def train(nn_type,
feed=feeder.feed(data), feed=feeder.feed(data),
fetch_list=[avg_loss, acc]) fetch_list=[avg_loss, acc])
if step % 100 == 0: if step % 100 == 0:
print("Pass %d, Batch %d, Cost %f" % (step, epoch_id, print("Pass %d, Batch %d, Cost %f" % (epoch_id, step,
metrics[0])) metrics[0]))
step += 1 step += 1
# test for epoch # test for epoch
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册