From de3665248fdee160310ac8fc11c4e1a3fc53315b Mon Sep 17 00:00:00 2001 From: ankitm3k Date: Wed, 1 Oct 2025 19:43:53 +0530 Subject: [PATCH] Disable EPCtx Model OV SDK Version Check --- onnxruntime/core/providers/openvino/onnx_ctx_model_helper.cc | 3 --- 1 file changed, 3 deletions(-) diff --git a/onnxruntime/core/providers/openvino/onnx_ctx_model_helper.cc b/onnxruntime/core/providers/openvino/onnx_ctx_model_helper.cc index 051a39bd4f205..efc8efa29c581 100644 --- a/onnxruntime/core/providers/openvino/onnx_ctx_model_helper.cc +++ b/onnxruntime/core/providers/openvino/onnx_ctx_model_helper.cc @@ -133,9 +133,6 @@ EPCtxHandler::GetModelBlobStream(const std::filesystem::path& so_context_file_pa // If the model stream is not an XML (i.e. precompiled blob), the OpenVINO SDK version that it was // exported with must match the version that is currently running. native_blob_path = std::move(blob_filepath); - ORT_ENFORCE((attrs.count(EP_SDK_VER) == 1) && (attrs.at(EP_SDK_VER).s() == openvino_sdk_version_), - "EPCtx blob was exported / is compatible with OpenVINO SDK version " + attrs.at(EP_SDK_VER).s() + - ", but OpenVINO SDK version currently in use is " + openvino_sdk_version_); } LOGS_DEFAULT(VERBOSE) << "[OpenVINO EP] Read blob from EPContext Node";