update profiling training_Trace parser

pull/634/head
taoxiangdong 4 years ago
parent d2ef3006a2
commit 71f0dd4cab

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

Loading…
Cancel
Save