Browse Source

remove graph id in framework file

tags/v0.3.0-alpha
caifubi 6 years ago
parent
commit
e9f4eb7155
1 changed files with 2 additions and 4 deletions
  1. +2
    -4
      mindspore/ccsrc/device/ascend/profiling/profiling_utils.cc

+ 2
- 4
mindspore/ccsrc/device/ascend/profiling/profiling_utils.cc View File

@@ -317,13 +317,11 @@ void ProfilingUtils::ReportProfilingData(const std::vector<uint32_t> &task_ids,

auto context = MsContext::GetInstance();
MS_EXCEPTION_IF_NULL(context);
TaskDescReporter task_reporter(context->device_id(), "vm.task_desc_info_" + std::to_string(graph->graph_id()),
ret->second);
TaskDescReporter task_reporter(context->device_id(), "vm.task_desc_info", ret->second);
task_reporter.set_task_ids(task_ids);
task_reporter.ReportData();

GraphDescReporter graph_reporter(context->device_id(), "vm.graph_desc_info_" + std::to_string(graph->graph_id()),
ret->second);
GraphDescReporter graph_reporter(context->device_id(), "vm.graph_desc_info", ret->second);
graph_profiling_cnode_.erase(ret);
graph_reporter.ReportData();
}


Loading…
Cancel
Save