Browse Source

Fix the issue in debug info.

tags/v0.2.0-alpha
Zhang Qinghua 6 years ago
parent
commit
b9728f4e9e
2 changed files with 3 additions and 3 deletions
  1. +2
    -2
      mindspore/ccsrc/debug/anf_ir_dump.cc
  2. +1
    -1
      mindspore/ccsrc/debug/label.cc

+ 2
- 2
mindspore/ccsrc/debug/anf_ir_dump.cc View File

@@ -94,7 +94,7 @@ struct SubGraphIRInfo {
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) {
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, &para_map);

OrderedMap<FuncGraphPtr, std::shared_ptr<SubGraphIRInfo>> sub_graphs;


+ 1
- 1
mindspore/ccsrc/debug/label.cc View File

@@ -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<std::string> trace_labels) {
std::string CombineTraceTypes(const std::string& root_name, const std::vector<std::string>& trace_labels) {
std::string tags = "";
for (auto& itr : trace_labels) {
std::string symbol = itr;


Loading…
Cancel
Save