diff --git a/python/paddle/fluid/executor.py b/python/paddle/fluid/executor.py index a8b342feeebc9d0594b2af3198f49bffc287c7ff..f4ee554c19a32edc0edab39d74511e980c411d4e 100755 --- a/python/paddle/fluid/executor.py +++ b/python/paddle/fluid/executor.py @@ -1419,6 +1419,12 @@ class Executor(object): if program._build_strategy is not None and program._build_strategy.allow_cuda_graph_capture: return False + # Unsupported case 6: distributed + if program._build_strategy is not None and ( + program._build_strategy.is_distribution + or program._build_strategy.num_trainers > 1): + return False + # Unsupported case 6 : disabled by FLAGS_CONVERT_GRAPH_TO_PROGRAM if os.environ.get('FLAGS_CONVERT_GRAPH_TO_PROGRAM', None) not in [1, '1', True, 'True', 'true']: