未验证 提交 ccc54188 编写于 作者: Y Yancey 提交者: GitHub

Don't save var which type is RAW (#8928)

上级 aa3f5058
...@@ -102,6 +102,9 @@ def save_vars(executor, ...@@ -102,6 +102,9 @@ def save_vars(executor,
save_var_map = {} save_var_map = {}
for each_var in vars: for each_var in vars:
# NOTE: don't save the variable which type is RAW
if each_var.type == core.VarDesc.VarType.RAW:
continue
new_var = _clone_var_in_block_(save_block, each_var) new_var = _clone_var_in_block_(save_block, each_var)
if filename is None: if filename is None:
save_block.append_op( save_block.append_op(
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册