From fec9829604627c27bbb4ebe3febde10d7bf29a90 Mon Sep 17 00:00:00 2001 From: Atanas Dimitrov Date: Wed, 3 Jan 2024 14:41:30 +0200 Subject: [PATCH] Revert breaking change --- onnxruntime/core/graph/graph.cc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/onnxruntime/core/graph/graph.cc b/onnxruntime/core/graph/graph.cc index fd36241c995bf..c633895996dda 100644 --- a/onnxruntime/core/graph/graph.cc +++ b/onnxruntime/core/graph/graph.cc @@ -1310,8 +1310,7 @@ Graph::Graph(const Model& owning_model, } for (const auto& node_proto : graph_proto_->node()) { - auto& new_node = AddNode(node_proto, name_to_type_map); - SetOpSchemaFromRegistryForNode(new_node); + AddNode(node_proto, name_to_type_map); } if (is_loaded_from_model_file_) {