diff --git a/python/paddle/fluid/executor.py b/python/paddle/fluid/executor.py index 3b21262cc4b144de111f9df57224c634850f3753..9a839acde04f22b4598e4c0b39e46febff225306 100755 --- a/python/paddle/fluid/executor.py +++ b/python/paddle/fluid/executor.py @@ -1570,12 +1570,6 @@ class Executor(object): compiled_program = program if isinstance( program, compiler.CompiledProgram) else program._graph - # delete this code after supporting compiled_program._graph - if compiled_program._program is None: - warnings.warn("Standalone executor is not used for Graph", - UserWarning) - return use_standalone_executor_for_distribution - # delete this code after supporting distribution if compiled_program._build_strategy is not None and ( compiled_program._build_strategy.is_distribution