提交 6feed453 编写于 作者: W wuzewu

fix bug

上级 dfa96d6d
......@@ -501,7 +501,7 @@ class ModuleUtils(object):
output_var = next_program.global_block().var(key)
var_info = copy.deepcopy(get_variable_info(output_var))
output_var = new_program.global_block().create_var(**var_info)
new_program.global_block()._prepend_op(
new_program.global_block().append_op(
type="assign",
inputs={'X': input_var},
outputs={'Out': output_var})
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册