From 0cbc870e4d7c2bf7e9562e472c9ed0b53c531bf1 Mon Sep 17 00:00:00 2001 From: Ruibiao Chen Date: Fri, 5 Aug 2022 10:57:40 +0800 Subject: [PATCH] Skip distributed Program for standalone executor (#44897) --- python/paddle/fluid/executor.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/python/paddle/fluid/executor.py b/python/paddle/fluid/executor.py index a8b342feee..f4ee554c19 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']: -- GitLab