!2178 handle the case which child_graph is nullptr

Merge pull request !2178 from Margaret_wangrui/ascend_summary_nodes
pull/2178/MERGE
mindspore-ci-bot 5 years ago committed by Gitee
commit c753f020d4

@ -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());

Loading…
Cancel
Save