提交 c753f020 编写于 作者: M mindspore-ci-bot 提交者: Gitee

!2178 handle the case which child_graph is nullptr

Merge pull request !2178 from Margaret_wangrui/ascend_summary_nodes
......@@ -779,6 +779,9 @@ void AscendSession::GetSummaryNodes(KernelGraph *graph) {
auto graph_order = GetGraphOrder(graph->graph_id());
for (size_t i = 0; i < graph_order.size(); i++) {
auto child_graph = GetGraph(graph_order[i]);
if (child_graph == nullptr) {
continue;
}
SessionBasic::GetSummaryNodes(child_graph.get());
auto child_graph_summary = child_graph->summary_nodes();
summary.insert(child_graph_summary.begin(), child_graph_summary.end());
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册