forked from mindspore-Ecosystem/mindspore
!33974 Fix Warnging Log
Merge pull request !33974 from huangxinjing/fix_warning_log
This commit is contained in:
commit
f046c05bbc
|
@ -198,11 +198,11 @@ Status AllreduceGraph::set_head_cnode(const CNodePtr &node) {
|
|||
cnode_arnode_map_[node] = arnode;
|
||||
auto arnode_emplace_return = arnode_set_.insert(arnode);
|
||||
if (!arnode_emplace_return.second) {
|
||||
MS_LOG(WARNING) << "node: " << node->DebugString() << "'s arnode has already been added!";
|
||||
MS_LOG(DEBUG) << "node: " << node->DebugString() << "'s arnode has already been added!";
|
||||
}
|
||||
auto cnode_emplace_return = cnode_set_.emplace(node);
|
||||
if (!cnode_emplace_return.second) {
|
||||
MS_LOG(WARNING) << "node: " << node->DebugString() << " has already been added!";
|
||||
MS_LOG(DEBUG) << "node: " << node->DebugString() << " has already been added!";
|
||||
}
|
||||
return SUCCESS;
|
||||
}
|
||||
|
|
|
@ -1676,8 +1676,6 @@ void SetSharedParameterFlag(const FuncGraphPtr &root, const AnfNodePtr ¶mete
|
|||
if (user_count > 1) {
|
||||
auto tensor_layout = parameter_ptr->user_data<TensorLayout>();
|
||||
tensor_layout->set_is_shared_param(true);
|
||||
MS_LOG(WARNING) << "There are multiple users for " << parameter->ToString()
|
||||
<< ". Mixed precision optimization is not valid here.";
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue