fix bug of pass manager not new node causing the node cannot find in the allnodes list

pull/1813/head
WilliamLian 5 years ago
parent 6748ef0019
commit b56159e078

@ -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

Loading…
Cancel
Save