diff --git a/python/paddle/fluid/executor.py b/python/paddle/fluid/executor.py index ce1c55bd1716882c2edd2090567e6a2102ac2b9f..2c9a0a458fba737dd65e72a5ba9a94518cfcc8df 100755 --- a/python/paddle/fluid/executor.py +++ b/python/paddle/fluid/executor.py @@ -1585,8 +1585,6 @@ class Executor: program = pruned_program def _can_use_interpreter_core(program, place): - if core.is_compiled_with_mlu(): - return False compiled = isinstance( program, compiler.CompiledProgram @@ -1606,28 +1604,6 @@ class Executor: ) return False - # Unsupported case 2: async mode - if ( - compiled_program._build_strategy is not None - and compiled_program._build_strategy.async_mode - ): - warnings.warn( - "Standalone executor is not used for async mode", - UserWarning, - ) - return False - - # Unsupported case 3: CUDA Graph - if ( - compiled_program._build_strategy is not None - and compiled_program._build_strategy.allow_cuda_graph_capture - and not _is_cuda_graph_enable_standalone_executor() - ): - warnings.warn( - "Standalone executor is not used for CUDA Graph when FLAGS_CUDA_GRAPH_USE_STANDALONE_EXECUTOR=0", - UserWarning, - ) - return False return True if self._enable_interpreter_core and _can_use_interpreter_core(