未验证 提交 d0d39cc0 编写于 作者: L liu zhengxi 提交者: GitHub

fix static save (#5091)

上级 89b9d0d6
...@@ -196,7 +196,7 @@ def do_train(args): ...@@ -196,7 +196,7 @@ def do_train(args):
if args.save_model: if args.save_model:
model_path = os.path.join( model_path = os.path.join(
args.save_model, "step_" + str(step_idx), "transformer") args.save_model, "step_" + str(step_idx), "transformer")
paddle.io.save(train_program, model_path) paddle.static.save(train_program, model_path)
batch_id += 1 batch_id += 1
step_idx += 1 step_idx += 1
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册