Browse Source

!2806 Process empty graph

Merge pull request !2806 from zhoufeng/process-empty-graph
tags/v0.6.0-beta
mindspore-ci-bot Gitee 5 years ago
parent
commit
fff45a119d
1 changed files with 1 additions and 0 deletions
  1. +1
    -0
      mindspore/ccsrc/session/ascend_session.cc

+ 1
- 0
mindspore/ccsrc/session/ascend_session.cc View File

@@ -296,6 +296,7 @@ GraphId AscendSession::CompileGraph(NotNull<FuncGraphPtr> func_graph) {
// empty graph dont entry to backend
if (root_graph->execution_order().empty()) {
MS_LOG(INFO) << root_graph->ToString() << " is empty graph.";
root_graph->set_executable(false);
InitRuntimeResource();
return root_graph->graph_id();
}


Loading…
Cancel
Save