|
|
|
@@ -115,7 +115,7 @@ void DataDumper::LoadDumpInfo() { |
|
|
|
auto debugger = mindspore::Debugger::GetInstance(); |
|
|
|
MS_EXCEPTION_IF_NULL(debugger); |
|
|
|
if (debugger->DebuggerBackendEnabled()) { |
|
|
|
std::map<std::pair<uint32_t, uint32_t>, std::string> stream_task_to_opname = debugger->GetStreamTaskToOpnameMap(); |
|
|
|
std::map<std::pair<uint32_t, uint32_t>, std::string> stream_task_to_opname; |
|
|
|
// extract stream id, task id and opname from runtime_info_map for overflow detection |
|
|
|
std::transform(runtime_info_map_.begin(), runtime_info_map_.end(), |
|
|
|
std::inserter(stream_task_to_opname, stream_task_to_opname.end()), |
|
|
|
@@ -123,6 +123,7 @@ void DataDumper::LoadDumpInfo() { |
|
|
|
-> std::pair<std::pair<uint32_t, uint32_t>, std::string> { |
|
|
|
return {{std::get<1>(*p.second), std::get<0>(*p.second)}, p.first}; |
|
|
|
}); |
|
|
|
debugger->SetStreamTaskToOpnameMap(stream_task_to_opname); |
|
|
|
} |
|
|
|
#endif |
|
|
|
MS_LOG(INFO) << "[DataDump] LoadDumpInfo end"; |
|
|
|
|