Browse Source

Update model load profiling tag

pull/902/head
taoxiangdong 5 years ago
parent
commit
ed71d4cb3a
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      ge/graph/load/new_model_manager/davinci_model.cc

+ 1
- 1
ge/graph/load/new_model_manager/davinci_model.cc View File

@@ -2228,7 +2228,7 @@ Status DavinciModel::SinkModelProfile() {
auto &prof_mgr = ProfilingManager::Instance();
ReporterData reporter_data{};
// report model data tag name
std::string tag_name("model_load_info_" + std::to_string(this->Id()));
std::string tag_name("model_load_info_" + std::to_string(this->Id()) + "_" + std::to_string(this->SubModelId()));
GE_CHK_BOOL_EXEC(memcpy_s(reporter_data.tag, MSPROF_ENGINE_MAX_TAG_LEN, tag_name.c_str(), tag_name.size()) == EOK,
return FAILED, "Sink model tag memcpy error.");



Loading…
Cancel
Save