Skip to content

Commit 9a77fcd

Browse files
committed
fix: enable EPCtx OVIR encapsulation compiled blob caching
1 parent 04cce1b commit 9a77fcd

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

onnxruntime/core/providers/openvino/backend_manager.cc

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -199,9 +199,10 @@ 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 &&
203+
(subgraph_context_.is_ep_ctx_ovir_encapsulated || !subgraph_context_.is_ep_ctx_graph)) {
203204
auto status = onnxruntime::openvino_ep::BackendManager::ExportCompiledBlobAsEPCtxNode(subgraph);
204-
if ((!status.IsOK())) {
205+
if (!status.IsOK()) {
205206
ORT_THROW(status);
206207
}
207208
}

0 commit comments

Comments
 (0)