未验证 提交 afa50f45 编写于 作者: S ShenLiang 提交者: GitHub

[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)
上级 8cd8cd53
...@@ -225,7 +225,7 @@ void Reducer::MarkVariableReady(const VariableIndex &var_index, ...@@ -225,7 +225,7 @@ void Reducer::MarkVariableReady(const VariableIndex &var_index,
void Reducer::MarkGroupReady(size_t group_index) { void Reducer::MarkGroupReady(size_t group_index) {
if (group_index > next_group_) { 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; return;
} }
......
...@@ -615,10 +615,10 @@ class Fleet(object): ...@@ -615,10 +615,10 @@ class Fleet(object):
if strategy is not None: if strategy is not None:
warnings.warn( warnings.warn(
"It is recommended to pass in DistributedStrategy" "It is recommended to use DistributedStrategy "
"in fleet.init. The strategy here is for compatibility." "in fleet.init(). The strategy here is only for compatibility. "
"If the `strategy` in fleet.distributed_optimizer() is" "If the strategy in fleet.distributed_optimizer() is "
"not None, then it will overwrite the DistributedStrategy in fleet.init()," "not None, then it will overwrite the DistributedStrategy in fleet.init(), "
"which will take effect in distributed training.") "which will take effect in distributed training.")
self._user_defined_strategy = copy.deepcopy(strategy) self._user_defined_strategy = copy.deepcopy(strategy)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册