Skip to content

OpenVINO™ is an open source toolkit for optimizing and deploying AI inference

[Opset17] Initialization of OV Opset17 (#34899)

Katarzyna Mitrus3b211caaba26
diff --git a/docs/sphinx_setup/api/ie_python_api/api.rst b/docs/sphinx_setup/api/ie_python_api/api.rst
index bf136ee7d1c..5162e56ede8 100644
--- a/docs/sphinx_setup/api/ie_python_api/api.rst
+++ b/docs/sphinx_setup/api/ie_python_api/api.rst
@@ -179,6 +179,12 @@ OpenVINO Python API
openvino.opset16
+.. autosummary::
+ :toctree: _autosummary
+ :template: custom-module-template.rst
+
+ openvino.opset17
+
.. autosummary::
:toctree: _autosummary
:template: custom-module-template.rst
diff --git a/src/bindings/python/src/openvino/__init__.py b/src/bindings/python/src/openvino/__init__.py
index b5655a40ef9..be09907c018 100644
--- a/src/bindings/python/src/openvino/__init__.py
+++ b/src/bindings/python/src/openvino/__init__.py
@@ -90,6 +90,7 @@ from openvino import opset13
from openvino import opset14
from openvino import opset15
from openvino import opset16
+from openvino import opset17
# libva related:
from openvino._pyopenvino import VAContext
diff --git a/src/bindings/python/src/openvino/opset17/__init__.py b/src/bindings/python/src/openvino/opset17/__init__.py
new file mode 100644
index 00000000000..6b928a6d1cb
--- /dev/null
+++ b/src/bindings/python/src/openvino/opset17/__init__.py
@@ -0,0 +1,8 @@
+# -*- coding: utf-8 -*-
+# Copyright (C) 2018-2026 Intel Corporation
+# SPDX-License-Identifier: Apache-2.0
+
+# New operations added in Opset17
+
+# Operators from previous opsets
+# TODO (ticket: 179247): Add previous opset operators at the end of opset17 development
diff --git a/src/bindings/python/src/openvino/opset17/ops.py b/src/bindings/python/src/openvino/opset17/ops.py
new file mode 100644
index 00000000000..82212234c1e
--- /dev/null
+++ b/src/bindings/python/src/openvino/opset17/ops.py
@@ -0,0 +1,12 @@
+# -*- coding: utf-8 -*-
+# Copyright (C) 2018-2026 Intel Corporation
+# SPDX-License-Identifier: Apache-2.0
+
+"""Factory functions for ops added to openvino opset17."""
+from functools import partial
+
+from openvino.utils.node_factory import _get_node_factory
+
+_get_node_factory_opset17 = partial(_get_node_factory, "opset17")
+
+# -------------------------------------------- ops ------------------------------------------------
diff --git a/src/bindings/python/tests/test_transformations/test_pattern_ops.py b/src/bindings/python/tests/test_transformations/test_pattern_ops.py
index f1d970b229a..6dbd22232e5 100644
--- a/src/bindings/python/tests/test_transformations/test_pattern_ops.py
+++ b/src/bindings/python/tests/test_transformations/test_pattern_ops.py
@@ -191,7 +191,7 @@ def test_pattern_optional_root():
def test_wrap_type_pattern_type():
- last_opset_number = 16
+ last_opset_number = 17
for i in range(1, last_opset_number + 1):
WrapType(f"opset{i}.Parameter")
WrapType(f"opset{i}::Parameter")
diff --git a/src/core/dev_api/openvino/opsets/opset17_decl.hpp b/src/core/dev_api/openvino/opsets/opset17_decl.hpp
new file mode 100644
index 00000000000..47b87a55ea3
--- /dev/null
+++ b/src/core/dev_api/openvino/opsets/opset17_decl.hpp
@@ -0,0 +1,13 @@
+// Copyright (C) 2018-2026 Intel Corporation
+// SPDX-License-Identifier: Apache-2.0
+//
+
+#pragma once
+
+#include "openvino/op/ops_decl.hpp"
+
+namespace ov::opset17 {
+#define _OPENVINO_OP_REG(a, b) using b::a;
+#include "openvino/opsets/opset17_tbl.hpp"
+#undef _OPENVINO_OP_REG
+} // namespace ov::opset17
diff --git a/src/core/include/openvino/opsets/opset.hpp b/src/core/include/openvino/opsets/opset.hpp
index 4e79e622cd6..6c01a0014ed 100644
--- a/src/core/include/openvino/opsets/opset.hpp
+++ b/src/core/include/openvino/opsets/opset.hpp
@@ -177,6 +177,11 @@ const OPENVINO_API OpSet& get_opset15();
* @ingroup ov_opset_cpp_api
*/
const OPENVINO_API OpSet& get_opset16();
+/**
+ * @brief Returns opset17
+ * @ingroup ov_opset_cpp_api
+ */
+const OPENVINO_API OpSet& get_opset17();
/**
* @brief Returns map of available opsets
* @ingroup ov_opset_cpp_api
diff --git a/src/core/include/openvino/opsets/opset17.hpp b/src/core/include/openvino/opsets/opset17.hpp
new file mode 100644
index 00000000000..9b955f69159
--- /dev/null
+++ b/src/core/include/openvino/opsets/opset17.hpp
@@ -0,0 +1,15 @@
+// Copyright (C) 2018-2026 Intel Corporation
+// SPDX-License-Identifier: Apache-2.0
+//
+
+#pragma once
+
+#include "openvino/op/ops.hpp"
+
+namespace ov {
+namespace opset17 {
+#define _OPENVINO_OP_REG(a, b) using b::a;
+#include "openvino/opsets/opset17_tbl.hpp"
+#undef _OPENVINO_OP_REG
+} // namespace opset17
+} // namespace ov
diff --git a/src/core/include/openvino/opsets/opset17_tbl.hpp b/src/core/include/openvino/opsets/opset17_tbl.hpp
new file mode 100644
index 00000000000..d3066ba91f5
--- /dev/null
+++ b/src/core/include/openvino/opsets/opset17_tbl.hpp
@@ -0,0 +1,16 @@
+// Copyright (C) 2018-2026 Intel Corporation
+// SPDX-License-Identifier: Apache-2.0
+//
+
+#ifndef _OPENVINO_OP_REG
+# warning "_OPENVINO_OP_REG not defined"
+# define _OPENVINO_OP_REG(x, y)
+#endif
+
+// Previous opsets operators
+// TODO (ticket: 179247): Add remaining operators from opset16 at the end of opset17 development
+_OPENVINO_OP_REG(Parameter, ov::op::v0)
+_OPENVINO_OP_REG(Convert, ov::op::v0)
+_OPENVINO_OP_REG(ShapeOf, ov::op::v3)
+
+// New operations added in opset17
diff --git a/src/core/src/opsets/opset.cpp b/src/core/src/opsets/opset.cpp
index 869c6bfc2a8..e4958cdd72d 100644
--- a/src/core/src/opsets/opset.cpp
+++ b/src/core/src/opsets/opset.cpp
@@ -113,7 +113,8 @@ const std::map<std::string, std::function<const ov::OpSet&()>>& ov::get_availabl
_OPENVINO_REG_OPSET(opset13),
_OPENVINO_REG_OPSET(opset14),
_OPENVINO_REG_OPSET(opset15),
- _OPENVINO_REG_OPSET(opset16)};
+ _OPENVINO_REG_OPSET(opset16),
+ _OPENVINO_REG_OPSET(opset17)};
#undef _OPENVINO_REG_OPSET
return opset_map;
}
@@ -299,3 +300,14 @@ const ov::OpSet& ov::get_opset16() {
});
return opset;
}
+
+const ov::OpSet& ov::get_opset17() {
+ static OpSet opset;
+ static std::once_flag flag;
+ std::call_once(flag, [&]() {
+#define _OPENVINO_OP_REG(NAME, NAMESPACE) opset.insert<NAMESPACE::NAME>();
+#include "openvino/opsets/opset17_tbl.hpp"
+#undef _OPENVINO_OP_REG
+ });
+ return opset;
+}
diff --git a/src/core/tests/op.cpp b/src/core/tests/op.cpp
index d5db124a54a..1baf5eb8ff0 100644
--- a/src/core/tests/op.cpp
+++ b/src/core/tests/op.cpp
@@ -68,4 +68,5 @@ TEST(op, opset_multi_thread) {
doTest(ov::get_opset14);
doTest(ov::get_opset15);
doTest(ov::get_opset16);
+ doTest(ov::get_opset17);
}
diff --git a/src/core/tests/opset.cpp b/src/core/tests/opset.cpp
index 6d11d28e617..0026844cef8 100644
--- a/src/core/tests/opset.cpp
+++ b/src/core/tests/opset.cpp
@@ -15,6 +15,7 @@
#include "openvino/opsets/opset14.hpp"
#include "openvino/opsets/opset15.hpp"
#include "openvino/opsets/opset16.hpp"
+#include "openvino/opsets/opset17.hpp"
#include "openvino/opsets/opset2.hpp"
#include "openvino/opsets/opset3.hpp"
#include "openvino/opsets/opset4.hpp"
@@ -77,7 +78,8 @@ INSTANTIATE_TEST_SUITE_P(opset,
OpsetTestParams{ov::get_opset13, 186},
OpsetTestParams{ov::get_opset14, 188},
OpsetTestParams{ov::get_opset15, 199},
- OpsetTestParams{ov::get_opset16, 203}),
+ OpsetTestParams{ov::get_opset16, 203},
+ OpsetTestParams{ov::get_opset17, 3}),
OpsetTestNameGenerator{});
class MyOpOld : public ov::op::Op {
diff --git a/src/plugins/template/src/plugin.cpp b/src/plugins/template/src/plugin.cpp
index 062fd82ef64..3838e0697e2 100644
--- a/src/plugins/template/src/plugin.cpp
+++ b/src/plugins/template/src/plugin.cpp
@@ -321,6 +321,7 @@ ov::SupportedOpsMap ov::template_plugin::Plugin::query_model(const std::shared_p
#include "openvino/opsets/opset14_tbl.hpp"
#include "openvino/opsets/opset15_tbl.hpp"
#include "openvino/opsets/opset16_tbl.hpp"
+#include "openvino/opsets/opset17_tbl.hpp"
// clang-format on
#undef _OPENVINO_OP_REG
return op_super_set.contains_type(node->get_type_info());
diff --git a/src/tests/functional/plugin/conformance/test_runner/op_conformance_runner/src/op_impl_check/single_op_graph.cpp b/src/tests/functional/plugin/conformance/test_runner/op_conformance_runner/src/op_impl_check/single_op_graph.cpp
index 04855352b33..19445a1427d 100644
--- a/src/tests/functional/plugin/conformance/test_runner/op_conformance_runner/src/op_impl_check/single_op_graph.cpp
+++ b/src/tests/functional/plugin/conformance/test_runner/op_conformance_runner/src/op_impl_check/single_op_graph.cpp
@@ -2273,6 +2273,7 @@ OpGenerator getOpGeneratorMap() {
#include "openvino/opsets/opset14_tbl.hpp"
#include "openvino/opsets/opset15_tbl.hpp"
#include "openvino/opsets/opset16_tbl.hpp"
+#include "openvino/opsets/opset17_tbl.hpp"
#undef _OPENVINO_OP_REG
};
return opGeneratorMap;
diff --git a/tools/benchmark_tool/openvino/__init__.py b/tools/benchmark_tool/openvino/__init__.py
index b5655a40ef9..be09907c018 100644
--- a/tools/benchmark_tool/openvino/__init__.py
+++ b/tools/benchmark_tool/openvino/__init__.py
@@ -90,6 +90,7 @@ from openvino import opset13
from openvino import opset14
from openvino import opset15
from openvino import opset16
+from openvino import opset17
# libva related:
from openvino._pyopenvino import VAContext
diff --git a/tools/ovc/openvino/__init__.py b/tools/ovc/openvino/__init__.py
index b5655a40ef9..be09907c018 100644
--- a/tools/ovc/openvino/__init__.py
+++ b/tools/ovc/openvino/__init__.py
@@ -90,6 +90,7 @@ from openvino import opset13
from openvino import opset14
from openvino import opset15
from openvino import opset16
+from openvino import opset17
# libva related:
from openvino._pyopenvino import VAContext