Skip to content

Commit 1104926

Browse files
authored
fix: disable ep_sdk_version check (#645)
1 parent 91a105e commit 1104926

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

onnxruntime/core/providers/openvino/backends/basic_backend.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ BasicBackend::BasicBackend(std::unique_ptr<ONNX_NAMESPACE::ModelProto>& model_pr
8585
auto auto_unified_compile = ((hw_target.find("AUTO") == std::string::npos) ||
8686
(session_context_.OpenVINO_Version.at(0) >= 2024 &&
8787
session_context_.OpenVINO_Version.at(1) > 2));
88-
if (subgraph_context_.is_ep_ctx_graph && enable_causallm) {
88+
if (subgraph_context_.is_ep_ctx_graph) {
8989
// If the blob is held in an EPContext node, then skip FE+Compile
9090
// and directly move on to creating a backend with the executable blob
9191
exe_network_ = OVCore::Get()->ImportModel(*model_stream,

onnxruntime/core/providers/openvino/onnx_ctx_model_helper.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ bool EPCtxHandler::CheckForOVEPCtxNode(const Node& node) const {
142142
if (node.OpType() == EPCONTEXT_OP) {
143143
auto& attrs = node.GetAttributes();
144144
bool result = (attrs.count(SOURCE) == 1) && (attrs.at(SOURCE).s() == kOpenVINOExecutionProvider);
145-
result &= (attrs.count(EP_SDK_VER) == 1) && (attrs.at(EP_SDK_VER).s() == openvino_sdk_version_);
145+
// result &= (attrs.count(EP_SDK_VER) == 1) && (attrs.at(EP_SDK_VER).s() == openvino_sdk_version_);
146146
result &= attrs.count(EMBED_MODE) == 1;
147147
result &= attrs.count(EP_CACHE_CONTEXT) == 1;
148148
return result;

0 commit comments

Comments
 (0)