!33974 Fix Warnging Log

Merge pull request !33974 from huangxinjing/fix_warning_log
This commit is contained in:
i-robot 2022-05-10 01:16:03 +00:00 committed by Gitee
commit f046c05bbc
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
2 changed files with 2 additions and 4 deletions

View File

@ -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;
}

View File

@ -1676,8 +1676,6 @@ void SetSharedParameterFlag(const FuncGraphPtr &root, const AnfNodePtr &paramete
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.";
}
}