From 8a2ce0f26f346ad06193c9285a0f5617e3111e34 Mon Sep 17 00:00:00 2001 From: Aurelius84 Date: Wed, 10 Nov 2021 17:40:27 +0800 Subject: [PATCH] Fix inner_program in Executor (#37083) --- python/paddle/fluid/executor.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/python/paddle/fluid/executor.py b/python/paddle/fluid/executor.py index 4d731b2a171..dd5744203d5 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 -- GitLab