From 221e137685dc79a4fcdf95f0060931f45a2ff3cc Mon Sep 17 00:00:00 2001 From: Ruibiao Chen Date: Tue, 2 Aug 2022 19:22:50 +0800 Subject: [PATCH] Skip not return_merged cases for standalone executor (#44810) --- python/paddle/fluid/executor.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/paddle/fluid/executor.py b/python/paddle/fluid/executor.py index 9813a7795e1..09e7223bdf5 100755 --- a/python/paddle/fluid/executor.py +++ b/python/paddle/fluid/executor.py @@ -1431,7 +1431,7 @@ class Executor(object): # NOTE: This is an experimental feature. If `export FLAGS_USE_STANDALONE_EXECUTOR=1 `, # use StandaloneExecutor to run the program. - if self._enable_interpreter_core and _can_use_interpreter_core( + if return_merged and self._enable_interpreter_core and _can_use_interpreter_core( program, self.place): inner_program = program._program if isinstance( program, compiler.CompiledProgram) else program -- GitLab