diff --git a/mindspore/ccsrc/debug/debug_services.cc b/mindspore/ccsrc/debug/debug_services.cc index ccbacbf9469..8934bed107b 100644 --- a/mindspore/ccsrc/debug/debug_services.cc +++ b/mindspore/ccsrc/debug/debug_services.cc @@ -677,15 +677,14 @@ void DebugServices::AddToTensorData(const std::string &backend_name, const std:: void DebugServices::SetPrefixToCheck(std::string *prefix_dump_file_name, std::string *slot_string_to_check, std::string *dump_style_kernel_name, size_t slot, bool is_output) { std::string dump_style_name_part = *dump_style_kernel_name; - std::string slot_str = ""; GetNodeNameWithoutScope(&dump_style_name_part); + std::string slot_str; if (is_output) { - dump_style_name_part += ".output." + std::to_string(slot); - slot_str += ".output." + std::to_string(slot); + slot_str = ".output." + std::to_string(slot); } else { - dump_style_name_part += ".input." + std::to_string(slot); - slot_str += ".input." + std::to_string(slot); + slot_str = ".input." + std::to_string(slot); } + dump_style_name_part += slot_str; *prefix_dump_file_name = dump_style_name_part; *slot_string_to_check = slot_str; } diff --git a/mindspore/ccsrc/debug/debugger/debugger.cc b/mindspore/ccsrc/debug/debugger/debugger.cc index 28654ccc0c1..6dd0b2f8db9 100644 --- a/mindspore/ccsrc/debug/debugger/debugger.cc +++ b/mindspore/ccsrc/debug/debugger/debugger.cc @@ -450,9 +450,8 @@ void Debugger::PostExecuteGraphDebugger() { for (auto graph : graph_ptr_list_) { debugger_->LoadParametersAndConst(graph); } - bool dump_enabled = debugger_->DumpDataEnabledIteration(); // debug used for dump - if (debugger_ && dump_enabled) { + if (debugger_ && debugger_->CheckDebuggerDumpEnabled()) { // Dump Parameters and consts for (auto graph : graph_ptr_list_) { debugger_->Dump(graph); @@ -460,9 +459,6 @@ void Debugger::PostExecuteGraphDebugger() { debugger_->ClearCurrentData(); } } - - } else { - DumpJsonParser::GetInstance().UpdateDumpIter(); } if (debugger_) { debugger_->PostExecute();