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

From: @taoxiangdong
Reviewed-by: @youui,@wqtshg
Signed-off-by: @wqtshg
pull/634/MERGE
mindspore-ci-bot 4 years ago committed by Gitee
commit 3b40dd95e3

@ -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