fix warning of fleet (#29317)

revert-31562-mean
ShenLiang 4 years ago committed by GitHub
parent 40f9dbd26e
commit 2d6aa1a5bb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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)

Loading…
Cancel
Save