Browse Source

Fix bug controls unsupported summary information to be printed only once

tags/v1.2.0-rc1
ougongchang 5 years ago
parent
commit
beb6d20c87
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