From 16ec4b8c8bd5c95c38c39d2a2528027b4a1930b6 Mon Sep 17 00:00:00 2001 From: Qiao Longfei Date: Tue, 12 Feb 2019 13:37:25 +0800 Subject: [PATCH] clean code test=develop --- python/paddle/fluid/compiler.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/python/paddle/fluid/compiler.py b/python/paddle/fluid/compiler.py index f3935e22b4..2b69fd89a2 100644 --- a/python/paddle/fluid/compiler.py +++ b/python/paddle/fluid/compiler.py @@ -120,8 +120,7 @@ class CompiledProgram(object): self._exec_strategy = ExecutionStrategy() if self._build_strategy is None: self._build_strategy = BuildStrategy() - self._build_strategy.is_distribution = _is_pserver_mode( - self._program) or self._build_strategy.num_trainers > 1 + self._build_strategy.is_distribution = _is_pserver_mode(self._program) return self def with_inference_optimize(self, config): -- GitLab