Browse Source

added a size condition when printing overflows list

tags/v1.0.0
Adel Shafiei 5 years ago
parent
commit
32be89149a
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!"; MS_LOG(INFO) << "OverFlow bin directory does not exist!";
} }
closedir(d); 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) { for (auto &i : bin_list) {
if (i > last_overflow_bin_) { if (i > last_overflow_bin_) {


Loading…
Cancel
Save