提交 9e9d4562 编写于 作者: Q qiaolongfei

fix pre-commit check

上级 35f1dfde
......@@ -69,7 +69,8 @@ def main():
def event_handler(event):
if isinstance(event, paddle.event.EndIteration):
if event.batch_id % 100 == 0:
trainer.save_parameter_to_tar("output", "batch-" + str(event.batch_id))
trainer.save_parameter_to_tar("output",
"batch-" + str(event.batch_id))
result = trainer.test(
paddle.batch(
paddle.dataset.imikolov.test(word_dict, N), 32))
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册