Browse Source

!13299 controls unsupported summary information to be printed only once

From: @ouwenchang
Reviewed-by: @jjfeing,@lixiaohui33
Signed-off-by: @lixiaohui33
tags/v1.2.0-rc1
mindspore-ci-bot Gitee 5 years ago
parent
commit
db113cbcb3
1 changed files with 3 additions and 1 deletions
  1. +3
    -1
      mindspore/ccsrc/backend/session/session_basic.cc

+ 3
- 1
mindspore/ccsrc/backend/session/session_basic.cc View File

@@ -1875,7 +1875,9 @@ void SessionBasic::Summary(KernelGraph *graph) {
return;
}

if (!IsSupportSummary()) {
static bool is_first = true;
if (is_first && !IsSupportSummary()) {
is_first = false;
MS_LOG(ERROR) << "The Summary operator can not collect data correctly. Detail: the data sink mode is used and the"
" sink size(in model.train() python api) is not equal to 1.";
}


Loading…
Cancel
Save