Browse Source

deal ValueNode<Node>

tags/v0.5.0-beta
hexia 5 years ago
parent
commit
056d74fb0d
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