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

!1886 deal ValueNode<None>

Merge pull request !1886 from 何霞/addNone
...@@ -460,7 +460,7 @@ CNodePtr SessionBasic::CreateNewCNode(const CNodePtr &cnode, KernelGraph *graph) ...@@ -460,7 +460,7 @@ CNodePtr SessionBasic::CreateNewCNode(const CNodePtr &cnode, KernelGraph *graph)
if (graph->GetBackendAnfByFrontAnf(anf) != nullptr) { if (graph->GetBackendAnfByFrontAnf(anf) != nullptr) {
cnode_inputs.emplace_back(graph->GetBackendAnfByFrontAnf(anf)); cnode_inputs.emplace_back(graph->GetBackendAnfByFrontAnf(anf));
continue; continue;
} else if (IsValueNode<FuncGraph>(anf)) { } else if (IsValueNode<None>(anf)) {
continue; continue;
} }
MS_LOG(EXCEPTION) << "Unexpected input[" << anf->DebugString() << "]"; MS_LOG(EXCEPTION) << "Unexpected input[" << anf->DebugString() << "]";
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册