Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions onnxruntime/core/providers/openvino/backend_manager.cc
Original file line number Diff line number Diff line change
Expand Up @@ -286,7 +286,7 @@ static bool IsQDQGraph(const onnxruntime::GraphViewer& graph_viewer) {
return false;
}

#if ((OPENVINO_VERSION_MAJOR < 2026) || ((OPENVINO_VERSION_MAJOR == 2026) && (OPENVINO_VERSION_MINOR < 1)))
#if ((OPENVINO_VERSION_MAJOR < 2026) || ((OPENVINO_VERSION_MAJOR == 2026) && (OPENVINO_VERSION_MINOR < 2)))
static bool Is16BitTensor(const onnxruntime::NodeArg* node_arg) {
const auto* type_proto = node_arg ? node_arg->TypeAsProto() : nullptr;
return type_proto && type_proto->has_tensor_type() &&
Expand Down Expand Up @@ -471,7 +471,7 @@ BackendManager::GetModelProtoFromFusedNode(const onnxruntime::Node& fused_node,
ORT_ENFORCE(status.IsOK(), status.ErrorMessage());
return model_proto;
}
#if ((OPENVINO_VERSION_MAJOR < 2026) || ((OPENVINO_VERSION_MAJOR == 2026) && (OPENVINO_VERSION_MINOR < 1)))
#if ((OPENVINO_VERSION_MAJOR < 2026) || ((OPENVINO_VERSION_MAJOR == 2026) && (OPENVINO_VERSION_MINOR < 2)))
// Enable OVEP-level QDQ stripping only for OV versions that don't have it
else if ((session_context_.device_type.find("GPU") != std::string::npos) &&
IsQDQGraphWithUint16OrInt16(subgraph)) {
Expand Down