directly updating dst arg with src arg when adding an edge. no need updating the type and shape info. (#195)

This commit is contained in:
Ke Zhang 2018-12-17 13:30:16 -08:00 committed by GitHub
parent 5fd9024139
commit 5a8acd7da8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -830,7 +830,6 @@ void Graph::AddEdge(NodeIndex src_node_index, NodeIndex dst_node_index, int src_
// The output type of source node arg does not match the input type of destination node arg.
ORT_THROW("Argument type mismatch when adding edge.");
} else {
src_arg->UpdateTypeAndShape(*dst_arg);
*dst_arg_pointer = src_arg;
}
}