From b9728f4e9e16f46b98e4688c63daafaeff822619 Mon Sep 17 00:00:00 2001 From: Zhang Qinghua Date: Mon, 13 Apr 2020 19:23:45 +0800 Subject: [PATCH] Fix the issue in debug info. --- mindspore/ccsrc/debug/anf_ir_dump.cc | 4 ++-- mindspore/ccsrc/debug/label.cc | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/mindspore/ccsrc/debug/anf_ir_dump.cc b/mindspore/ccsrc/debug/anf_ir_dump.cc index 9eb0a376c..fcf0777d1 100644 --- a/mindspore/ccsrc/debug/anf_ir_dump.cc +++ b/mindspore/ccsrc/debug/anf_ir_dump.cc @@ -94,7 +94,7 @@ struct SubGraphIRInfo { OrderedMap local_var_map; }; -void DumpGrobalInfoEntry(const FuncGraphPtr &graph, std::ostringstream &buffer) { +void DumpGlobalInfoEntry(const FuncGraphPtr &graph, std::ostringstream &buffer) { if (graph == nullptr) { return; } @@ -452,7 +452,7 @@ void DumpIR(const std::string &filename, const FuncGraphPtr &graph, bool dump_fu auto nodes = TopoSort(graph->get_return(), SuccDeeperSimple, AlwaysInclude); // dump global info - DumpGrobalInfoEntry(graph, buffer); + DumpGlobalInfoEntry(graph, buffer); DumpParams(graph, buffer, ¶_map); OrderedMap> sub_graphs; diff --git a/mindspore/ccsrc/debug/label.cc b/mindspore/ccsrc/debug/label.cc index 794151b95..f0e16e831 100644 --- a/mindspore/ccsrc/debug/label.cc +++ b/mindspore/ccsrc/debug/label.cc @@ -66,7 +66,7 @@ NameWithTrace RootName(const DebugInfoPtr& debug_info, TraceLabelType trace_labe return trace_name; } -std::string CombineTraceTypes(const std::string& root_name, std::vector trace_labels) { +std::string CombineTraceTypes(const std::string& root_name, const std::vector& trace_labels) { std::string tags = ""; for (auto& itr : trace_labels) { std::string symbol = itr; -- GitLab