From 5a8acd7da8b28a8380829ba859d9d61a02af69b3 Mon Sep 17 00:00:00 2001 From: Ke Zhang Date: Mon, 17 Dec 2018 13:30:16 -0800 Subject: [PATCH] directly updating dst arg with src arg when adding an edge. no need updating the type and shape info. (#195) --- 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 b593e0b5bb..08b0a1d6e0 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; } }