Browse Source

!3348 fix bug of print warning massage

Merge pull request !3348 from lianliguang/master
tags/v0.7.0-beta
mindspore-ci-bot Gitee 5 years ago
parent
commit
c2cc1359b4
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      mindspore/ccsrc/backend/session/ascend_session.cc

+ 2
- 2
mindspore/ccsrc/backend/session/ascend_session.cc View File

@@ -1888,11 +1888,11 @@ void AscendSession::SelectKernel(NotNull<KernelGraphPtr> root_graph) {
MS_EXCEPTION_IF_NULL(ms_context);
if (ms_context->execution_mode() == kGraphMode) {
if (raise_precision_count > 0) {
MS_LOG(WARNING) << "There has " << raise_precision_count
MS_LOG(WARNING) << "There are " << raise_precision_count
<< " node/nodes used raise precision to selected the kernel!";
}
if (reduce_precision_count > 0) {
MS_LOG(WARNING) << "There has " << raise_precision_count
MS_LOG(WARNING) << "There are " << reduce_precision_count
<< " node/nodes used reduce precision to selected the kernel!";
}
}


Loading…
Cancel
Save