From 68629ba56420ad7e20919ff629c88d98358914c8 Mon Sep 17 00:00:00 2001 From: Haohongxiang <86215757+haohongxiang@users.noreply.github.com> Date: Thu, 15 Dec 2022 10:14:26 +0800 Subject: [PATCH] fix bug (#49081) --- .../fleet/meta_optimizers/graph_execution_optimizer.py | 6 ------ 1 file changed, 6 deletions(-) diff --git a/python/paddle/distributed/fleet/meta_optimizers/graph_execution_optimizer.py b/python/paddle/distributed/fleet/meta_optimizers/graph_execution_optimizer.py index fa9510aa40..a7610ded24 100644 --- a/python/paddle/distributed/fleet/meta_optimizers/graph_execution_optimizer.py +++ b/python/paddle/distributed/fleet/meta_optimizers/graph_execution_optimizer.py @@ -71,12 +71,6 @@ class GraphExecutionOptimizer(MetaOptimizerBase): if trainer_id == 0 and not paddle.is_compiled_with_npu(): wait_server_ready(other_trainers) - if ( - build_strategy.reduce_strategy - == BuildStrategy.ReduceStrategy._NoReduce - ): - return - if core.is_compiled_with_cuda(): comm_id_var = startup_program.global_block().create_var( name="NCCLID", persistable=True, type=core.VarDesc.VarType.RAW -- GitLab