提交 82ba70be 编写于 作者: L liuyuhui

fix bug

上级 96569c50
......@@ -213,16 +213,12 @@ class RunnerBase(object):
if context["fleet_mode"].upper() == "PS":
train_prog = context["model"][model_dict[
"name"]]["main_program"]
print("condition 1 of bath id:{}".format(
batch_id))
else:
train_prog = context["model"][model_dict[
"name"]]["default_main_program"]
print("condition 2")
else:
train_prog = context["model"][model_dict["name"]][
"default_main_program"]
print("condition 3")
startup_prog = context["model"][model_dict["name"]][
"startup_program"]
with fluid.program_guard(train_prog, startup_prog):
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册