Skip to content

Commit

Permalink
Call SetOpSchemaFromRegistryForNode while initializing model
Browse files Browse the repository at this point in the history
  • Loading branch information
Atanas Dimitrov authored and Atanas Dimitrov committed Dec 14, 2023
1 parent 783bc00 commit eb2d26f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion onnxruntime/core/graph/graph.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1310,7 +1310,8 @@ Graph::Graph(const Model& owning_model,
}

for (const auto& node_proto : graph_proto_->node()) {
AddNode(node_proto, name_to_type_map);
auto& new_node = AddNode(node_proto, name_to_type_map);
SetOpSchemaFromRegistryForNode(new_node);
}

if (is_loaded_from_model_file_) {
Expand Down

0 comments on commit eb2d26f

Please sign in to comment.