From 9e9d456220e1718d0fe2e24a509fa2a9eb324d7c Mon Sep 17 00:00:00 2001 From: qiaolongfei Date: Mon, 24 Apr 2017 15:27:52 +0800 Subject: [PATCH] fix pre-commit check --- demo/word2vec/api_train_v2.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/demo/word2vec/api_train_v2.py b/demo/word2vec/api_train_v2.py index 8fea6feeef0..98ade830cf5 100644 --- a/demo/word2vec/api_train_v2.py +++ b/demo/word2vec/api_train_v2.py @@ -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)) -- GitLab