Skip to content

Commit fdd5b0d

Browse files
committed
fix: enable EPCtx OVIR encapsulation compiled blob caching
1 parent e13834f commit fdd5b0d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

onnxruntime/core/providers/openvino/backend_manager.cc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,8 @@ BackendManager::BackendManager(SessionContext& session_context,
199199
}
200200
}
201201
}
202-
if (session_context_.so_context_enable && !subgraph_context_.is_ep_ctx_graph) {
202+
if ((session_context_.so_context_enable && !subgraph_context_.is_ep_ctx_graph) ||
203+
subgraph_context_.is_ep_ctx_ovir_encapsulated) {
203204
auto status = onnxruntime::openvino_ep::BackendManager::ExportCompiledBlobAsEPCtxNode(subgraph);
204205
if ((!status.IsOK())) {
205206
ORT_THROW(status);

0 commit comments

Comments
 (0)