!5183 Added a size condition when printing overflow list

Merge pull request !5183 from AdelShafiei/Errorlog
This commit is contained in:
mindspore-ci-bot 2020-08-27 21:37:37 +08:00 committed by Gitee
commit 23e9ebfa7e
1 changed files with 4 additions and 1 deletions

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_) {