Browse Source

!1886 deal ValueNode<None>

Merge pull request !1886 from 何霞/addNone
tags/v0.5.0-beta
mindspore-ci-bot Gitee 5 years ago
parent
commit
642eff2ed6
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      mindspore/ccsrc/session/session_basic.cc

+ 1
- 1
mindspore/ccsrc/session/session_basic.cc View File

@@ -460,7 +460,7 @@ CNodePtr SessionBasic::CreateNewCNode(const CNodePtr &cnode, KernelGraph *graph)
if (graph->GetBackendAnfByFrontAnf(anf) != nullptr) {
cnode_inputs.emplace_back(graph->GetBackendAnfByFrontAnf(anf));
continue;
} else if (IsValueNode<FuncGraph>(anf)) {
} else if (IsValueNode<None>(anf)) {
continue;
}
MS_LOG(EXCEPTION) << "Unexpected input[" << anf->DebugString() << "]";


Loading…
Cancel
Save