Skip to content

Commit babf513

Browse files
author
mingyue
committed
fix missing SchemaRegistry when create EPContext model
1 parent 56f7e43 commit babf513

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

onnxruntime/core/framework/graph_partitioner.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -681,7 +681,7 @@ static Status CreateEpContextModel(const ExecutionProviders& execution_providers
681681
context_cache_path, "' exist already.");
682682
}
683683

684-
Model ep_context_model(graph.Name(), false, graph.GetModel().MetaData(), PathString(), IOnnxRuntimeOpSchemaRegistryList(),
684+
Model ep_context_model(graph.Name(), false, graph.GetModel().MetaData(), PathString(), IOnnxRuntimeOpSchemaRegistryList{graph.GetSchemaRegistry()},
685685
graph.DomainToVersionMap(), {}, logger);
686686
auto& ep_graph = ep_context_model.MainGraph();
687687
ep_graph.SetDescription(graph.Description());

0 commit comments

Comments
 (0)