From 4139caa21ddb78fb5f1f3237e7cbd7bbc0af67ec Mon Sep 17 00:00:00 2001 From: linkerzhang Date: Mon, 17 Dec 2018 12:13:57 -0800 Subject: [PATCH] directly updating dst arg with src arg when adding an edge. no need updating the type and shape info. --- onnxruntime/core/graph/graph.cc | 1 - 1 file changed, 1 deletion(-) diff --git a/onnxruntime/core/graph/graph.cc b/onnxruntime/core/graph/graph.cc index b593e0b5bb656..08b0a1d6e0b9d 100644 --- a/onnxruntime/core/graph/graph.cc +++ b/onnxruntime/core/graph/graph.cc @@ -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; } }