Skip to content

Commit 40544c5

Browse files
committed
Disable EPCtx Model OV SDK Version Check
1 parent b1f7750 commit 40544c5

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

onnxruntime/core/providers/openvino/onnx_ctx_model_helper.cc

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -133,9 +133,6 @@ EPCtxHandler::GetModelBlobStream(const std::filesystem::path& so_context_file_pa
133133
// If the model stream is not an XML (i.e. precompiled blob), the OpenVINO SDK version that it was
134134
// exported with must match the version that is currently running.
135135
native_blob_path = std::move(blob_filepath);
136-
ORT_ENFORCE((attrs.count(EP_SDK_VER) == 1) && (attrs.at(EP_SDK_VER).s() == openvino_sdk_version_),
137-
"EPCtx blob was exported / is compatible with OpenVINO SDK version " + attrs.at(EP_SDK_VER).s() +
138-
", but OpenVINO SDK version currently in use is " + openvino_sdk_version_);
139136
}
140137

141138
LOGS_DEFAULT(VERBOSE) << "[OpenVINO EP] Read blob from EPContext Node";

0 commit comments

Comments
 (0)