未验证 提交 f1813a3d 编写于 作者: T tangwei12 提交者: GitHub

Merge branch 'master' into add_readme

......@@ -198,7 +198,7 @@ class SingleInfer(TranspileTrainer):
def executor_train(self, context):
epochs = int(
envs.get_global_env("runner." + self._runner_name + ".epochs"))
envs.get_global_env("runner." + self._runner_name + ".epochs", 1))
for j in range(epochs):
for model_dict in self._env["phase"]:
if j == 0:
......@@ -298,8 +298,6 @@ class SingleInfer(TranspileTrainer):
batch_id += 1
except fluid.core.EOFException:
reader.reset()
with open(model_dict['save_path'], 'w') as fout:
json.dump(infer_results, fout)
def terminal(self, context):
context['is_exit'] = True
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册