print stack info in dumpir

This commit is contained in:
Bairong 2021-01-19 11:03:38 +08:00
parent a18faa3fc7
commit d00d829eee
1 changed files with 1 additions and 1 deletions

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");
}