未验证 提交 dbb981d3 编写于 作者: Y yukavio 提交者: GitHub

fix demo/prune log (#598)

上级 e929d987
......@@ -239,7 +239,7 @@ def compress(args):
for i in range(args.num_epochs):
train(i, train_program)
if i % args.test_period == 0:
if (i + 1) % args.test_period == 0:
test(i, pruned_val_program)
save_model(exe, pruned_val_program,
os.path.join(args.model_path, str(i)))
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册