!1813 fix bug of pass manager not new node causing the node cannot find in the all node list

Merge pull request !1813 from lianliguang/master
This commit is contained in:
mindspore-ci-bot 2020-06-03 16:33:32 +08:00 committed by Gitee
commit 1971e3f993
1 changed files with 1 additions and 2 deletions

View File

@ -47,8 +47,7 @@ CNodePtr ConvertTupleInputToMakeTuple(const FuncGraphPtr &graph, const CNodePtr
convert_inputs.push_back(input_node);
}
}
cnode_ptr->set_inputs(convert_inputs);
return cnode_ptr;
return graph->NewCNode(convert_inputs);
}
} // namespace