Skip to content

Commit fdad3fe

Browse files
Updating OVEP to support 2025.4.0
1 parent d951954 commit fdad3fe

File tree

3 files changed

+13
-9
lines changed

3 files changed

+13
-9
lines changed

onnxruntime/core/providers/openvino/ov_versions/capability.cc

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -41,14 +41,16 @@ GetCapability::GetCapability(const EPCtxHandler& ep_ctx_handler,
4141
npu_qdq_optimizer_enabled = true; // see data_ops.cc ~615 where we check for int16 types for gpu, this may change to a better approach later
4242
}
4343

44-
#if OPENVINO_VERSION_MAJOR == 2025 && OPENVINO_VERSION_MINOR == 0
45-
data_ops_ = new DataOps(graph_viewer_, V_2025_0, device_type_, npu_qdq_optimizer_enabled);
46-
#elif OPENVINO_VERSION_MAJOR == 2025 && OPENVINO_VERSION_MINOR == 1
44+
#if OPENVINO_VERSION_MAJOR == 2025 && OPENVINO_VERSION_MINOR == 1
4745
data_ops_ = new DataOps(graph_viewer_, V_2025_1, device_type_, npu_qdq_optimizer_enabled);
4846
#elif OPENVINO_VERSION_MAJOR == 2025 && OPENVINO_VERSION_MINOR == 2
4947
data_ops_ = new DataOps(graph_viewer_, V_2025_2, device_type_, npu_qdq_optimizer_enabled);
48+
#elif OPENVINO_VERSION_MAJOR == 2025 && OPENVINO_VERSION_MINOR == 3
49+
data_ops_ = new DataOps(graph_viewer_, V_2025_3, device_type_, npu_qdq_optimizer_enabled);
50+
#elif OPENVINO_VERSION_MAJOR == 2025 && OPENVINO_VERSION_MINOR == 4
51+
data_ops_ = new DataOps(graph_viewer_, V_2025_4, device_type_, npu_qdq_optimizer_enabled);
5052
#else
51-
data_ops_ = new DataOps(graph_viewer_, V_2025_2, device_type_, npu_qdq_optimizer_enabled);
53+
data_ops_ = new DataOps(graph_viewer_, V_2025_4, device_type_, npu_qdq_optimizer_enabled);
5254
#endif
5355
}
5456

onnxruntime/core/providers/openvino/ov_versions/data_ops.cc

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -408,7 +408,7 @@ void DataOps::populate_op_mode_supported() {
408408

409409
// populate unsupportedmode_t
410410
{
411-
UnsupportedOpMode obj = {{V_2024_1, V_2024_2, V_2024_3, V_2024_4, V_2024_5, V_2024_6, V_2025_0, V_2025_1, V_2025_2},
411+
UnsupportedOpMode obj = {{V_2024_1, V_2024_2, V_2024_3, V_2024_4, V_2024_5, V_2024_6, V_2025_0, V_2025_1, V_2025_2, V_2025_3, V_2025_4},
412412
[this](const Node* node, const InitializedTensorSet&) {
413413
// If the Input of ReduceMax op is UINT8, it is rejected (Due to output mismatch)
414414
for (size_t i = 0; i < node->InputDefs().size(); i++) {
@@ -425,7 +425,7 @@ void DataOps::populate_op_mode_supported() {
425425
{
426426
UnsupportedOpMode obj = {{V_2023_1, V_2023_2, V_2023_3, V_2024_0, V_2024_1, V_2024_2,
427427
V_2024_3, V_2024_4, V_2024_5, V_2024_6, V_2025_0, V_2025_1,
428-
V_2025_2},
428+
V_2025_2, V_2025_3, V_2025_4},
429429
[this](const Node* node, const InitializedTensorSet&) {
430430
const auto& input_args = node->InputDefs();
431431
const auto& input_arg = (input_args.size() > 1) ? input_args[1] : input_args[0];
@@ -445,7 +445,7 @@ void DataOps::populate_op_mode_supported() {
445445
{
446446
UnsupportedOpMode obj = {{V_2023_1, V_2023_2, V_2023_3, V_2024_0, V_2024_1, V_2024_2,
447447
V_2024_3, V_2024_4, V_2024_5, V_2024_6, V_2025_0, V_2025_1,
448-
V_2025_2},
448+
V_2025_2, V_2025_3, V_2025_4},
449449
[this](const Node* node, const InitializedTensorSet&) {
450450
// If the operator is unsqueeze
451451
// If axes is an input, then we cannot produce a static graph.
@@ -461,7 +461,7 @@ void DataOps::populate_op_mode_supported() {
461461
}
462462
{
463463
UnsupportedOpMode obj = {{V_2023_1, V_2023_2, V_2023_3, V_2024_0, V_2024_1, V_2024_2, V_2024_3, V_2024_4, V_2024_5,
464-
V_2024_6, V_2025_0, V_2025_1, V_2025_2},
464+
V_2024_6, V_2025_0, V_2025_1, V_2025_2, V_2025_3, V_2025_4},
465465
[this](const Node* node, const InitializedTensorSet&) {
466466
// check for attributes
467467
auto& upsample_attr = node->GetAttributes();

onnxruntime/core/providers/openvino/ov_versions/data_ops.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,9 @@ enum versionNum {
3636
V_2024_6,
3737
V_2025_0,
3838
V_2025_1,
39-
V_2025_2
39+
V_2025_2,
40+
V_2025_3,
41+
V_2025_4
4042
};
4143

4244
using VersionNum = enum versionNum;

0 commit comments

Comments
 (0)