Browse Source

modify log level from warning to info

tags/v0.3.1-alpha
jjfeing 5 years ago
parent
commit
e78e819b7c
2 changed files with 4 additions and 5 deletions
  1. +1
    -1
      mindspore/ccsrc/device/ascend/ascend_label_assign.cc
  2. +3
    -4
      mindspore/ccsrc/session/ascend_session.cc

+ 1
- 1
mindspore/ccsrc/device/ascend/ascend_label_assign.cc View File

@@ -140,7 +140,7 @@ uint32_t AscendLabelAssign::GetLabelNum(NotNull<const session::KernelGraph *> gr
std::lock_guard<std::mutex> lock(label_num_mutex_);
auto iter = label_num_.find(graph.get());
if (iter == label_num_.end()) {
MS_LOG(WARNING) << "Graph " << graph->ToString() << " has not assigned label.";
MS_LOG(INFO) << "Graph " << graph->ToString() << " has not assigned label.";
return 1;
}
return iter->second;


+ 3
- 4
mindspore/ccsrc/session/ascend_session.cc View File

@@ -555,12 +555,11 @@ void AscendSession::SelectKernel(const KernelGraph &kernel_graph) const {
MS_LOG(INFO) << "Select ApplyKernel: " << cnode->DebugString();
}
if (raise_precision_count > 0) {
MS_LOG(DEBUG) << "There has " << raise_precision_count
<< " node/nodes used raise precision to selected the kernel!";
MS_LOG(INFO) << "There has " << raise_precision_count << " node/nodes used raise precision to selected the kernel!";
}
if (reduce_precision_count > 0) {
MS_LOG(DEBUG) << "There has " << reduce_precision_count
<< " node/nodes used reduce precision to selected the kernel!";
MS_LOG(INFO) << "There has " << reduce_precision_count
<< " node/nodes used reduce precision to selected the kernel!";
}
MS_LOG(INFO) << "Finish!";
}


Loading…
Cancel
Save