Browse Source

!11403 Dump stack infomation in ir files

From: @bairongz
Reviewed-by: @zh_qh,@ginfung
Signed-off-by: @zh_qh
tags/v1.2.0-rc1
mindspore-ci-bot Gitee 5 years ago
parent
commit
c167056d93
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      mindspore/ccsrc/backend/optimizer/ascend/ascend_backend_optimization.cc

+ 1
- 1
mindspore/ccsrc/backend/optimizer/ascend/ascend_backend_optimization.cc View File

@@ -383,7 +383,7 @@ void AscendBackendOptimization(const std::shared_ptr<session::KernelGraph> &kern

if (save_graphs) {
std::string file_name = "hwopt_d_end_graph_" + std::to_string(kernel_graph->graph_id()) + ".ir";
DumpIR(file_name, kernel_graph, true);
DumpIR(file_name, kernel_graph, true, kTopStack);
DumpIRProto(kernel_graph, "after_hwopt_" + std::to_string(kernel_graph->graph_id()));
kernel_graph->DumpFuncGraph("hwopt_d_end");
}


Loading…
Cancel
Save