From afa50f45783f58591ad1ad23abe8f5e9a07aeb1f Mon Sep 17 00:00:00 2001 From: ShenLiang Date: Thu, 3 Dec 2020 19:44:57 +0800 Subject: [PATCH] [Cherry-Pick]Fix reducer warning & fix doc of fleet (#29333) * fix the warning of reducer (#29323) * fix warning of fleet (#29317) * Fix doc of fleet api (#29282) --- paddle/fluid/imperative/reducer.cc | 2 +- python/paddle/distributed/fleet/base/fleet_base.py | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/paddle/fluid/imperative/reducer.cc b/paddle/fluid/imperative/reducer.cc index 71d68fa2e0..3f0703f05a 100644 --- a/paddle/fluid/imperative/reducer.cc +++ b/paddle/fluid/imperative/reducer.cc @@ -225,7 +225,7 @@ void Reducer::MarkVariableReady(const VariableIndex &var_index, void Reducer::MarkGroupReady(size_t group_index) { if (group_index > next_group_) { - LOG(WARNING) << "Maybe it need adjust the order of group"; + VLOG(3) << "Maybe it need adjust the order of group"; return; } diff --git a/python/paddle/distributed/fleet/base/fleet_base.py b/python/paddle/distributed/fleet/base/fleet_base.py index 75e22807e4..9ea912c78c 100644 --- a/python/paddle/distributed/fleet/base/fleet_base.py +++ b/python/paddle/distributed/fleet/base/fleet_base.py @@ -615,10 +615,10 @@ class Fleet(object): if strategy is not None: warnings.warn( - "It is recommended to pass in DistributedStrategy" - "in fleet.init. The strategy here is for compatibility." - "If the `strategy` in fleet.distributed_optimizer() is" - "not None, then it will overwrite the DistributedStrategy in fleet.init()," + "It is recommended to use DistributedStrategy " + "in fleet.init(). The strategy here is only for compatibility. " + "If the strategy in fleet.distributed_optimizer() is " + "not None, then it will overwrite the DistributedStrategy in fleet.init(), " "which will take effect in distributed training.") self._user_defined_strategy = copy.deepcopy(strategy) -- GitLab