提交 7a935b17 编写于 作者: Y Yang Yu

Polish code

上级 f044b23f
......@@ -122,11 +122,9 @@ def main():
PASS_NUM = 100
for pass_id in range(PASS_NUM):
for batch_id, data in enumerate(train_reader()):
need_check = (batch_id + 1) % 10 == 0
# train a mini-batch, fetch nothing
exe.run(feed=feeder.feed(data))
if need_check:
if (batch_id + 1) % 10 == 0:
acc_set = []
avg_loss_set = []
for test_data in test_reader():
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册