Browse Source

!5183 Added a size condition when printing overflow list

Merge pull request !5183 from AdelShafiei/Errorlog
tags/v1.0.0
mindspore-ci-bot Gitee 5 years ago
parent
commit
23e9ebfa7e
1 changed files with 4 additions and 1 deletions
  1. +4
    -1
      mindspore/ccsrc/debug/debugger/debugger.cc

+ 4
- 1
mindspore/ccsrc/debug/debugger/debugger.cc View File

@@ -785,7 +785,10 @@ std::vector<std::string> Debugger::CheckOpOverflow() {
MS_LOG(INFO) << "OverFlow bin directory does not exist!";
}
closedir(d);
MS_LOG(ERROR) << "These operation overflows are detected " << op_names;

if (op_names.size()) {
MS_LOG(ERROR) << "These operation overflows are detected " << op_names;
}

for (auto &i : bin_list) {
if (i > last_overflow_bin_) {


Loading…
Cancel
Save