未验证 提交 86b17393 编写于 作者: W wangguanzhong 提交者: GitHub

fix prune interface (#3472)

上级 7759fb75
......@@ -106,7 +106,7 @@ def prune_feed_vars(feeded_var_names, target_vars, prog):
"""
exist_var_names = []
prog = prog.clone()
prog = prog._prune(feeded_var_names, targets=target_vars)
prog = prog._prune(targets=target_vars)
global_block = prog.global_block()
for name in feeded_var_names:
try:
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册