Browse Source

!634 do not parser training_trace option, when training_trace is not set,

From: @taoxiangdong
Reviewed-by: @youui,@wqtshg
Signed-off-by: @wqtshg
tags/v1.2.0
mindspore-ci-bot Gitee 4 years ago
parent
commit
3b40dd95e3
1 changed files with 3 additions and 0 deletions
  1. +3
    -0
      ge/common/profiling/profiling_manager.cc

+ 3
- 0
ge/common/profiling/profiling_manager.cc View File

@@ -143,6 +143,9 @@ ge::Status ProfilingManager::ParseOptions(const std::string &options) {
}
try {
Json prof_options = Json::parse(options);
if (options.find(kTrainingTrace) == std::string::npos) {
return ge::SUCCESS;
}
const std::string training_trace = prof_options[kTrainingTrace];
if (training_trace.empty()) {
GELOGI("Training trace will not take effect.");


Loading…
Cancel
Save