!2302 improve summary performance

Merge pull request !2302 from Margaret_wangrui/r0.3
This commit is contained in:
mindspore-ci-bot 2020-06-18 21:27:07 +08:00 committed by Gitee
commit 24d61337c0
1 changed files with 1 additions and 1 deletions

View File

@ -774,7 +774,7 @@ void SessionBasic::Summary(KernelGraph *graph) {
return;
}
MS_EXCEPTION_IF_NULL(graph);
bool exist_summary = ExistSummaryNode(graph);
bool exist_summary = graph->summary_node_exist();
if (!exist_summary) {
return;
}