提交 b9728f4e 编写于 作者: Z Zhang Qinghua

Fix the issue in debug info.

上级 87714b3c
...@@ -94,7 +94,7 @@ struct SubGraphIRInfo { ...@@ -94,7 +94,7 @@ struct SubGraphIRInfo {
OrderedMap<AnfNodePtr, int32_t> local_var_map; OrderedMap<AnfNodePtr, int32_t> local_var_map;
}; };
void DumpGrobalInfoEntry(const FuncGraphPtr &graph, std::ostringstream &buffer) { void DumpGlobalInfoEntry(const FuncGraphPtr &graph, std::ostringstream &buffer) {
if (graph == nullptr) { if (graph == nullptr) {
return; return;
} }
...@@ -452,7 +452,7 @@ void DumpIR(const std::string &filename, const FuncGraphPtr &graph, bool dump_fu ...@@ -452,7 +452,7 @@ void DumpIR(const std::string &filename, const FuncGraphPtr &graph, bool dump_fu
auto nodes = TopoSort(graph->get_return(), SuccDeeperSimple, AlwaysInclude); auto nodes = TopoSort(graph->get_return(), SuccDeeperSimple, AlwaysInclude);
// dump global info // dump global info
DumpGrobalInfoEntry(graph, buffer); DumpGlobalInfoEntry(graph, buffer);
DumpParams(graph, buffer, &para_map); DumpParams(graph, buffer, &para_map);
OrderedMap<FuncGraphPtr, std::shared_ptr<SubGraphIRInfo>> sub_graphs; OrderedMap<FuncGraphPtr, std::shared_ptr<SubGraphIRInfo>> sub_graphs;
......
...@@ -66,7 +66,7 @@ NameWithTrace RootName(const DebugInfoPtr& debug_info, TraceLabelType trace_labe ...@@ -66,7 +66,7 @@ NameWithTrace RootName(const DebugInfoPtr& debug_info, TraceLabelType trace_labe
return trace_name; return trace_name;
} }
std::string CombineTraceTypes(const std::string& root_name, std::vector<std::string> trace_labels) { std::string CombineTraceTypes(const std::string& root_name, const std::vector<std::string>& trace_labels) {
std::string tags = ""; std::string tags = "";
for (auto& itr : trace_labels) { for (auto& itr : trace_labels) {
std::string symbol = itr; std::string symbol = itr;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册