From f806d8d8723a52e2b9ec64bbd589da57a5bb2fbb Mon Sep 17 00:00:00 2001 From: tink2123 Date: Tue, 19 May 2020 11:32:40 +0800 Subject: [PATCH] format code --- tools/program.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/program.py b/tools/program.py index a12e3360..67cef9bc 100755 --- a/tools/program.py +++ b/tools/program.py @@ -348,7 +348,7 @@ def train_eval_rec_run(config, exe, train_info_dict, eval_info_dict): except fluid.core.EOFException: train_loader.reset() - if epoch ==0 and save_epoch_step == 1: + if epoch == 0 and save_epoch_step == 1: save_path = save_model_dir + "/iter_epoch_0" save_model(train_info_dict['train_program'],save_path) if epoch > 0 and epoch % save_epoch_step == 0: -- GitLab