未验证 提交 8a2ce0f2 编写于 作者: A Aurelius84 提交者: GitHub

Fix inner_program in Executor (#37083)

上级 81cfbddc
......@@ -1305,8 +1305,8 @@ class Executor(object):
inner_program_ = program._program if isinstance(
program, compiler.CompiledProgram) else program
assert isinstance(inner_program_, framework.Program)
if not program._is_start_up_program_:
return self._executor_cache.run(program, scope, feed,
if not inner_program_._is_start_up_program_:
return self._executor_cache.run(inner_program_, scope, feed,
fetch_list, return_numpy)
# use_prune can be overrided by putting optimize_ops in fetch_list
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册