From 2d6aa1a5bb45ff938f28ad599ffecc320f137a6e Mon Sep 17 00:00:00 2001 From: ShenLiang Date: Thu, 3 Dec 2020 14:42:33 +0800 Subject: [PATCH] fix warning of fleet (#29317) --- python/paddle/distributed/fleet/base/fleet_base.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/python/paddle/distributed/fleet/base/fleet_base.py b/python/paddle/distributed/fleet/base/fleet_base.py index 75e22807e4e..9ea912c78c5 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