未验证 提交 f3bdabc1 编写于 作者: 石晓伟 提交者: GitHub

fixes a bug, test=develop (#43970)

上级 5dfc0cd6
......@@ -376,7 +376,7 @@ def save_vars(executor,
vars=list(filter(predicate, main_program.list_vars())),
filename=filename)
else:
params_var_name = unique_name.generate("saved_params")
params_var_name = "saved_params"
# give warning when there is no var in model
if len(list(vars)) == 0:
warnings.warn(
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册