diff --git a/python/paddle/fluid/executor.py b/python/paddle/fluid/executor.py index 4d731b2a1714a294a8eefdcda48a5c61b8d1f2ba..dd5744203d54769f14e57f2aaf909f6d06fdb756 100644 --- a/python/paddle/fluid/executor.py +++ b/python/paddle/fluid/executor.py @@ -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