Skip to content

Commit 67d4087

Browse files
committed
Disable EPCtx Model OV SDK Version Check
1 parent 0d68ee5 commit 67d4087

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

onnxruntime/core/providers/openvino/onnx_ctx_model_helper.cc

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -128,10 +128,6 @@ std::unique_ptr<ModelBlobWrapper> EPCtxHandler::GetModelBlobStream(const std::fi
128128
// If the model stream is not an XML (i.e. precompiled blob), the OpenVINO SDK version that it was
129129
// exported with must match the version that is currently running.
130130
native_blob_path = std::move(blob_filepath);
131-
ORT_ENFORCE((attrs.count(EP_SDK_VER) == 1) && (attrs.at(EP_SDK_VER).s() == openvino_sdk_version_),
132-
"EPCtx blob was exported / is compatible with OpenVINO SDK version " + attrs.at(EP_SDK_VER).s() +
133-
", but OpenVINO SDK version currently in use is " + openvino_sdk_version_);
134-
135131
result.reset(); // Release the stream as we will get the native blob from SharedContext
136132
auto shared_context = shared_context_manager_->GetOrCreateSharedContext(native_blob_path);
137133
return std::make_unique<ModelBlobWrapper>(shared_context->GetNativeBlobAsStream(partition_name), shared_context->GetNativeBlob(partition_name));

0 commit comments

Comments
 (0)