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

!2806 Process empty graph

Merge pull request !2806 from zhoufeng/process-empty-graph
......@@ -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();
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册