未验证 提交 cf0c640b 编写于 作者: D Dong Daxiang 提交者: GitHub

Merge branch 'master' into master

...@@ -89,8 +89,11 @@ while not trainer.stop(): ...@@ -89,8 +89,11 @@ while not trainer.stop():
step_i += 1 step_i += 1
print("batch %d start train" % (step_i)) print("batch %d start train" % (step_i))
trainer.run(feed=data, fetch=[]) trainer.run(feed=data, fetch=[])
if step_i % 100 == 0: if trainer_id == 0:
print("start saving model")
trainer.save_inference_program(output_folder) trainer.save_inference_program(output_folder)
if step_i >= 100:
break
``` ```
On FL Server Node, a training script is defined as follows: On FL Server Node, a training script is defined as follows:
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册