mirror of
https://github.com/saymrwulf/onnxruntime.git
synced 2026-07-20 19:12:24 +00:00
Keep the model metadata on the generated EP context model (#22825)
### Description Keep the model metadata on the generated EP context model
This commit is contained in:
parent
fa4cbcd36b
commit
a9b62fa8da
1 changed files with 1 additions and 1 deletions
|
|
@ -674,7 +674,7 @@ static Status CreateEpContextModel(const ExecutionProviders& execution_providers
|
|||
context_cache_path, "' exist already.");
|
||||
}
|
||||
|
||||
Model ep_context_model(graph.Name(), false, ModelMetaData(), PathString(), IOnnxRuntimeOpSchemaRegistryList(),
|
||||
Model ep_context_model(graph.Name(), false, graph.GetModel().MetaData(), PathString(), IOnnxRuntimeOpSchemaRegistryList(),
|
||||
graph.DomainToVersionMap(), {}, logger);
|
||||
auto& ep_graph = ep_context_model.MainGraph();
|
||||
ep_graph.SetDescription(graph.Description());
|
||||
|
|
|
|||
Loading…
Reference in a new issue