From 718a304de82509e113ba3cd9903104ecc941f509 Mon Sep 17 00:00:00 2001 From: Alicja Miloszewska Date: Mon, 4 Nov 2024 09:57:29 +0100 Subject: [PATCH 01/38] Add deprecation warning to runtime module __init__ Signed-off-by: Alicja Miloszewska --- src/bindings/python/src/openvino/runtime/__init__.py | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/bindings/python/src/openvino/runtime/__init__.py b/src/bindings/python/src/openvino/runtime/__init__.py index df2cab57bd0aba..e87fd1c779d40f 100644 --- a/src/bindings/python/src/openvino/runtime/__init__.py +++ b/src/bindings/python/src/openvino/runtime/__init__.py @@ -5,6 +5,17 @@ """openvino module namespace, exposing factory functions for all ops and other classes.""" # noqa: F401 +import warnings + +warnings.simplefilter('always', DeprecationWarning) + +warnings.warn( + 'The \'openvino.runtime\' module is deprecated and will be removed in the 2026.0 release. ' + 'Please replace \'openvino.runtime\` with \'openvino\'.', + DeprecationWarning, + stacklevel=2 +) + from openvino._pyopenvino import get_version __version__ = get_version() From c1efcfe698ac23235efdb19211ae1ac455d91d83 Mon Sep 17 00:00:00 2001 From: Alicja Miloszewska Date: Mon, 4 Nov 2024 12:54:26 +0100 Subject: [PATCH 02/38] Update msg Signed-off-by: Alicja Miloszewska --- src/bindings/python/src/openvino/runtime/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/bindings/python/src/openvino/runtime/__init__.py b/src/bindings/python/src/openvino/runtime/__init__.py index e87fd1c779d40f..75969f4eb0dbae 100644 --- a/src/bindings/python/src/openvino/runtime/__init__.py +++ b/src/bindings/python/src/openvino/runtime/__init__.py @@ -10,8 +10,8 @@ warnings.simplefilter('always', DeprecationWarning) warnings.warn( - 'The \'openvino.runtime\' module is deprecated and will be removed in the 2026.0 release. ' - 'Please replace \'openvino.runtime\` with \'openvino\'.', + 'The `openvino.runtime` module is deprecated and will be removed in the 2026.0 release. ' + 'Please replace `openvino.runtime` with `openvino`.', DeprecationWarning, stacklevel=2 ) From 453c6cbac758e9b1b1715987aeb14e3aa6f69982 Mon Sep 17 00:00:00 2001 From: Alicja Miloszewska Date: Mon, 4 Nov 2024 12:57:16 +0100 Subject: [PATCH 03/38] Update msg Signed-off-by: Alicja Miloszewska --- src/bindings/python/src/openvino/runtime/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bindings/python/src/openvino/runtime/__init__.py b/src/bindings/python/src/openvino/runtime/__init__.py index 75969f4eb0dbae..e134c2a361b50e 100644 --- a/src/bindings/python/src/openvino/runtime/__init__.py +++ b/src/bindings/python/src/openvino/runtime/__init__.py @@ -11,7 +11,7 @@ warnings.warn( 'The `openvino.runtime` module is deprecated and will be removed in the 2026.0 release. ' - 'Please replace `openvino.runtime` with `openvino`.', + 'Please replace `openvino.runtime` with `openvino` after 25.1 release.', DeprecationWarning, stacklevel=2 ) From c5f24333580c55386c3ab3bea6e8480b586be63a Mon Sep 17 00:00:00 2001 From: Alicja Miloszewska Date: Thu, 7 Nov 2024 09:09:15 +0100 Subject: [PATCH 04/38] Comment out runtime import Signed-off-by: Alicja Miloszewska --- src/bindings/python/src/openvino/__init__.py | 2 +- tools/benchmark_tool/openvino/__init__.py | 2 +- tools/ovc/openvino/__init__.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/bindings/python/src/openvino/__init__.py b/src/bindings/python/src/openvino/__init__.py index 57f03f00c2eebf..f20865d0d95f58 100644 --- a/src/bindings/python/src/openvino/__init__.py +++ b/src/bindings/python/src/openvino/__init__.py @@ -18,7 +18,7 @@ # # It is not compared with init files from openvino-dev package. # # # Import all public modules -from openvino import runtime as runtime +# from openvino import runtime as runtime from openvino import frontend as frontend from openvino import helpers as helpers from openvino import experimental as experimental diff --git a/tools/benchmark_tool/openvino/__init__.py b/tools/benchmark_tool/openvino/__init__.py index 57f03f00c2eebf..f20865d0d95f58 100644 --- a/tools/benchmark_tool/openvino/__init__.py +++ b/tools/benchmark_tool/openvino/__init__.py @@ -18,7 +18,7 @@ # # It is not compared with init files from openvino-dev package. # # # Import all public modules -from openvino import runtime as runtime +# from openvino import runtime as runtime from openvino import frontend as frontend from openvino import helpers as helpers from openvino import experimental as experimental diff --git a/tools/ovc/openvino/__init__.py b/tools/ovc/openvino/__init__.py index 57f03f00c2eebf..f20865d0d95f58 100644 --- a/tools/ovc/openvino/__init__.py +++ b/tools/ovc/openvino/__init__.py @@ -18,7 +18,7 @@ # # It is not compared with init files from openvino-dev package. # # # Import all public modules -from openvino import runtime as runtime +# from openvino import runtime as runtime from openvino import frontend as frontend from openvino import helpers as helpers from openvino import experimental as experimental From 546135d69e68b9822d9614d73d902ee0dfe7f1cc Mon Sep 17 00:00:00 2001 From: Alicja Miloszewska Date: Thu, 7 Nov 2024 12:16:32 +0100 Subject: [PATCH 05/38] Move *.py files up Signed-off-by: Alicja Miloszewska --- src/bindings/python/src/openvino/__init__.py | 46 +++++++++---------- .../src/openvino/{runtime => }/ie_api.py | 0 .../{runtime => opsets}/op/__init__.py | 0 .../{runtime => opsets}/op/util/__init__.py | 0 .../{runtime => opsets}/opset1/__init__.py | 0 .../{runtime => opsets}/opset1/ops.py | 0 .../{runtime => opsets}/opset10/__init__.py | 0 .../{runtime => opsets}/opset10/ops.py | 0 .../{runtime => opsets}/opset11/__init__.py | 0 .../{runtime => opsets}/opset11/ops.py | 0 .../{runtime => opsets}/opset12/__init__.py | 0 .../{runtime => opsets}/opset12/ops.py | 0 .../{runtime => opsets}/opset13/__init__.py | 0 .../{runtime => opsets}/opset13/ops.py | 0 .../{runtime => opsets}/opset14/__init__.py | 0 .../{runtime => opsets}/opset14/ops.py | 0 .../{runtime => opsets}/opset15/__init__.py | 0 .../{runtime => opsets}/opset15/ops.py | 0 .../{runtime => opsets}/opset2/__init__.py | 0 .../{runtime => opsets}/opset2/ops.py | 0 .../{runtime => opsets}/opset3/__init__.py | 0 .../{runtime => opsets}/opset3/ops.py | 0 .../{runtime => opsets}/opset4/__init__.py | 0 .../{runtime => opsets}/opset4/ops.py | 0 .../{runtime => opsets}/opset5/__init__.py | 0 .../{runtime => opsets}/opset5/ops.py | 0 .../{runtime => opsets}/opset6/__init__.py | 0 .../{runtime => opsets}/opset6/ops.py | 0 .../{runtime => opsets}/opset7/__init__.py | 0 .../{runtime => opsets}/opset7/ops.py | 0 .../{runtime => opsets}/opset8/__init__.py | 0 .../{runtime => opsets}/opset8/ops.py | 0 .../{runtime => opsets}/opset9/__init__.py | 0 .../{runtime => opsets}/opset9/ops.py | 0 .../{runtime => opsets}/opset_utils.py | 0 .../python/src/openvino/runtime/__init__.py | 24 +++++----- .../openvino/{runtime => }/utils/__init__.py | 0 .../{runtime => }/utils/broadcasting.py | 0 .../utils/data_helpers/__init__.py | 0 .../utils/data_helpers/data_dispatcher.py | 0 .../utils/data_helpers/wrappers.py | 0 .../{runtime => }/utils/decorators.py | 0 .../{runtime => }/utils/input_validation.py | 0 .../{runtime => }/utils/node_factory.py | 0 .../openvino/{runtime => }/utils/reduction.py | 0 .../src/openvino/{runtime => }/utils/types.py | 0 tools/benchmark_tool/openvino/__init__.py | 46 +++++++++---------- tools/ovc/openvino/__init__.py | 46 +++++++++---------- 48 files changed, 81 insertions(+), 81 deletions(-) rename src/bindings/python/src/openvino/{runtime => }/ie_api.py (100%) rename src/bindings/python/src/openvino/{runtime => opsets}/op/__init__.py (100%) rename src/bindings/python/src/openvino/{runtime => opsets}/op/util/__init__.py (100%) rename src/bindings/python/src/openvino/{runtime => opsets}/opset1/__init__.py (100%) rename src/bindings/python/src/openvino/{runtime => opsets}/opset1/ops.py (100%) rename src/bindings/python/src/openvino/{runtime => opsets}/opset10/__init__.py (100%) rename src/bindings/python/src/openvino/{runtime => opsets}/opset10/ops.py (100%) rename src/bindings/python/src/openvino/{runtime => opsets}/opset11/__init__.py (100%) rename src/bindings/python/src/openvino/{runtime => opsets}/opset11/ops.py (100%) rename src/bindings/python/src/openvino/{runtime => opsets}/opset12/__init__.py (100%) rename src/bindings/python/src/openvino/{runtime => opsets}/opset12/ops.py (100%) rename src/bindings/python/src/openvino/{runtime => opsets}/opset13/__init__.py (100%) rename src/bindings/python/src/openvino/{runtime => opsets}/opset13/ops.py (100%) rename src/bindings/python/src/openvino/{runtime => opsets}/opset14/__init__.py (100%) rename src/bindings/python/src/openvino/{runtime => opsets}/opset14/ops.py (100%) rename src/bindings/python/src/openvino/{runtime => opsets}/opset15/__init__.py (100%) rename src/bindings/python/src/openvino/{runtime => opsets}/opset15/ops.py (100%) rename src/bindings/python/src/openvino/{runtime => opsets}/opset2/__init__.py (100%) rename src/bindings/python/src/openvino/{runtime => opsets}/opset2/ops.py (100%) rename src/bindings/python/src/openvino/{runtime => opsets}/opset3/__init__.py (100%) rename src/bindings/python/src/openvino/{runtime => opsets}/opset3/ops.py (100%) rename src/bindings/python/src/openvino/{runtime => opsets}/opset4/__init__.py (100%) rename src/bindings/python/src/openvino/{runtime => opsets}/opset4/ops.py (100%) rename src/bindings/python/src/openvino/{runtime => opsets}/opset5/__init__.py (100%) rename src/bindings/python/src/openvino/{runtime => opsets}/opset5/ops.py (100%) rename src/bindings/python/src/openvino/{runtime => opsets}/opset6/__init__.py (100%) rename src/bindings/python/src/openvino/{runtime => opsets}/opset6/ops.py (100%) rename src/bindings/python/src/openvino/{runtime => opsets}/opset7/__init__.py (100%) rename src/bindings/python/src/openvino/{runtime => opsets}/opset7/ops.py (100%) rename src/bindings/python/src/openvino/{runtime => opsets}/opset8/__init__.py (100%) rename src/bindings/python/src/openvino/{runtime => opsets}/opset8/ops.py (100%) rename src/bindings/python/src/openvino/{runtime => opsets}/opset9/__init__.py (100%) rename src/bindings/python/src/openvino/{runtime => opsets}/opset9/ops.py (100%) rename src/bindings/python/src/openvino/{runtime => opsets}/opset_utils.py (100%) rename src/bindings/python/src/openvino/{runtime => }/utils/__init__.py (100%) rename src/bindings/python/src/openvino/{runtime => }/utils/broadcasting.py (100%) rename src/bindings/python/src/openvino/{runtime => }/utils/data_helpers/__init__.py (100%) rename src/bindings/python/src/openvino/{runtime => }/utils/data_helpers/data_dispatcher.py (100%) rename src/bindings/python/src/openvino/{runtime => }/utils/data_helpers/wrappers.py (100%) rename src/bindings/python/src/openvino/{runtime => }/utils/decorators.py (100%) rename src/bindings/python/src/openvino/{runtime => }/utils/input_validation.py (100%) rename src/bindings/python/src/openvino/{runtime => }/utils/node_factory.py (100%) rename src/bindings/python/src/openvino/{runtime => }/utils/reduction.py (100%) rename src/bindings/python/src/openvino/{runtime => }/utils/types.py (100%) diff --git a/src/bindings/python/src/openvino/__init__.py b/src/bindings/python/src/openvino/__init__.py index f20865d0d95f58..4f3e65e0e75de3 100644 --- a/src/bindings/python/src/openvino/__init__.py +++ b/src/bindings/python/src/openvino/__init__.py @@ -27,30 +27,30 @@ from openvino import properties as properties # Import most important classes and functions from openvino.runtime -from openvino.runtime import Model -from openvino.runtime import Core -from openvino.runtime import CompiledModel -from openvino.runtime import InferRequest -from openvino.runtime import AsyncInferQueue +from openvino.ie_api import Model +from openvino.ie_api import Core +from openvino.ie_api import CompiledModel +from openvino.ie_api import InferRequest +from openvino.ie_api import AsyncInferQueue -from openvino.runtime import Symbol -from openvino.runtime import Dimension -from openvino.runtime import Strides -from openvino.runtime import PartialShape -from openvino.runtime import Shape -from openvino.runtime import Layout -from openvino.runtime import Type -from openvino.runtime import Tensor -from openvino.runtime import OVAny +from openvino._pyopenvino import Symbol +from openvino._pyopenvino import Dimension +from openvino._pyopenvino import Strides +from openvino._pyopenvino import PartialShape +from openvino._pyopenvino import Shape +from openvino._pyopenvino import Layout +from openvino._pyopenvino import Type +from openvino._pyopenvino import Tensor +from openvino._pyopenvino import OVAny -from openvino.runtime import compile_model -from openvino.runtime import get_batch -from openvino.runtime import set_batch -from openvino.runtime import serialize -from openvino.runtime import shutdown -from openvino.runtime import tensor_from_file -from openvino.runtime import save_model -from openvino.runtime import layout_helpers +from openvino.ie_api import compile_model +from openvino._pyopenvino import get_batch +from openvino._pyopenvino import set_batch +from openvino._pyopenvino import serialize +from openvino._pyopenvino import shutdown +from openvino.ie_api import tensor_from_file +from openvino._pyopenvino import save_model +from openvino._pyopenvino import layout_helpers from openvino._pyopenvino import RemoteContext from openvino._pyopenvino import RemoteTensor @@ -61,7 +61,7 @@ from openvino._pyopenvino import VASurfaceTensor # Set version for openvino package -from openvino.runtime import get_version +from openvino._pyopenvino import get_version __version__ = get_version() # Tools diff --git a/src/bindings/python/src/openvino/runtime/ie_api.py b/src/bindings/python/src/openvino/ie_api.py similarity index 100% rename from src/bindings/python/src/openvino/runtime/ie_api.py rename to src/bindings/python/src/openvino/ie_api.py diff --git a/src/bindings/python/src/openvino/runtime/op/__init__.py b/src/bindings/python/src/openvino/opsets/op/__init__.py similarity index 100% rename from src/bindings/python/src/openvino/runtime/op/__init__.py rename to src/bindings/python/src/openvino/opsets/op/__init__.py diff --git a/src/bindings/python/src/openvino/runtime/op/util/__init__.py b/src/bindings/python/src/openvino/opsets/op/util/__init__.py similarity index 100% rename from src/bindings/python/src/openvino/runtime/op/util/__init__.py rename to src/bindings/python/src/openvino/opsets/op/util/__init__.py diff --git a/src/bindings/python/src/openvino/runtime/opset1/__init__.py b/src/bindings/python/src/openvino/opsets/opset1/__init__.py similarity index 100% rename from src/bindings/python/src/openvino/runtime/opset1/__init__.py rename to src/bindings/python/src/openvino/opsets/opset1/__init__.py diff --git a/src/bindings/python/src/openvino/runtime/opset1/ops.py b/src/bindings/python/src/openvino/opsets/opset1/ops.py similarity index 100% rename from src/bindings/python/src/openvino/runtime/opset1/ops.py rename to src/bindings/python/src/openvino/opsets/opset1/ops.py diff --git a/src/bindings/python/src/openvino/runtime/opset10/__init__.py b/src/bindings/python/src/openvino/opsets/opset10/__init__.py similarity index 100% rename from src/bindings/python/src/openvino/runtime/opset10/__init__.py rename to src/bindings/python/src/openvino/opsets/opset10/__init__.py diff --git a/src/bindings/python/src/openvino/runtime/opset10/ops.py b/src/bindings/python/src/openvino/opsets/opset10/ops.py similarity index 100% rename from src/bindings/python/src/openvino/runtime/opset10/ops.py rename to src/bindings/python/src/openvino/opsets/opset10/ops.py diff --git a/src/bindings/python/src/openvino/runtime/opset11/__init__.py b/src/bindings/python/src/openvino/opsets/opset11/__init__.py similarity index 100% rename from src/bindings/python/src/openvino/runtime/opset11/__init__.py rename to src/bindings/python/src/openvino/opsets/opset11/__init__.py diff --git a/src/bindings/python/src/openvino/runtime/opset11/ops.py b/src/bindings/python/src/openvino/opsets/opset11/ops.py similarity index 100% rename from src/bindings/python/src/openvino/runtime/opset11/ops.py rename to src/bindings/python/src/openvino/opsets/opset11/ops.py diff --git a/src/bindings/python/src/openvino/runtime/opset12/__init__.py b/src/bindings/python/src/openvino/opsets/opset12/__init__.py similarity index 100% rename from src/bindings/python/src/openvino/runtime/opset12/__init__.py rename to src/bindings/python/src/openvino/opsets/opset12/__init__.py diff --git a/src/bindings/python/src/openvino/runtime/opset12/ops.py b/src/bindings/python/src/openvino/opsets/opset12/ops.py similarity index 100% rename from src/bindings/python/src/openvino/runtime/opset12/ops.py rename to src/bindings/python/src/openvino/opsets/opset12/ops.py diff --git a/src/bindings/python/src/openvino/runtime/opset13/__init__.py b/src/bindings/python/src/openvino/opsets/opset13/__init__.py similarity index 100% rename from src/bindings/python/src/openvino/runtime/opset13/__init__.py rename to src/bindings/python/src/openvino/opsets/opset13/__init__.py diff --git a/src/bindings/python/src/openvino/runtime/opset13/ops.py b/src/bindings/python/src/openvino/opsets/opset13/ops.py similarity index 100% rename from src/bindings/python/src/openvino/runtime/opset13/ops.py rename to src/bindings/python/src/openvino/opsets/opset13/ops.py diff --git a/src/bindings/python/src/openvino/runtime/opset14/__init__.py b/src/bindings/python/src/openvino/opsets/opset14/__init__.py similarity index 100% rename from src/bindings/python/src/openvino/runtime/opset14/__init__.py rename to src/bindings/python/src/openvino/opsets/opset14/__init__.py diff --git a/src/bindings/python/src/openvino/runtime/opset14/ops.py b/src/bindings/python/src/openvino/opsets/opset14/ops.py similarity index 100% rename from src/bindings/python/src/openvino/runtime/opset14/ops.py rename to src/bindings/python/src/openvino/opsets/opset14/ops.py diff --git a/src/bindings/python/src/openvino/runtime/opset15/__init__.py b/src/bindings/python/src/openvino/opsets/opset15/__init__.py similarity index 100% rename from src/bindings/python/src/openvino/runtime/opset15/__init__.py rename to src/bindings/python/src/openvino/opsets/opset15/__init__.py diff --git a/src/bindings/python/src/openvino/runtime/opset15/ops.py b/src/bindings/python/src/openvino/opsets/opset15/ops.py similarity index 100% rename from src/bindings/python/src/openvino/runtime/opset15/ops.py rename to src/bindings/python/src/openvino/opsets/opset15/ops.py diff --git a/src/bindings/python/src/openvino/runtime/opset2/__init__.py b/src/bindings/python/src/openvino/opsets/opset2/__init__.py similarity index 100% rename from src/bindings/python/src/openvino/runtime/opset2/__init__.py rename to src/bindings/python/src/openvino/opsets/opset2/__init__.py diff --git a/src/bindings/python/src/openvino/runtime/opset2/ops.py b/src/bindings/python/src/openvino/opsets/opset2/ops.py similarity index 100% rename from src/bindings/python/src/openvino/runtime/opset2/ops.py rename to src/bindings/python/src/openvino/opsets/opset2/ops.py diff --git a/src/bindings/python/src/openvino/runtime/opset3/__init__.py b/src/bindings/python/src/openvino/opsets/opset3/__init__.py similarity index 100% rename from src/bindings/python/src/openvino/runtime/opset3/__init__.py rename to src/bindings/python/src/openvino/opsets/opset3/__init__.py diff --git a/src/bindings/python/src/openvino/runtime/opset3/ops.py b/src/bindings/python/src/openvino/opsets/opset3/ops.py similarity index 100% rename from src/bindings/python/src/openvino/runtime/opset3/ops.py rename to src/bindings/python/src/openvino/opsets/opset3/ops.py diff --git a/src/bindings/python/src/openvino/runtime/opset4/__init__.py b/src/bindings/python/src/openvino/opsets/opset4/__init__.py similarity index 100% rename from src/bindings/python/src/openvino/runtime/opset4/__init__.py rename to src/bindings/python/src/openvino/opsets/opset4/__init__.py diff --git a/src/bindings/python/src/openvino/runtime/opset4/ops.py b/src/bindings/python/src/openvino/opsets/opset4/ops.py similarity index 100% rename from src/bindings/python/src/openvino/runtime/opset4/ops.py rename to src/bindings/python/src/openvino/opsets/opset4/ops.py diff --git a/src/bindings/python/src/openvino/runtime/opset5/__init__.py b/src/bindings/python/src/openvino/opsets/opset5/__init__.py similarity index 100% rename from src/bindings/python/src/openvino/runtime/opset5/__init__.py rename to src/bindings/python/src/openvino/opsets/opset5/__init__.py diff --git a/src/bindings/python/src/openvino/runtime/opset5/ops.py b/src/bindings/python/src/openvino/opsets/opset5/ops.py similarity index 100% rename from src/bindings/python/src/openvino/runtime/opset5/ops.py rename to src/bindings/python/src/openvino/opsets/opset5/ops.py diff --git a/src/bindings/python/src/openvino/runtime/opset6/__init__.py b/src/bindings/python/src/openvino/opsets/opset6/__init__.py similarity index 100% rename from src/bindings/python/src/openvino/runtime/opset6/__init__.py rename to src/bindings/python/src/openvino/opsets/opset6/__init__.py diff --git a/src/bindings/python/src/openvino/runtime/opset6/ops.py b/src/bindings/python/src/openvino/opsets/opset6/ops.py similarity index 100% rename from src/bindings/python/src/openvino/runtime/opset6/ops.py rename to src/bindings/python/src/openvino/opsets/opset6/ops.py diff --git a/src/bindings/python/src/openvino/runtime/opset7/__init__.py b/src/bindings/python/src/openvino/opsets/opset7/__init__.py similarity index 100% rename from src/bindings/python/src/openvino/runtime/opset7/__init__.py rename to src/bindings/python/src/openvino/opsets/opset7/__init__.py diff --git a/src/bindings/python/src/openvino/runtime/opset7/ops.py b/src/bindings/python/src/openvino/opsets/opset7/ops.py similarity index 100% rename from src/bindings/python/src/openvino/runtime/opset7/ops.py rename to src/bindings/python/src/openvino/opsets/opset7/ops.py diff --git a/src/bindings/python/src/openvino/runtime/opset8/__init__.py b/src/bindings/python/src/openvino/opsets/opset8/__init__.py similarity index 100% rename from src/bindings/python/src/openvino/runtime/opset8/__init__.py rename to src/bindings/python/src/openvino/opsets/opset8/__init__.py diff --git a/src/bindings/python/src/openvino/runtime/opset8/ops.py b/src/bindings/python/src/openvino/opsets/opset8/ops.py similarity index 100% rename from src/bindings/python/src/openvino/runtime/opset8/ops.py rename to src/bindings/python/src/openvino/opsets/opset8/ops.py diff --git a/src/bindings/python/src/openvino/runtime/opset9/__init__.py b/src/bindings/python/src/openvino/opsets/opset9/__init__.py similarity index 100% rename from src/bindings/python/src/openvino/runtime/opset9/__init__.py rename to src/bindings/python/src/openvino/opsets/opset9/__init__.py diff --git a/src/bindings/python/src/openvino/runtime/opset9/ops.py b/src/bindings/python/src/openvino/opsets/opset9/ops.py similarity index 100% rename from src/bindings/python/src/openvino/runtime/opset9/ops.py rename to src/bindings/python/src/openvino/opsets/opset9/ops.py diff --git a/src/bindings/python/src/openvino/runtime/opset_utils.py b/src/bindings/python/src/openvino/opsets/opset_utils.py similarity index 100% rename from src/bindings/python/src/openvino/runtime/opset_utils.py rename to src/bindings/python/src/openvino/opsets/opset_utils.py diff --git a/src/bindings/python/src/openvino/runtime/__init__.py b/src/bindings/python/src/openvino/runtime/__init__.py index e134c2a361b50e..9219fa9e61f965 100644 --- a/src/bindings/python/src/openvino/runtime/__init__.py +++ b/src/bindings/python/src/openvino/runtime/__init__.py @@ -6,14 +6,13 @@ # noqa: F401 import warnings - warnings.simplefilter('always', DeprecationWarning) warnings.warn( - 'The `openvino.runtime` module is deprecated and will be removed in the 2026.0 release. ' - 'Please replace `openvino.runtime` with `openvino` after 25.1 release.', - DeprecationWarning, - stacklevel=2 +'The `openvino.runtime` module is deprecated and will be removed in the 2026.0 release. ' +'Please replace `openvino.runtime` with `openvino` after 25.1 release.', +DeprecationWarning, +stacklevel=2 ) from openvino._pyopenvino import get_version @@ -40,11 +39,11 @@ from openvino._pyopenvino import layout_helpers from openvino._pyopenvino import OVAny from openvino._pyopenvino import RTMap -from openvino.runtime.ie_api import Core -from openvino.runtime.ie_api import CompiledModel -from openvino.runtime.ie_api import InferRequest -from openvino.runtime.ie_api import Model -from openvino.runtime.ie_api import AsyncInferQueue +from openvino.ie_api import Core +from openvino.ie_api import CompiledModel +from openvino.ie_api import InferRequest +from openvino.ie_api import Model +from openvino.ie_api import AsyncInferQueue from openvino._pyopenvino import Version from openvino._pyopenvino import Tensor from openvino._pyopenvino import Extension @@ -74,8 +73,9 @@ from openvino.runtime import properties # Helper functions for openvino module -from openvino.runtime.ie_api import tensor_from_file -from openvino.runtime.ie_api import compile_model +from openvino.ie_api import tensor_from_file +from openvino.ie_api import compile_model +from openvino import ie_api as ie_api from openvino.utils import deprecated diff --git a/src/bindings/python/src/openvino/runtime/utils/__init__.py b/src/bindings/python/src/openvino/utils/__init__.py similarity index 100% rename from src/bindings/python/src/openvino/runtime/utils/__init__.py rename to src/bindings/python/src/openvino/utils/__init__.py diff --git a/src/bindings/python/src/openvino/runtime/utils/broadcasting.py b/src/bindings/python/src/openvino/utils/broadcasting.py similarity index 100% rename from src/bindings/python/src/openvino/runtime/utils/broadcasting.py rename to src/bindings/python/src/openvino/utils/broadcasting.py diff --git a/src/bindings/python/src/openvino/runtime/utils/data_helpers/__init__.py b/src/bindings/python/src/openvino/utils/data_helpers/__init__.py similarity index 100% rename from src/bindings/python/src/openvino/runtime/utils/data_helpers/__init__.py rename to src/bindings/python/src/openvino/utils/data_helpers/__init__.py diff --git a/src/bindings/python/src/openvino/runtime/utils/data_helpers/data_dispatcher.py b/src/bindings/python/src/openvino/utils/data_helpers/data_dispatcher.py similarity index 100% rename from src/bindings/python/src/openvino/runtime/utils/data_helpers/data_dispatcher.py rename to src/bindings/python/src/openvino/utils/data_helpers/data_dispatcher.py diff --git a/src/bindings/python/src/openvino/runtime/utils/data_helpers/wrappers.py b/src/bindings/python/src/openvino/utils/data_helpers/wrappers.py similarity index 100% rename from src/bindings/python/src/openvino/runtime/utils/data_helpers/wrappers.py rename to src/bindings/python/src/openvino/utils/data_helpers/wrappers.py diff --git a/src/bindings/python/src/openvino/runtime/utils/decorators.py b/src/bindings/python/src/openvino/utils/decorators.py similarity index 100% rename from src/bindings/python/src/openvino/runtime/utils/decorators.py rename to src/bindings/python/src/openvino/utils/decorators.py diff --git a/src/bindings/python/src/openvino/runtime/utils/input_validation.py b/src/bindings/python/src/openvino/utils/input_validation.py similarity index 100% rename from src/bindings/python/src/openvino/runtime/utils/input_validation.py rename to src/bindings/python/src/openvino/utils/input_validation.py diff --git a/src/bindings/python/src/openvino/runtime/utils/node_factory.py b/src/bindings/python/src/openvino/utils/node_factory.py similarity index 100% rename from src/bindings/python/src/openvino/runtime/utils/node_factory.py rename to src/bindings/python/src/openvino/utils/node_factory.py diff --git a/src/bindings/python/src/openvino/runtime/utils/reduction.py b/src/bindings/python/src/openvino/utils/reduction.py similarity index 100% rename from src/bindings/python/src/openvino/runtime/utils/reduction.py rename to src/bindings/python/src/openvino/utils/reduction.py diff --git a/src/bindings/python/src/openvino/runtime/utils/types.py b/src/bindings/python/src/openvino/utils/types.py similarity index 100% rename from src/bindings/python/src/openvino/runtime/utils/types.py rename to src/bindings/python/src/openvino/utils/types.py diff --git a/tools/benchmark_tool/openvino/__init__.py b/tools/benchmark_tool/openvino/__init__.py index f20865d0d95f58..4f3e65e0e75de3 100644 --- a/tools/benchmark_tool/openvino/__init__.py +++ b/tools/benchmark_tool/openvino/__init__.py @@ -27,30 +27,30 @@ from openvino import properties as properties # Import most important classes and functions from openvino.runtime -from openvino.runtime import Model -from openvino.runtime import Core -from openvino.runtime import CompiledModel -from openvino.runtime import InferRequest -from openvino.runtime import AsyncInferQueue +from openvino.ie_api import Model +from openvino.ie_api import Core +from openvino.ie_api import CompiledModel +from openvino.ie_api import InferRequest +from openvino.ie_api import AsyncInferQueue -from openvino.runtime import Symbol -from openvino.runtime import Dimension -from openvino.runtime import Strides -from openvino.runtime import PartialShape -from openvino.runtime import Shape -from openvino.runtime import Layout -from openvino.runtime import Type -from openvino.runtime import Tensor -from openvino.runtime import OVAny +from openvino._pyopenvino import Symbol +from openvino._pyopenvino import Dimension +from openvino._pyopenvino import Strides +from openvino._pyopenvino import PartialShape +from openvino._pyopenvino import Shape +from openvino._pyopenvino import Layout +from openvino._pyopenvino import Type +from openvino._pyopenvino import Tensor +from openvino._pyopenvino import OVAny -from openvino.runtime import compile_model -from openvino.runtime import get_batch -from openvino.runtime import set_batch -from openvino.runtime import serialize -from openvino.runtime import shutdown -from openvino.runtime import tensor_from_file -from openvino.runtime import save_model -from openvino.runtime import layout_helpers +from openvino.ie_api import compile_model +from openvino._pyopenvino import get_batch +from openvino._pyopenvino import set_batch +from openvino._pyopenvino import serialize +from openvino._pyopenvino import shutdown +from openvino.ie_api import tensor_from_file +from openvino._pyopenvino import save_model +from openvino._pyopenvino import layout_helpers from openvino._pyopenvino import RemoteContext from openvino._pyopenvino import RemoteTensor @@ -61,7 +61,7 @@ from openvino._pyopenvino import VASurfaceTensor # Set version for openvino package -from openvino.runtime import get_version +from openvino._pyopenvino import get_version __version__ = get_version() # Tools diff --git a/tools/ovc/openvino/__init__.py b/tools/ovc/openvino/__init__.py index f20865d0d95f58..4f3e65e0e75de3 100644 --- a/tools/ovc/openvino/__init__.py +++ b/tools/ovc/openvino/__init__.py @@ -27,30 +27,30 @@ from openvino import properties as properties # Import most important classes and functions from openvino.runtime -from openvino.runtime import Model -from openvino.runtime import Core -from openvino.runtime import CompiledModel -from openvino.runtime import InferRequest -from openvino.runtime import AsyncInferQueue +from openvino.ie_api import Model +from openvino.ie_api import Core +from openvino.ie_api import CompiledModel +from openvino.ie_api import InferRequest +from openvino.ie_api import AsyncInferQueue -from openvino.runtime import Symbol -from openvino.runtime import Dimension -from openvino.runtime import Strides -from openvino.runtime import PartialShape -from openvino.runtime import Shape -from openvino.runtime import Layout -from openvino.runtime import Type -from openvino.runtime import Tensor -from openvino.runtime import OVAny +from openvino._pyopenvino import Symbol +from openvino._pyopenvino import Dimension +from openvino._pyopenvino import Strides +from openvino._pyopenvino import PartialShape +from openvino._pyopenvino import Shape +from openvino._pyopenvino import Layout +from openvino._pyopenvino import Type +from openvino._pyopenvino import Tensor +from openvino._pyopenvino import OVAny -from openvino.runtime import compile_model -from openvino.runtime import get_batch -from openvino.runtime import set_batch -from openvino.runtime import serialize -from openvino.runtime import shutdown -from openvino.runtime import tensor_from_file -from openvino.runtime import save_model -from openvino.runtime import layout_helpers +from openvino.ie_api import compile_model +from openvino._pyopenvino import get_batch +from openvino._pyopenvino import set_batch +from openvino._pyopenvino import serialize +from openvino._pyopenvino import shutdown +from openvino.ie_api import tensor_from_file +from openvino._pyopenvino import save_model +from openvino._pyopenvino import layout_helpers from openvino._pyopenvino import RemoteContext from openvino._pyopenvino import RemoteTensor @@ -61,7 +61,7 @@ from openvino._pyopenvino import VASurfaceTensor # Set version for openvino package -from openvino.runtime import get_version +from openvino._pyopenvino import get_version __version__ = get_version() # Tools From 46fa0698e66525a7be999f0e20f49f4e0c5e091d Mon Sep 17 00:00:00 2001 From: Alicja Miloszewska Date: Thu, 7 Nov 2024 13:11:14 +0100 Subject: [PATCH 06/38] Add aliases for opset and fix imports in opsets Signed-off-by: Alicja Miloszewska --- .../src/openvino/opsets/opset1/__init__.py | 216 +++++----- .../python/src/openvino/opsets/opset1/ops.py | 14 +- .../src/openvino/opsets/opset10/__init__.py | 350 ++++++++-------- .../python/src/openvino/opsets/opset10/ops.py | 8 +- .../src/openvino/opsets/opset11/__init__.py | 350 ++++++++-------- .../python/src/openvino/opsets/opset11/ops.py | 8 +- .../src/openvino/opsets/opset12/__init__.py | 352 ++++++++-------- .../python/src/openvino/opsets/opset12/ops.py | 8 +- .../src/openvino/opsets/opset13/__init__.py | 368 ++++++++-------- .../python/src/openvino/opsets/opset13/ops.py | 12 +- .../src/openvino/opsets/opset14/__init__.py | 372 ++++++++--------- .../python/src/openvino/opsets/opset14/ops.py | 10 +- .../src/openvino/opsets/opset15/__init__.py | 394 +++++++++--------- .../python/src/openvino/opsets/opset15/ops.py | 12 +- .../src/openvino/opsets/opset2/__init__.py | 228 +++++----- .../python/src/openvino/opsets/opset2/ops.py | 14 +- .../src/openvino/opsets/opset3/__init__.py | 260 ++++++------ .../python/src/openvino/opsets/opset3/ops.py | 14 +- .../src/openvino/opsets/opset4/__init__.py | 282 ++++++------- .../python/src/openvino/opsets/opset4/ops.py | 14 +- .../src/openvino/opsets/opset5/__init__.py | 296 ++++++------- .../python/src/openvino/opsets/opset5/ops.py | 14 +- .../src/openvino/opsets/opset6/__init__.py | 300 ++++++------- .../python/src/openvino/opsets/opset6/ops.py | 14 +- .../src/openvino/opsets/opset7/__init__.py | 308 +++++++------- .../python/src/openvino/opsets/opset7/ops.py | 14 +- .../src/openvino/opsets/opset8/__init__.py | 330 +++++++-------- .../python/src/openvino/opsets/opset8/ops.py | 12 +- .../src/openvino/opsets/opset9/__init__.py | 342 +++++++-------- .../python/src/openvino/opsets/opset9/ops.py | 8 +- .../python/src/openvino/opsets/opset_utils.py | 8 +- .../python/src/openvino/runtime/__init__.py | 30 +- 32 files changed, 2483 insertions(+), 2479 deletions(-) diff --git a/src/bindings/python/src/openvino/opsets/opset1/__init__.py b/src/bindings/python/src/openvino/opsets/opset1/__init__.py index 5bfa42f43f26b9..b358b96d2a29d3 100644 --- a/src/bindings/python/src/openvino/opsets/opset1/__init__.py +++ b/src/bindings/python/src/openvino/opsets/opset1/__init__.py @@ -2,111 +2,111 @@ # Copyright (C) 2018-2024 Intel Corporation # SPDX-License-Identifier: Apache-2.0 -from openvino.runtime.opset1.ops import absolute -from openvino.runtime.opset1.ops import absolute as abs -from openvino.runtime.opset1.ops import acos -from openvino.runtime.opset1.ops import add -from openvino.runtime.opset1.ops import asin -from openvino.runtime.opset1.ops import atan -from openvino.runtime.opset1.ops import avg_pool -from openvino.runtime.opset1.ops import batch_norm_inference -from openvino.runtime.opset1.ops import binary_convolution -from openvino.runtime.opset1.ops import broadcast -from openvino.runtime.opset1.ops import ceiling -from openvino.runtime.opset1.ops import ceiling as ceil -from openvino.runtime.opset1.ops import clamp -from openvino.runtime.opset1.ops import concat -from openvino.runtime.opset1.ops import constant -from openvino.runtime.opset1.ops import convert -from openvino.runtime.opset1.ops import convert_like -from openvino.runtime.opset1.ops import convolution -from openvino.runtime.opset1.ops import convolution_backprop_data -from openvino.runtime.opset1.ops import cos -from openvino.runtime.opset1.ops import cosh -from openvino.runtime.opset1.ops import ctc_greedy_decoder -from openvino.runtime.opset1.ops import deformable_convolution -from openvino.runtime.opset1.ops import deformable_psroi_pooling -from openvino.runtime.opset1.ops import depth_to_space -from openvino.runtime.opset1.ops import detection_output -from openvino.runtime.opset1.ops import divide -from openvino.runtime.opset1.ops import elu -from openvino.runtime.opset1.ops import equal -from openvino.runtime.opset1.ops import erf -from openvino.runtime.opset1.ops import exp -from openvino.runtime.opset1.ops import fake_quantize -from openvino.runtime.opset1.ops import floor -from openvino.runtime.opset1.ops import floor_mod -from openvino.runtime.opset1.ops import gather -from openvino.runtime.opset1.ops import gather_tree -from openvino.runtime.opset1.ops import greater -from openvino.runtime.opset1.ops import greater_equal -from openvino.runtime.opset1.ops import grn -from openvino.runtime.opset1.ops import group_convolution -from openvino.runtime.opset1.ops import group_convolution_backprop_data -from openvino.runtime.opset1.ops import hard_sigmoid -from openvino.runtime.opset1.ops import interpolate -from openvino.runtime.opset1.ops import less -from openvino.runtime.opset1.ops import less_equal -from openvino.runtime.opset1.ops import log -from openvino.runtime.opset1.ops import logical_and -from openvino.runtime.opset1.ops import logical_not -from openvino.runtime.opset1.ops import logical_or -from openvino.runtime.opset1.ops import logical_xor -from openvino.runtime.opset1.ops import lrn -from openvino.runtime.opset1.ops import lstm_cell -from openvino.runtime.opset1.ops import lstm_sequence -from openvino.runtime.opset1.ops import matmul -from openvino.runtime.opset1.ops import max_pool -from openvino.runtime.opset1.ops import maximum -from openvino.runtime.opset1.ops import minimum -from openvino.runtime.opset1.ops import mod -from openvino.runtime.opset1.ops import multiply -from openvino.runtime.opset1.ops import negative -from openvino.runtime.opset1.ops import non_max_suppression -from openvino.runtime.opset1.ops import normalize_l2 -from openvino.runtime.opset1.ops import not_equal -from openvino.runtime.opset1.ops import one_hot -from openvino.runtime.opset1.ops import pad -from openvino.runtime.opset1.ops import parameter -from openvino.runtime.opset1.ops import power -from openvino.runtime.opset1.ops import prelu -from openvino.runtime.opset1.ops import prior_box -from openvino.runtime.opset1.ops import prior_box_clustered -from openvino.runtime.opset1.ops import psroi_pooling -from openvino.runtime.opset1.ops import proposal -from openvino.runtime.opset1.ops import range -from openvino.runtime.opset1.ops import reduce_logical_and -from openvino.runtime.opset1.ops import reduce_logical_or -from openvino.runtime.opset1.ops import reduce_max -from openvino.runtime.opset1.ops import reduce_mean -from openvino.runtime.opset1.ops import reduce_min -from openvino.runtime.opset1.ops import reduce_prod -from openvino.runtime.opset1.ops import reduce_sum -from openvino.runtime.opset1.ops import region_yolo -from openvino.runtime.opset1.ops import relu -from openvino.runtime.opset1.ops import reshape -from openvino.runtime.opset1.ops import result -from openvino.runtime.opset1.ops import reverse_sequence -from openvino.runtime.opset1.ops import select -from openvino.runtime.opset1.ops import selu -from openvino.runtime.opset1.ops import shape_of -from openvino.runtime.opset1.ops import sigmoid -from openvino.runtime.opset1.ops import sign -from openvino.runtime.opset1.ops import sin -from openvino.runtime.opset1.ops import sinh -from openvino.runtime.opset1.ops import softmax -from openvino.runtime.opset1.ops import space_to_depth -from openvino.runtime.opset1.ops import split -from openvino.runtime.opset1.ops import sqrt -from openvino.runtime.opset1.ops import squared_difference -from openvino.runtime.opset1.ops import squeeze -from openvino.runtime.opset1.ops import strided_slice -from openvino.runtime.opset1.ops import subtract -from openvino.runtime.opset1.ops import tan -from openvino.runtime.opset1.ops import tanh -from openvino.runtime.opset1.ops import tensor_iterator -from openvino.runtime.opset1.ops import tile -from openvino.runtime.opset1.ops import topk -from openvino.runtime.opset1.ops import transpose -from openvino.runtime.opset1.ops import unsqueeze -from openvino.runtime.opset1.ops import variadic_split +from openvino.opsets.opset1.ops import absolute +from openvino.opsets.opset1.ops import absolute as abs +from openvino.opsets.opset1.ops import acos +from openvino.opsets.opset1.ops import add +from openvino.opsets.opset1.ops import asin +from openvino.opsets.opset1.ops import atan +from openvino.opsets.opset1.ops import avg_pool +from openvino.opsets.opset1.ops import batch_norm_inference +from openvino.opsets.opset1.ops import binary_convolution +from openvino.opsets.opset1.ops import broadcast +from openvino.opsets.opset1.ops import ceiling +from openvino.opsets.opset1.ops import ceiling as ceil +from openvino.opsets.opset1.ops import clamp +from openvino.opsets.opset1.ops import concat +from openvino.opsets.opset1.ops import constant +from openvino.opsets.opset1.ops import convert +from openvino.opsets.opset1.ops import convert_like +from openvino.opsets.opset1.ops import convolution +from openvino.opsets.opset1.ops import convolution_backprop_data +from openvino.opsets.opset1.ops import cos +from openvino.opsets.opset1.ops import cosh +from openvino.opsets.opset1.ops import ctc_greedy_decoder +from openvino.opsets.opset1.ops import deformable_convolution +from openvino.opsets.opset1.ops import deformable_psroi_pooling +from openvino.opsets.opset1.ops import depth_to_space +from openvino.opsets.opset1.ops import detection_output +from openvino.opsets.opset1.ops import divide +from openvino.opsets.opset1.ops import elu +from openvino.opsets.opset1.ops import equal +from openvino.opsets.opset1.ops import erf +from openvino.opsets.opset1.ops import exp +from openvino.opsets.opset1.ops import fake_quantize +from openvino.opsets.opset1.ops import floor +from openvino.opsets.opset1.ops import floor_mod +from openvino.opsets.opset1.ops import gather +from openvino.opsets.opset1.ops import gather_tree +from openvino.opsets.opset1.ops import greater +from openvino.opsets.opset1.ops import greater_equal +from openvino.opsets.opset1.ops import grn +from openvino.opsets.opset1.ops import group_convolution +from openvino.opsets.opset1.ops import group_convolution_backprop_data +from openvino.opsets.opset1.ops import hard_sigmoid +from openvino.opsets.opset1.ops import interpolate +from openvino.opsets.opset1.ops import less +from openvino.opsets.opset1.ops import less_equal +from openvino.opsets.opset1.ops import log +from openvino.opsets.opset1.ops import logical_and +from openvino.opsets.opset1.ops import logical_not +from openvino.opsets.opset1.ops import logical_or +from openvino.opsets.opset1.ops import logical_xor +from openvino.opsets.opset1.ops import lrn +from openvino.opsets.opset1.ops import lstm_cell +from openvino.opsets.opset1.ops import lstm_sequence +from openvino.opsets.opset1.ops import matmul +from openvino.opsets.opset1.ops import max_pool +from openvino.opsets.opset1.ops import maximum +from openvino.opsets.opset1.ops import minimum +from openvino.opsets.opset1.ops import mod +from openvino.opsets.opset1.ops import multiply +from openvino.opsets.opset1.ops import negative +from openvino.opsets.opset1.ops import non_max_suppression +from openvino.opsets.opset1.ops import normalize_l2 +from openvino.opsets.opset1.ops import not_equal +from openvino.opsets.opset1.ops import one_hot +from openvino.opsets.opset1.ops import pad +from openvino.opsets.opset1.ops import parameter +from openvino.opsets.opset1.ops import power +from openvino.opsets.opset1.ops import prelu +from openvino.opsets.opset1.ops import prior_box +from openvino.opsets.opset1.ops import prior_box_clustered +from openvino.opsets.opset1.ops import psroi_pooling +from openvino.opsets.opset1.ops import proposal +from openvino.opsets.opset1.ops import range +from openvino.opsets.opset1.ops import reduce_logical_and +from openvino.opsets.opset1.ops import reduce_logical_or +from openvino.opsets.opset1.ops import reduce_max +from openvino.opsets.opset1.ops import reduce_mean +from openvino.opsets.opset1.ops import reduce_min +from openvino.opsets.opset1.ops import reduce_prod +from openvino.opsets.opset1.ops import reduce_sum +from openvino.opsets.opset1.ops import region_yolo +from openvino.opsets.opset1.ops import relu +from openvino.opsets.opset1.ops import reshape +from openvino.opsets.opset1.ops import result +from openvino.opsets.opset1.ops import reverse_sequence +from openvino.opsets.opset1.ops import select +from openvino.opsets.opset1.ops import selu +from openvino.opsets.opset1.ops import shape_of +from openvino.opsets.opset1.ops import sigmoid +from openvino.opsets.opset1.ops import sign +from openvino.opsets.opset1.ops import sin +from openvino.opsets.opset1.ops import sinh +from openvino.opsets.opset1.ops import softmax +from openvino.opsets.opset1.ops import space_to_depth +from openvino.opsets.opset1.ops import split +from openvino.opsets.opset1.ops import sqrt +from openvino.opsets.opset1.ops import squared_difference +from openvino.opsets.opset1.ops import squeeze +from openvino.opsets.opset1.ops import strided_slice +from openvino.opsets.opset1.ops import subtract +from openvino.opsets.opset1.ops import tan +from openvino.opsets.opset1.ops import tanh +from openvino.opsets.opset1.ops import tensor_iterator +from openvino.opsets.opset1.ops import tile +from openvino.opsets.opset1.ops import topk +from openvino.opsets.opset1.ops import transpose +from openvino.opsets.opset1.ops import unsqueeze +from openvino.opsets.opset1.ops import variadic_split diff --git a/src/bindings/python/src/openvino/opsets/opset1/ops.py b/src/bindings/python/src/openvino/opsets/opset1/ops.py index c100a6c2db2cb4..b57c77668645dd 100644 --- a/src/bindings/python/src/openvino/opsets/opset1/ops.py +++ b/src/bindings/python/src/openvino/opsets/opset1/ops.py @@ -8,17 +8,17 @@ import numpy as np from functools import partial -from openvino.runtime import Node, PartialShape, Type -from openvino.runtime.op import Constant, Parameter, tensor_iterator -from openvino.runtime.opset_utils import _get_node_factory -from openvino.runtime.utils.decorators import binary_op, nameable_op, unary_op -from openvino.runtime.utils.input_validation import ( +from openvino._pyopenvino import Node, PartialShape, Type +from openvino.opsets.op import Constant, Parameter, tensor_iterator +from openvino.opsets.opset_utils import _get_node_factory +from openvino.utils.decorators import binary_op, nameable_op, unary_op +from openvino.utils.input_validation import ( check_valid_attributes, is_non_negative_value, is_positive_value, ) -from openvino.runtime.utils.node_factory import NodeFactory -from openvino.runtime.utils.types import ( +from openvino.utils.node_factory import NodeFactory +from openvino.utils.types import ( NodeInput, NumericData, NumericType, diff --git a/src/bindings/python/src/openvino/opsets/opset10/__init__.py b/src/bindings/python/src/openvino/opsets/opset10/__init__.py index 29ebcb27039abc..0f077499c549e1 100644 --- a/src/bindings/python/src/openvino/opsets/opset10/__init__.py +++ b/src/bindings/python/src/openvino/opsets/opset10/__init__.py @@ -2,178 +2,178 @@ # Copyright (C) 2018-2024 Intel Corporation # SPDX-License-Identifier: Apache-2.0 -from openvino.runtime.opset1.ops import absolute -from openvino.runtime.opset1.ops import absolute as abs -from openvino.runtime.opset1.ops import acos -from openvino.runtime.opset4.ops import acosh -from openvino.runtime.opset8.ops import adaptive_avg_pool -from openvino.runtime.opset8.ops import adaptive_max_pool -from openvino.runtime.opset1.ops import add -from openvino.runtime.opset1.ops import asin -from openvino.runtime.opset4.ops import asinh -from openvino.runtime.opset6.ops import assign -from openvino.runtime.opset1.ops import atan -from openvino.runtime.opset4.ops import atanh -from openvino.runtime.opset1.ops import avg_pool -from openvino.runtime.opset5.ops import batch_norm_inference -from openvino.runtime.opset2.ops import batch_to_space -from openvino.runtime.opset1.ops import binary_convolution -from openvino.runtime.opset3.ops import broadcast -from openvino.runtime.opset3.ops import bucketize -from openvino.runtime.opset1.ops import ceiling -from openvino.runtime.opset1.ops import ceiling as ceil -from openvino.runtime.opset1.ops import clamp -from openvino.runtime.opset1.ops import concat -from openvino.runtime.opset1.ops import constant -from openvino.runtime.opset1.ops import convert -from openvino.runtime.opset1.ops import convert_like -from openvino.runtime.opset1.ops import convolution -from openvino.runtime.opset1.ops import convolution_backprop_data -from openvino.runtime.opset1.ops import cos -from openvino.runtime.opset1.ops import cosh -from openvino.runtime.opset1.ops import ctc_greedy_decoder -from openvino.runtime.opset6.ops import ctc_greedy_decoder_seq_len -from openvino.runtime.opset4.ops import ctc_loss -from openvino.runtime.opset3.ops import cum_sum -from openvino.runtime.opset3.ops import cum_sum as cumsum -from openvino.runtime.opset8.ops import deformable_convolution -from openvino.runtime.opset1.ops import deformable_psroi_pooling -from openvino.runtime.opset1.ops import depth_to_space -from openvino.runtime.opset8.ops import detection_output -from openvino.runtime.opset7.ops import dft -from openvino.runtime.opset1.ops import divide -from openvino.runtime.opset7.ops import einsum -from openvino.runtime.opset1.ops import elu -from openvino.runtime.opset3.ops import embedding_bag_offsets_sum -from openvino.runtime.opset3.ops import embedding_bag_packed_sum -from openvino.runtime.opset3.ops import embedding_segments_sum -from openvino.runtime.opset3.ops import extract_image_patches -from openvino.runtime.opset1.ops import equal -from openvino.runtime.opset1.ops import erf -from openvino.runtime.opset1.ops import exp -from openvino.runtime.opset9.ops import eye -from openvino.runtime.opset1.ops import fake_quantize -from openvino.runtime.opset1.ops import floor -from openvino.runtime.opset1.ops import floor_mod -from openvino.runtime.opset8.ops import gather -from openvino.runtime.opset6.ops import gather_elements -from openvino.runtime.opset8.ops import gather_nd -from openvino.runtime.opset1.ops import gather_tree -from openvino.runtime.opset7.ops import gelu -from openvino.runtime.opset9.ops import generate_proposals -from openvino.runtime.opset1.ops import greater -from openvino.runtime.opset1.ops import greater_equal -from openvino.runtime.opset9.ops import grid_sample -from openvino.runtime.opset1.ops import grn -from openvino.runtime.opset1.ops import group_convolution -from openvino.runtime.opset1.ops import group_convolution_backprop_data -from openvino.runtime.opset3.ops import gru_cell -from openvino.runtime.opset5.ops import gru_sequence -from openvino.runtime.opset1.ops import hard_sigmoid -from openvino.runtime.opset5.ops import hsigmoid -from openvino.runtime.opset4.ops import hswish -from openvino.runtime.opset7.ops import idft -from openvino.runtime.opset8.ops import if_op -from openvino.runtime.opset10.ops import interpolate -from openvino.runtime.opset9.ops import irdft -from openvino.runtime.opset10.ops import is_finite -from openvino.runtime.opset10.ops import is_inf -from openvino.runtime.opset10.ops import is_nan -from openvino.runtime.opset8.ops import i420_to_bgr -from openvino.runtime.opset8.ops import i420_to_rgb -from openvino.runtime.opset1.ops import less -from openvino.runtime.opset1.ops import less_equal -from openvino.runtime.opset1.ops import log -from openvino.runtime.opset1.ops import logical_and -from openvino.runtime.opset1.ops import logical_not -from openvino.runtime.opset1.ops import logical_or -from openvino.runtime.opset1.ops import logical_xor -from openvino.runtime.opset5.ops import log_softmax -from openvino.runtime.opset5.ops import loop -from openvino.runtime.opset1.ops import lrn -from openvino.runtime.opset4.ops import lstm_cell -from openvino.runtime.opset5.ops import lstm_sequence -from openvino.runtime.opset1.ops import matmul -from openvino.runtime.opset8.ops import matrix_nms -from openvino.runtime.opset8.ops import max_pool -from openvino.runtime.opset1.ops import maximum -from openvino.runtime.opset1.ops import minimum -from openvino.runtime.opset4.ops import mish -from openvino.runtime.opset1.ops import mod -from openvino.runtime.opset9.ops import multiclass_nms -from openvino.runtime.opset1.ops import multiply -from openvino.runtime.opset6.ops import mvn -from openvino.runtime.opset1.ops import negative -from openvino.runtime.opset9.ops import non_max_suppression -from openvino.runtime.opset3.ops import non_zero -from openvino.runtime.opset1.ops import normalize_l2 -from openvino.runtime.opset1.ops import not_equal -from openvino.runtime.opset8.ops import nv12_to_bgr -from openvino.runtime.opset8.ops import nv12_to_rgb -from openvino.runtime.opset1.ops import one_hot -from openvino.runtime.opset1.ops import pad -from openvino.runtime.opset1.ops import parameter -from openvino.runtime.opset1.ops import power -from openvino.runtime.opset1.ops import prelu -from openvino.runtime.opset8.ops import prior_box -from openvino.runtime.opset1.ops import prior_box_clustered -from openvino.runtime.opset1.ops import psroi_pooling -from openvino.runtime.opset4.ops import proposal -from openvino.runtime.opset1.ops import range -from openvino.runtime.opset8.ops import random_uniform -from openvino.runtime.opset9.ops import rdft -from openvino.runtime.opset6.ops import read_value -from openvino.runtime.opset4.ops import reduce_l1 -from openvino.runtime.opset4.ops import reduce_l2 -from openvino.runtime.opset1.ops import reduce_logical_and -from openvino.runtime.opset1.ops import reduce_logical_or -from openvino.runtime.opset1.ops import reduce_max -from openvino.runtime.opset1.ops import reduce_mean -from openvino.runtime.opset1.ops import reduce_min -from openvino.runtime.opset1.ops import reduce_prod -from openvino.runtime.opset1.ops import reduce_sum -from openvino.runtime.opset1.ops import region_yolo -from openvino.runtime.opset2.ops import reorg_yolo -from openvino.runtime.opset1.ops import relu -from openvino.runtime.opset1.ops import reshape -from openvino.runtime.opset1.ops import result -from openvino.runtime.opset1.ops import reverse_sequence -from openvino.runtime.opset3.ops import rnn_cell -from openvino.runtime.opset5.ops import rnn_sequence -from openvino.runtime.opset9.ops import roi_align -from openvino.runtime.opset2.ops import roi_pooling -from openvino.runtime.opset7.ops import roll -from openvino.runtime.opset5.ops import round -from openvino.runtime.opset3.ops import scatter_elements_update -from openvino.runtime.opset4.ops import scatter_nd_update -from openvino.runtime.opset3.ops import scatter_update -from openvino.runtime.opset1.ops import select -from openvino.runtime.opset1.ops import selu -from openvino.runtime.opset3.ops import shape_of -from openvino.runtime.opset3.ops import shuffle_channels -from openvino.runtime.opset1.ops import sigmoid -from openvino.runtime.opset1.ops import sign -from openvino.runtime.opset1.ops import sin -from openvino.runtime.opset1.ops import sinh -from openvino.runtime.opset8.ops import slice -from openvino.runtime.opset8.ops import softmax -from openvino.runtime.opset4.ops import softplus -from openvino.runtime.opset9.ops import softsign -from openvino.runtime.opset2.ops import space_to_batch -from openvino.runtime.opset1.ops import space_to_depth -from openvino.runtime.opset1.ops import split -from openvino.runtime.opset1.ops import sqrt -from openvino.runtime.opset1.ops import squared_difference -from openvino.runtime.opset1.ops import squeeze -from openvino.runtime.opset1.ops import strided_slice -from openvino.runtime.opset1.ops import subtract -from openvino.runtime.opset4.ops import swish -from openvino.runtime.opset1.ops import tan -from openvino.runtime.opset1.ops import tanh -from openvino.runtime.opset1.ops import tensor_iterator -from openvino.runtime.opset1.ops import tile -from openvino.runtime.opset3.ops import topk -from openvino.runtime.opset1.ops import transpose -from openvino.runtime.opset10.ops import unique -from openvino.runtime.opset1.ops import unsqueeze -from openvino.runtime.opset1.ops import variadic_split +from openvino.opsets.opset1.ops import absolute +from openvino.opsets.opset1.ops import absolute as abs +from openvino.opsets.opset1.ops import acos +from openvino.opsets.opset4.ops import acosh +from openvino.opsets.opset8.ops import adaptive_avg_pool +from openvino.opsets.opset8.ops import adaptive_max_pool +from openvino.opsets.opset1.ops import add +from openvino.opsets.opset1.ops import asin +from openvino.opsets.opset4.ops import asinh +from openvino.opsets.opset6.ops import assign +from openvino.opsets.opset1.ops import atan +from openvino.opsets.opset4.ops import atanh +from openvino.opsets.opset1.ops import avg_pool +from openvino.opsets.opset5.ops import batch_norm_inference +from openvino.opsets.opset2.ops import batch_to_space +from openvino.opsets.opset1.ops import binary_convolution +from openvino.opsets.opset3.ops import broadcast +from openvino.opsets.opset3.ops import bucketize +from openvino.opsets.opset1.ops import ceiling +from openvino.opsets.opset1.ops import ceiling as ceil +from openvino.opsets.opset1.ops import clamp +from openvino.opsets.opset1.ops import concat +from openvino.opsets.opset1.ops import constant +from openvino.opsets.opset1.ops import convert +from openvino.opsets.opset1.ops import convert_like +from openvino.opsets.opset1.ops import convolution +from openvino.opsets.opset1.ops import convolution_backprop_data +from openvino.opsets.opset1.ops import cos +from openvino.opsets.opset1.ops import cosh +from openvino.opsets.opset1.ops import ctc_greedy_decoder +from openvino.opsets.opset6.ops import ctc_greedy_decoder_seq_len +from openvino.opsets.opset4.ops import ctc_loss +from openvino.opsets.opset3.ops import cum_sum +from openvino.opsets.opset3.ops import cum_sum as cumsum +from openvino.opsets.opset8.ops import deformable_convolution +from openvino.opsets.opset1.ops import deformable_psroi_pooling +from openvino.opsets.opset1.ops import depth_to_space +from openvino.opsets.opset8.ops import detection_output +from openvino.opsets.opset7.ops import dft +from openvino.opsets.opset1.ops import divide +from openvino.opsets.opset7.ops import einsum +from openvino.opsets.opset1.ops import elu +from openvino.opsets.opset3.ops import embedding_bag_offsets_sum +from openvino.opsets.opset3.ops import embedding_bag_packed_sum +from openvino.opsets.opset3.ops import embedding_segments_sum +from openvino.opsets.opset3.ops import extract_image_patches +from openvino.opsets.opset1.ops import equal +from openvino.opsets.opset1.ops import erf +from openvino.opsets.opset1.ops import exp +from openvino.opsets.opset9.ops import eye +from openvino.opsets.opset1.ops import fake_quantize +from openvino.opsets.opset1.ops import floor +from openvino.opsets.opset1.ops import floor_mod +from openvino.opsets.opset8.ops import gather +from openvino.opsets.opset6.ops import gather_elements +from openvino.opsets.opset8.ops import gather_nd +from openvino.opsets.opset1.ops import gather_tree +from openvino.opsets.opset7.ops import gelu +from openvino.opsets.opset9.ops import generate_proposals +from openvino.opsets.opset1.ops import greater +from openvino.opsets.opset1.ops import greater_equal +from openvino.opsets.opset9.ops import grid_sample +from openvino.opsets.opset1.ops import grn +from openvino.opsets.opset1.ops import group_convolution +from openvino.opsets.opset1.ops import group_convolution_backprop_data +from openvino.opsets.opset3.ops import gru_cell +from openvino.opsets.opset5.ops import gru_sequence +from openvino.opsets.opset1.ops import hard_sigmoid +from openvino.opsets.opset5.ops import hsigmoid +from openvino.opsets.opset4.ops import hswish +from openvino.opsets.opset7.ops import idft +from openvino.opsets.opset8.ops import if_op +from openvino.opsets.opset10.ops import interpolate +from openvino.opsets.opset9.ops import irdft +from openvino.opsets.opset10.ops import is_finite +from openvino.opsets.opset10.ops import is_inf +from openvino.opsets.opset10.ops import is_nan +from openvino.opsets.opset8.ops import i420_to_bgr +from openvino.opsets.opset8.ops import i420_to_rgb +from openvino.opsets.opset1.ops import less +from openvino.opsets.opset1.ops import less_equal +from openvino.opsets.opset1.ops import log +from openvino.opsets.opset1.ops import logical_and +from openvino.opsets.opset1.ops import logical_not +from openvino.opsets.opset1.ops import logical_or +from openvino.opsets.opset1.ops import logical_xor +from openvino.opsets.opset5.ops import log_softmax +from openvino.opsets.opset5.ops import loop +from openvino.opsets.opset1.ops import lrn +from openvino.opsets.opset4.ops import lstm_cell +from openvino.opsets.opset5.ops import lstm_sequence +from openvino.opsets.opset1.ops import matmul +from openvino.opsets.opset8.ops import matrix_nms +from openvino.opsets.opset8.ops import max_pool +from openvino.opsets.opset1.ops import maximum +from openvino.opsets.opset1.ops import minimum +from openvino.opsets.opset4.ops import mish +from openvino.opsets.opset1.ops import mod +from openvino.opsets.opset9.ops import multiclass_nms +from openvino.opsets.opset1.ops import multiply +from openvino.opsets.opset6.ops import mvn +from openvino.opsets.opset1.ops import negative +from openvino.opsets.opset9.ops import non_max_suppression +from openvino.opsets.opset3.ops import non_zero +from openvino.opsets.opset1.ops import normalize_l2 +from openvino.opsets.opset1.ops import not_equal +from openvino.opsets.opset8.ops import nv12_to_bgr +from openvino.opsets.opset8.ops import nv12_to_rgb +from openvino.opsets.opset1.ops import one_hot +from openvino.opsets.opset1.ops import pad +from openvino.opsets.opset1.ops import parameter +from openvino.opsets.opset1.ops import power +from openvino.opsets.opset1.ops import prelu +from openvino.opsets.opset8.ops import prior_box +from openvino.opsets.opset1.ops import prior_box_clustered +from openvino.opsets.opset1.ops import psroi_pooling +from openvino.opsets.opset4.ops import proposal +from openvino.opsets.opset1.ops import range +from openvino.opsets.opset8.ops import random_uniform +from openvino.opsets.opset9.ops import rdft +from openvino.opsets.opset6.ops import read_value +from openvino.opsets.opset4.ops import reduce_l1 +from openvino.opsets.opset4.ops import reduce_l2 +from openvino.opsets.opset1.ops import reduce_logical_and +from openvino.opsets.opset1.ops import reduce_logical_or +from openvino.opsets.opset1.ops import reduce_max +from openvino.opsets.opset1.ops import reduce_mean +from openvino.opsets.opset1.ops import reduce_min +from openvino.opsets.opset1.ops import reduce_prod +from openvino.opsets.opset1.ops import reduce_sum +from openvino.opsets.opset1.ops import region_yolo +from openvino.opsets.opset2.ops import reorg_yolo +from openvino.opsets.opset1.ops import relu +from openvino.opsets.opset1.ops import reshape +from openvino.opsets.opset1.ops import result +from openvino.opsets.opset1.ops import reverse_sequence +from openvino.opsets.opset3.ops import rnn_cell +from openvino.opsets.opset5.ops import rnn_sequence +from openvino.opsets.opset9.ops import roi_align +from openvino.opsets.opset2.ops import roi_pooling +from openvino.opsets.opset7.ops import roll +from openvino.opsets.opset5.ops import round +from openvino.opsets.opset3.ops import scatter_elements_update +from openvino.opsets.opset4.ops import scatter_nd_update +from openvino.opsets.opset3.ops import scatter_update +from openvino.opsets.opset1.ops import select +from openvino.opsets.opset1.ops import selu +from openvino.opsets.opset3.ops import shape_of +from openvino.opsets.opset3.ops import shuffle_channels +from openvino.opsets.opset1.ops import sigmoid +from openvino.opsets.opset1.ops import sign +from openvino.opsets.opset1.ops import sin +from openvino.opsets.opset1.ops import sinh +from openvino.opsets.opset8.ops import slice +from openvino.opsets.opset8.ops import softmax +from openvino.opsets.opset4.ops import softplus +from openvino.opsets.opset9.ops import softsign +from openvino.opsets.opset2.ops import space_to_batch +from openvino.opsets.opset1.ops import space_to_depth +from openvino.opsets.opset1.ops import split +from openvino.opsets.opset1.ops import sqrt +from openvino.opsets.opset1.ops import squared_difference +from openvino.opsets.opset1.ops import squeeze +from openvino.opsets.opset1.ops import strided_slice +from openvino.opsets.opset1.ops import subtract +from openvino.opsets.opset4.ops import swish +from openvino.opsets.opset1.ops import tan +from openvino.opsets.opset1.ops import tanh +from openvino.opsets.opset1.ops import tensor_iterator +from openvino.opsets.opset1.ops import tile +from openvino.opsets.opset3.ops import topk +from openvino.opsets.opset1.ops import transpose +from openvino.opsets.opset10.ops import unique +from openvino.opsets.opset1.ops import unsqueeze +from openvino.opsets.opset1.ops import variadic_split diff --git a/src/bindings/python/src/openvino/opsets/opset10/ops.py b/src/bindings/python/src/openvino/opsets/opset10/ops.py index c7b75777484a59..9edd44a88fad88 100644 --- a/src/bindings/python/src/openvino/opsets/opset10/ops.py +++ b/src/bindings/python/src/openvino/opsets/opset10/ops.py @@ -6,10 +6,10 @@ from functools import partial from typing import List, Optional -from openvino.runtime import Node -from openvino.runtime.opset_utils import _get_node_factory -from openvino.runtime.utils.decorators import nameable_op -from openvino.runtime.utils.types import ( +from openvino._pyopenvino import Node +from openvino.opsets.opset_utils import _get_node_factory +from openvino.utils.decorators import nameable_op +from openvino.utils.types import ( NodeInput, as_nodes, as_node, diff --git a/src/bindings/python/src/openvino/opsets/opset11/__init__.py b/src/bindings/python/src/openvino/opsets/opset11/__init__.py index b692741257d435..ba3d6006fb6994 100644 --- a/src/bindings/python/src/openvino/opsets/opset11/__init__.py +++ b/src/bindings/python/src/openvino/opsets/opset11/__init__.py @@ -2,178 +2,178 @@ # Copyright (C) 2018-2024 Intel Corporation # SPDX-License-Identifier: Apache-2.0 -from openvino.runtime.opset1.ops import absolute -from openvino.runtime.opset1.ops import absolute as abs -from openvino.runtime.opset1.ops import acos -from openvino.runtime.opset4.ops import acosh -from openvino.runtime.opset8.ops import adaptive_avg_pool -from openvino.runtime.opset8.ops import adaptive_max_pool -from openvino.runtime.opset1.ops import add -from openvino.runtime.opset1.ops import asin -from openvino.runtime.opset4.ops import asinh -from openvino.runtime.opset6.ops import assign -from openvino.runtime.opset1.ops import atan -from openvino.runtime.opset4.ops import atanh -from openvino.runtime.opset1.ops import avg_pool -from openvino.runtime.opset5.ops import batch_norm_inference -from openvino.runtime.opset2.ops import batch_to_space -from openvino.runtime.opset1.ops import binary_convolution -from openvino.runtime.opset3.ops import broadcast -from openvino.runtime.opset3.ops import bucketize -from openvino.runtime.opset1.ops import ceiling -from openvino.runtime.opset1.ops import ceiling as ceil -from openvino.runtime.opset1.ops import clamp -from openvino.runtime.opset1.ops import concat -from openvino.runtime.opset1.ops import constant -from openvino.runtime.opset1.ops import convert -from openvino.runtime.opset1.ops import convert_like -from openvino.runtime.opset1.ops import convolution -from openvino.runtime.opset1.ops import convolution_backprop_data -from openvino.runtime.opset1.ops import cos -from openvino.runtime.opset1.ops import cosh -from openvino.runtime.opset1.ops import ctc_greedy_decoder -from openvino.runtime.opset6.ops import ctc_greedy_decoder_seq_len -from openvino.runtime.opset4.ops import ctc_loss -from openvino.runtime.opset3.ops import cum_sum -from openvino.runtime.opset3.ops import cum_sum as cumsum -from openvino.runtime.opset8.ops import deformable_convolution -from openvino.runtime.opset1.ops import deformable_psroi_pooling -from openvino.runtime.opset1.ops import depth_to_space -from openvino.runtime.opset8.ops import detection_output -from openvino.runtime.opset7.ops import dft -from openvino.runtime.opset1.ops import divide -from openvino.runtime.opset7.ops import einsum -from openvino.runtime.opset1.ops import elu -from openvino.runtime.opset3.ops import embedding_bag_offsets_sum -from openvino.runtime.opset3.ops import embedding_bag_packed_sum -from openvino.runtime.opset3.ops import embedding_segments_sum -from openvino.runtime.opset3.ops import extract_image_patches -from openvino.runtime.opset1.ops import equal -from openvino.runtime.opset1.ops import erf -from openvino.runtime.opset1.ops import exp -from openvino.runtime.opset9.ops import eye -from openvino.runtime.opset1.ops import fake_quantize -from openvino.runtime.opset1.ops import floor -from openvino.runtime.opset1.ops import floor_mod -from openvino.runtime.opset8.ops import gather -from openvino.runtime.opset6.ops import gather_elements -from openvino.runtime.opset8.ops import gather_nd -from openvino.runtime.opset1.ops import gather_tree -from openvino.runtime.opset7.ops import gelu -from openvino.runtime.opset9.ops import generate_proposals -from openvino.runtime.opset1.ops import greater -from openvino.runtime.opset1.ops import greater_equal -from openvino.runtime.opset9.ops import grid_sample -from openvino.runtime.opset1.ops import grn -from openvino.runtime.opset1.ops import group_convolution -from openvino.runtime.opset1.ops import group_convolution_backprop_data -from openvino.runtime.opset3.ops import gru_cell -from openvino.runtime.opset5.ops import gru_sequence -from openvino.runtime.opset1.ops import hard_sigmoid -from openvino.runtime.opset5.ops import hsigmoid -from openvino.runtime.opset4.ops import hswish -from openvino.runtime.opset7.ops import idft -from openvino.runtime.opset8.ops import if_op -from openvino.runtime.opset11.ops import interpolate -from openvino.runtime.opset9.ops import irdft -from openvino.runtime.opset10.ops import is_finite -from openvino.runtime.opset10.ops import is_inf -from openvino.runtime.opset10.ops import is_nan -from openvino.runtime.opset8.ops import i420_to_bgr -from openvino.runtime.opset8.ops import i420_to_rgb -from openvino.runtime.opset1.ops import less -from openvino.runtime.opset1.ops import less_equal -from openvino.runtime.opset1.ops import log -from openvino.runtime.opset1.ops import logical_and -from openvino.runtime.opset1.ops import logical_not -from openvino.runtime.opset1.ops import logical_or -from openvino.runtime.opset1.ops import logical_xor -from openvino.runtime.opset5.ops import log_softmax -from openvino.runtime.opset5.ops import loop -from openvino.runtime.opset1.ops import lrn -from openvino.runtime.opset4.ops import lstm_cell -from openvino.runtime.opset5.ops import lstm_sequence -from openvino.runtime.opset1.ops import matmul -from openvino.runtime.opset8.ops import matrix_nms -from openvino.runtime.opset8.ops import max_pool -from openvino.runtime.opset1.ops import maximum -from openvino.runtime.opset1.ops import minimum -from openvino.runtime.opset4.ops import mish -from openvino.runtime.opset1.ops import mod -from openvino.runtime.opset9.ops import multiclass_nms -from openvino.runtime.opset1.ops import multiply -from openvino.runtime.opset6.ops import mvn -from openvino.runtime.opset1.ops import negative -from openvino.runtime.opset9.ops import non_max_suppression -from openvino.runtime.opset3.ops import non_zero -from openvino.runtime.opset1.ops import normalize_l2 -from openvino.runtime.opset1.ops import not_equal -from openvino.runtime.opset8.ops import nv12_to_bgr -from openvino.runtime.opset8.ops import nv12_to_rgb -from openvino.runtime.opset1.ops import one_hot -from openvino.runtime.opset1.ops import pad -from openvino.runtime.opset1.ops import parameter -from openvino.runtime.opset1.ops import power -from openvino.runtime.opset1.ops import prelu -from openvino.runtime.opset8.ops import prior_box -from openvino.runtime.opset1.ops import prior_box_clustered -from openvino.runtime.opset1.ops import psroi_pooling -from openvino.runtime.opset4.ops import proposal -from openvino.runtime.opset1.ops import range -from openvino.runtime.opset8.ops import random_uniform -from openvino.runtime.opset9.ops import rdft -from openvino.runtime.opset6.ops import read_value -from openvino.runtime.opset4.ops import reduce_l1 -from openvino.runtime.opset4.ops import reduce_l2 -from openvino.runtime.opset1.ops import reduce_logical_and -from openvino.runtime.opset1.ops import reduce_logical_or -from openvino.runtime.opset1.ops import reduce_max -from openvino.runtime.opset1.ops import reduce_mean -from openvino.runtime.opset1.ops import reduce_min -from openvino.runtime.opset1.ops import reduce_prod -from openvino.runtime.opset1.ops import reduce_sum -from openvino.runtime.opset1.ops import region_yolo -from openvino.runtime.opset2.ops import reorg_yolo -from openvino.runtime.opset1.ops import relu -from openvino.runtime.opset1.ops import reshape -from openvino.runtime.opset1.ops import result -from openvino.runtime.opset1.ops import reverse_sequence -from openvino.runtime.opset3.ops import rnn_cell -from openvino.runtime.opset5.ops import rnn_sequence -from openvino.runtime.opset9.ops import roi_align -from openvino.runtime.opset2.ops import roi_pooling -from openvino.runtime.opset7.ops import roll -from openvino.runtime.opset5.ops import round -from openvino.runtime.opset3.ops import scatter_elements_update -from openvino.runtime.opset4.ops import scatter_nd_update -from openvino.runtime.opset3.ops import scatter_update -from openvino.runtime.opset1.ops import select -from openvino.runtime.opset1.ops import selu -from openvino.runtime.opset3.ops import shape_of -from openvino.runtime.opset3.ops import shuffle_channels -from openvino.runtime.opset1.ops import sigmoid -from openvino.runtime.opset1.ops import sign -from openvino.runtime.opset1.ops import sin -from openvino.runtime.opset1.ops import sinh -from openvino.runtime.opset8.ops import slice -from openvino.runtime.opset8.ops import softmax -from openvino.runtime.opset4.ops import softplus -from openvino.runtime.opset9.ops import softsign -from openvino.runtime.opset2.ops import space_to_batch -from openvino.runtime.opset1.ops import space_to_depth -from openvino.runtime.opset1.ops import split -from openvino.runtime.opset1.ops import sqrt -from openvino.runtime.opset1.ops import squared_difference -from openvino.runtime.opset1.ops import squeeze -from openvino.runtime.opset1.ops import strided_slice -from openvino.runtime.opset1.ops import subtract -from openvino.runtime.opset4.ops import swish -from openvino.runtime.opset1.ops import tan -from openvino.runtime.opset1.ops import tanh -from openvino.runtime.opset1.ops import tensor_iterator -from openvino.runtime.opset1.ops import tile -from openvino.runtime.opset11.ops import topk -from openvino.runtime.opset1.ops import transpose -from openvino.runtime.opset10.ops import unique -from openvino.runtime.opset1.ops import unsqueeze -from openvino.runtime.opset1.ops import variadic_split +from openvino.opsets.opset1.ops import absolute +from openvino.opsets.opset1.ops import absolute as abs +from openvino.opsets.opset1.ops import acos +from openvino.opsets.opset4.ops import acosh +from openvino.opsets.opset8.ops import adaptive_avg_pool +from openvino.opsets.opset8.ops import adaptive_max_pool +from openvino.opsets.opset1.ops import add +from openvino.opsets.opset1.ops import asin +from openvino.opsets.opset4.ops import asinh +from openvino.opsets.opset6.ops import assign +from openvino.opsets.opset1.ops import atan +from openvino.opsets.opset4.ops import atanh +from openvino.opsets.opset1.ops import avg_pool +from openvino.opsets.opset5.ops import batch_norm_inference +from openvino.opsets.opset2.ops import batch_to_space +from openvino.opsets.opset1.ops import binary_convolution +from openvino.opsets.opset3.ops import broadcast +from openvino.opsets.opset3.ops import bucketize +from openvino.opsets.opset1.ops import ceiling +from openvino.opsets.opset1.ops import ceiling as ceil +from openvino.opsets.opset1.ops import clamp +from openvino.opsets.opset1.ops import concat +from openvino.opsets.opset1.ops import constant +from openvino.opsets.opset1.ops import convert +from openvino.opsets.opset1.ops import convert_like +from openvino.opsets.opset1.ops import convolution +from openvino.opsets.opset1.ops import convolution_backprop_data +from openvino.opsets.opset1.ops import cos +from openvino.opsets.opset1.ops import cosh +from openvino.opsets.opset1.ops import ctc_greedy_decoder +from openvino.opsets.opset6.ops import ctc_greedy_decoder_seq_len +from openvino.opsets.opset4.ops import ctc_loss +from openvino.opsets.opset3.ops import cum_sum +from openvino.opsets.opset3.ops import cum_sum as cumsum +from openvino.opsets.opset8.ops import deformable_convolution +from openvino.opsets.opset1.ops import deformable_psroi_pooling +from openvino.opsets.opset1.ops import depth_to_space +from openvino.opsets.opset8.ops import detection_output +from openvino.opsets.opset7.ops import dft +from openvino.opsets.opset1.ops import divide +from openvino.opsets.opset7.ops import einsum +from openvino.opsets.opset1.ops import elu +from openvino.opsets.opset3.ops import embedding_bag_offsets_sum +from openvino.opsets.opset3.ops import embedding_bag_packed_sum +from openvino.opsets.opset3.ops import embedding_segments_sum +from openvino.opsets.opset3.ops import extract_image_patches +from openvino.opsets.opset1.ops import equal +from openvino.opsets.opset1.ops import erf +from openvino.opsets.opset1.ops import exp +from openvino.opsets.opset9.ops import eye +from openvino.opsets.opset1.ops import fake_quantize +from openvino.opsets.opset1.ops import floor +from openvino.opsets.opset1.ops import floor_mod +from openvino.opsets.opset8.ops import gather +from openvino.opsets.opset6.ops import gather_elements +from openvino.opsets.opset8.ops import gather_nd +from openvino.opsets.opset1.ops import gather_tree +from openvino.opsets.opset7.ops import gelu +from openvino.opsets.opset9.ops import generate_proposals +from openvino.opsets.opset1.ops import greater +from openvino.opsets.opset1.ops import greater_equal +from openvino.opsets.opset9.ops import grid_sample +from openvino.opsets.opset1.ops import grn +from openvino.opsets.opset1.ops import group_convolution +from openvino.opsets.opset1.ops import group_convolution_backprop_data +from openvino.opsets.opset3.ops import gru_cell +from openvino.opsets.opset5.ops import gru_sequence +from openvino.opsets.opset1.ops import hard_sigmoid +from openvino.opsets.opset5.ops import hsigmoid +from openvino.opsets.opset4.ops import hswish +from openvino.opsets.opset7.ops import idft +from openvino.opsets.opset8.ops import if_op +from openvino.opsets.opset11.ops import interpolate +from openvino.opsets.opset9.ops import irdft +from openvino.opsets.opset10.ops import is_finite +from openvino.opsets.opset10.ops import is_inf +from openvino.opsets.opset10.ops import is_nan +from openvino.opsets.opset8.ops import i420_to_bgr +from openvino.opsets.opset8.ops import i420_to_rgb +from openvino.opsets.opset1.ops import less +from openvino.opsets.opset1.ops import less_equal +from openvino.opsets.opset1.ops import log +from openvino.opsets.opset1.ops import logical_and +from openvino.opsets.opset1.ops import logical_not +from openvino.opsets.opset1.ops import logical_or +from openvino.opsets.opset1.ops import logical_xor +from openvino.opsets.opset5.ops import log_softmax +from openvino.opsets.opset5.ops import loop +from openvino.opsets.opset1.ops import lrn +from openvino.opsets.opset4.ops import lstm_cell +from openvino.opsets.opset5.ops import lstm_sequence +from openvino.opsets.opset1.ops import matmul +from openvino.opsets.opset8.ops import matrix_nms +from openvino.opsets.opset8.ops import max_pool +from openvino.opsets.opset1.ops import maximum +from openvino.opsets.opset1.ops import minimum +from openvino.opsets.opset4.ops import mish +from openvino.opsets.opset1.ops import mod +from openvino.opsets.opset9.ops import multiclass_nms +from openvino.opsets.opset1.ops import multiply +from openvino.opsets.opset6.ops import mvn +from openvino.opsets.opset1.ops import negative +from openvino.opsets.opset9.ops import non_max_suppression +from openvino.opsets.opset3.ops import non_zero +from openvino.opsets.opset1.ops import normalize_l2 +from openvino.opsets.opset1.ops import not_equal +from openvino.opsets.opset8.ops import nv12_to_bgr +from openvino.opsets.opset8.ops import nv12_to_rgb +from openvino.opsets.opset1.ops import one_hot +from openvino.opsets.opset1.ops import pad +from openvino.opsets.opset1.ops import parameter +from openvino.opsets.opset1.ops import power +from openvino.opsets.opset1.ops import prelu +from openvino.opsets.opset8.ops import prior_box +from openvino.opsets.opset1.ops import prior_box_clustered +from openvino.opsets.opset1.ops import psroi_pooling +from openvino.opsets.opset4.ops import proposal +from openvino.opsets.opset1.ops import range +from openvino.opsets.opset8.ops import random_uniform +from openvino.opsets.opset9.ops import rdft +from openvino.opsets.opset6.ops import read_value +from openvino.opsets.opset4.ops import reduce_l1 +from openvino.opsets.opset4.ops import reduce_l2 +from openvino.opsets.opset1.ops import reduce_logical_and +from openvino.opsets.opset1.ops import reduce_logical_or +from openvino.opsets.opset1.ops import reduce_max +from openvino.opsets.opset1.ops import reduce_mean +from openvino.opsets.opset1.ops import reduce_min +from openvino.opsets.opset1.ops import reduce_prod +from openvino.opsets.opset1.ops import reduce_sum +from openvino.opsets.opset1.ops import region_yolo +from openvino.opsets.opset2.ops import reorg_yolo +from openvino.opsets.opset1.ops import relu +from openvino.opsets.opset1.ops import reshape +from openvino.opsets.opset1.ops import result +from openvino.opsets.opset1.ops import reverse_sequence +from openvino.opsets.opset3.ops import rnn_cell +from openvino.opsets.opset5.ops import rnn_sequence +from openvino.opsets.opset9.ops import roi_align +from openvino.opsets.opset2.ops import roi_pooling +from openvino.opsets.opset7.ops import roll +from openvino.opsets.opset5.ops import round +from openvino.opsets.opset3.ops import scatter_elements_update +from openvino.opsets.opset4.ops import scatter_nd_update +from openvino.opsets.opset3.ops import scatter_update +from openvino.opsets.opset1.ops import select +from openvino.opsets.opset1.ops import selu +from openvino.opsets.opset3.ops import shape_of +from openvino.opsets.opset3.ops import shuffle_channels +from openvino.opsets.opset1.ops import sigmoid +from openvino.opsets.opset1.ops import sign +from openvino.opsets.opset1.ops import sin +from openvino.opsets.opset1.ops import sinh +from openvino.opsets.opset8.ops import slice +from openvino.opsets.opset8.ops import softmax +from openvino.opsets.opset4.ops import softplus +from openvino.opsets.opset9.ops import softsign +from openvino.opsets.opset2.ops import space_to_batch +from openvino.opsets.opset1.ops import space_to_depth +from openvino.opsets.opset1.ops import split +from openvino.opsets.opset1.ops import sqrt +from openvino.opsets.opset1.ops import squared_difference +from openvino.opsets.opset1.ops import squeeze +from openvino.opsets.opset1.ops import strided_slice +from openvino.opsets.opset1.ops import subtract +from openvino.opsets.opset4.ops import swish +from openvino.opsets.opset1.ops import tan +from openvino.opsets.opset1.ops import tanh +from openvino.opsets.opset1.ops import tensor_iterator +from openvino.opsets.opset1.ops import tile +from openvino.opsets.opset11.ops import topk +from openvino.opsets.opset1.ops import transpose +from openvino.opsets.opset10.ops import unique +from openvino.opsets.opset1.ops import unsqueeze +from openvino.opsets.opset1.ops import variadic_split diff --git a/src/bindings/python/src/openvino/opsets/opset11/ops.py b/src/bindings/python/src/openvino/opsets/opset11/ops.py index 575c99501d2d6c..7a18d34ade86f2 100644 --- a/src/bindings/python/src/openvino/opsets/opset11/ops.py +++ b/src/bindings/python/src/openvino/opsets/opset11/ops.py @@ -6,10 +6,10 @@ from functools import partial from typing import List, Optional -from openvino.runtime import Node -from openvino.runtime.opset_utils import _get_node_factory -from openvino.runtime.utils.decorators import nameable_op -from openvino.runtime.utils.types import ( +from openvino._pyopenvino import Node +from openvino.opsets.opset_utils import _get_node_factory +from openvino.utils.decorators import nameable_op +from openvino.utils.types import ( NodeInput, as_nodes, ) diff --git a/src/bindings/python/src/openvino/opsets/opset12/__init__.py b/src/bindings/python/src/openvino/opsets/opset12/__init__.py index 381d82ce8c9be1..8e0aeea4aa93ff 100644 --- a/src/bindings/python/src/openvino/opsets/opset12/__init__.py +++ b/src/bindings/python/src/openvino/opsets/opset12/__init__.py @@ -2,179 +2,179 @@ # Copyright (C) 2018-2024 Intel Corporation # SPDX-License-Identifier: Apache-2.0 -from openvino.runtime.opset1.ops import absolute -from openvino.runtime.opset1.ops import absolute as abs -from openvino.runtime.opset1.ops import acos -from openvino.runtime.opset4.ops import acosh -from openvino.runtime.opset8.ops import adaptive_avg_pool -from openvino.runtime.opset8.ops import adaptive_max_pool -from openvino.runtime.opset1.ops import add -from openvino.runtime.opset1.ops import asin -from openvino.runtime.opset4.ops import asinh -from openvino.runtime.opset6.ops import assign -from openvino.runtime.opset1.ops import atan -from openvino.runtime.opset4.ops import atanh -from openvino.runtime.opset1.ops import avg_pool -from openvino.runtime.opset5.ops import batch_norm_inference -from openvino.runtime.opset2.ops import batch_to_space -from openvino.runtime.opset1.ops import binary_convolution -from openvino.runtime.opset3.ops import broadcast -from openvino.runtime.opset3.ops import bucketize -from openvino.runtime.opset1.ops import ceiling -from openvino.runtime.opset1.ops import ceiling as ceil -from openvino.runtime.opset1.ops import clamp -from openvino.runtime.opset1.ops import concat -from openvino.runtime.opset1.ops import constant -from openvino.runtime.opset1.ops import convert -from openvino.runtime.opset1.ops import convert_like -from openvino.runtime.opset1.ops import convolution -from openvino.runtime.opset1.ops import convolution_backprop_data -from openvino.runtime.opset1.ops import cos -from openvino.runtime.opset1.ops import cosh -from openvino.runtime.opset1.ops import ctc_greedy_decoder -from openvino.runtime.opset6.ops import ctc_greedy_decoder_seq_len -from openvino.runtime.opset4.ops import ctc_loss -from openvino.runtime.opset3.ops import cum_sum -from openvino.runtime.opset3.ops import cum_sum as cumsum -from openvino.runtime.opset8.ops import deformable_convolution -from openvino.runtime.opset1.ops import deformable_psroi_pooling -from openvino.runtime.opset1.ops import depth_to_space -from openvino.runtime.opset8.ops import detection_output -from openvino.runtime.opset7.ops import dft -from openvino.runtime.opset1.ops import divide -from openvino.runtime.opset7.ops import einsum -from openvino.runtime.opset1.ops import elu -from openvino.runtime.opset3.ops import embedding_bag_offsets_sum -from openvino.runtime.opset3.ops import embedding_bag_packed_sum -from openvino.runtime.opset3.ops import embedding_segments_sum -from openvino.runtime.opset3.ops import extract_image_patches -from openvino.runtime.opset1.ops import equal -from openvino.runtime.opset1.ops import erf -from openvino.runtime.opset1.ops import exp -from openvino.runtime.opset9.ops import eye -from openvino.runtime.opset1.ops import fake_quantize -from openvino.runtime.opset1.ops import floor -from openvino.runtime.opset1.ops import floor_mod -from openvino.runtime.opset8.ops import gather -from openvino.runtime.opset6.ops import gather_elements -from openvino.runtime.opset8.ops import gather_nd -from openvino.runtime.opset1.ops import gather_tree -from openvino.runtime.opset7.ops import gelu -from openvino.runtime.opset9.ops import generate_proposals -from openvino.runtime.opset1.ops import greater -from openvino.runtime.opset1.ops import greater_equal -from openvino.runtime.opset9.ops import grid_sample -from openvino.runtime.opset1.ops import grn -from openvino.runtime.opset1.ops import group_convolution -from openvino.runtime.opset1.ops import group_convolution_backprop_data -from openvino.runtime.opset12.ops import group_normalization -from openvino.runtime.opset3.ops import gru_cell -from openvino.runtime.opset5.ops import gru_sequence -from openvino.runtime.opset1.ops import hard_sigmoid -from openvino.runtime.opset5.ops import hsigmoid -from openvino.runtime.opset4.ops import hswish -from openvino.runtime.opset7.ops import idft -from openvino.runtime.opset8.ops import if_op -from openvino.runtime.opset11.ops import interpolate -from openvino.runtime.opset9.ops import irdft -from openvino.runtime.opset10.ops import is_finite -from openvino.runtime.opset10.ops import is_inf -from openvino.runtime.opset10.ops import is_nan -from openvino.runtime.opset8.ops import i420_to_bgr -from openvino.runtime.opset8.ops import i420_to_rgb -from openvino.runtime.opset1.ops import less -from openvino.runtime.opset1.ops import less_equal -from openvino.runtime.opset1.ops import log -from openvino.runtime.opset1.ops import logical_and -from openvino.runtime.opset1.ops import logical_not -from openvino.runtime.opset1.ops import logical_or -from openvino.runtime.opset1.ops import logical_xor -from openvino.runtime.opset5.ops import log_softmax -from openvino.runtime.opset5.ops import loop -from openvino.runtime.opset1.ops import lrn -from openvino.runtime.opset4.ops import lstm_cell -from openvino.runtime.opset5.ops import lstm_sequence -from openvino.runtime.opset1.ops import matmul -from openvino.runtime.opset8.ops import matrix_nms -from openvino.runtime.opset8.ops import max_pool -from openvino.runtime.opset1.ops import maximum -from openvino.runtime.opset1.ops import minimum -from openvino.runtime.opset4.ops import mish -from openvino.runtime.opset1.ops import mod -from openvino.runtime.opset9.ops import multiclass_nms -from openvino.runtime.opset1.ops import multiply -from openvino.runtime.opset6.ops import mvn -from openvino.runtime.opset1.ops import negative -from openvino.runtime.opset9.ops import non_max_suppression -from openvino.runtime.opset3.ops import non_zero -from openvino.runtime.opset1.ops import normalize_l2 -from openvino.runtime.opset1.ops import not_equal -from openvino.runtime.opset8.ops import nv12_to_bgr -from openvino.runtime.opset8.ops import nv12_to_rgb -from openvino.runtime.opset1.ops import one_hot -from openvino.runtime.opset12.ops import pad -from openvino.runtime.opset1.ops import parameter -from openvino.runtime.opset1.ops import power -from openvino.runtime.opset1.ops import prelu -from openvino.runtime.opset8.ops import prior_box -from openvino.runtime.opset1.ops import prior_box_clustered -from openvino.runtime.opset1.ops import psroi_pooling -from openvino.runtime.opset4.ops import proposal -from openvino.runtime.opset4.ops import range -from openvino.runtime.opset8.ops import random_uniform -from openvino.runtime.opset9.ops import rdft -from openvino.runtime.opset6.ops import read_value -from openvino.runtime.opset4.ops import reduce_l1 -from openvino.runtime.opset4.ops import reduce_l2 -from openvino.runtime.opset1.ops import reduce_logical_and -from openvino.runtime.opset1.ops import reduce_logical_or -from openvino.runtime.opset1.ops import reduce_max -from openvino.runtime.opset1.ops import reduce_mean -from openvino.runtime.opset1.ops import reduce_min -from openvino.runtime.opset1.ops import reduce_prod -from openvino.runtime.opset1.ops import reduce_sum -from openvino.runtime.opset1.ops import region_yolo -from openvino.runtime.opset2.ops import reorg_yolo -from openvino.runtime.opset1.ops import relu -from openvino.runtime.opset1.ops import reshape -from openvino.runtime.opset1.ops import result -from openvino.runtime.opset1.ops import reverse_sequence -from openvino.runtime.opset3.ops import rnn_cell -from openvino.runtime.opset5.ops import rnn_sequence -from openvino.runtime.opset9.ops import roi_align -from openvino.runtime.opset2.ops import roi_pooling -from openvino.runtime.opset7.ops import roll -from openvino.runtime.opset5.ops import round -from openvino.runtime.opset12.ops import scatter_elements_update -from openvino.runtime.opset4.ops import scatter_nd_update -from openvino.runtime.opset3.ops import scatter_update -from openvino.runtime.opset1.ops import select -from openvino.runtime.opset1.ops import selu -from openvino.runtime.opset3.ops import shape_of -from openvino.runtime.opset3.ops import shuffle_channels -from openvino.runtime.opset1.ops import sigmoid -from openvino.runtime.opset1.ops import sign -from openvino.runtime.opset1.ops import sin -from openvino.runtime.opset1.ops import sinh -from openvino.runtime.opset8.ops import slice -from openvino.runtime.opset8.ops import softmax -from openvino.runtime.opset4.ops import softplus -from openvino.runtime.opset9.ops import softsign -from openvino.runtime.opset2.ops import space_to_batch -from openvino.runtime.opset1.ops import space_to_depth -from openvino.runtime.opset1.ops import split -from openvino.runtime.opset1.ops import sqrt -from openvino.runtime.opset1.ops import squared_difference -from openvino.runtime.opset1.ops import squeeze -from openvino.runtime.opset1.ops import strided_slice -from openvino.runtime.opset1.ops import subtract -from openvino.runtime.opset4.ops import swish -from openvino.runtime.opset1.ops import tan -from openvino.runtime.opset1.ops import tanh -from openvino.runtime.opset1.ops import tensor_iterator -from openvino.runtime.opset1.ops import tile -from openvino.runtime.opset11.ops import topk -from openvino.runtime.opset1.ops import transpose -from openvino.runtime.opset10.ops import unique -from openvino.runtime.opset1.ops import unsqueeze -from openvino.runtime.opset1.ops import variadic_split +from openvino.opsets.opset1.ops import absolute +from openvino.opsets.opset1.ops import absolute as abs +from openvino.opsets.opset1.ops import acos +from openvino.opsets.opset4.ops import acosh +from openvino.opsets.opset8.ops import adaptive_avg_pool +from openvino.opsets.opset8.ops import adaptive_max_pool +from openvino.opsets.opset1.ops import add +from openvino.opsets.opset1.ops import asin +from openvino.opsets.opset4.ops import asinh +from openvino.opsets.opset6.ops import assign +from openvino.opsets.opset1.ops import atan +from openvino.opsets.opset4.ops import atanh +from openvino.opsets.opset1.ops import avg_pool +from openvino.opsets.opset5.ops import batch_norm_inference +from openvino.opsets.opset2.ops import batch_to_space +from openvino.opsets.opset1.ops import binary_convolution +from openvino.opsets.opset3.ops import broadcast +from openvino.opsets.opset3.ops import bucketize +from openvino.opsets.opset1.ops import ceiling +from openvino.opsets.opset1.ops import ceiling as ceil +from openvino.opsets.opset1.ops import clamp +from openvino.opsets.opset1.ops import concat +from openvino.opsets.opset1.ops import constant +from openvino.opsets.opset1.ops import convert +from openvino.opsets.opset1.ops import convert_like +from openvino.opsets.opset1.ops import convolution +from openvino.opsets.opset1.ops import convolution_backprop_data +from openvino.opsets.opset1.ops import cos +from openvino.opsets.opset1.ops import cosh +from openvino.opsets.opset1.ops import ctc_greedy_decoder +from openvino.opsets.opset6.ops import ctc_greedy_decoder_seq_len +from openvino.opsets.opset4.ops import ctc_loss +from openvino.opsets.opset3.ops import cum_sum +from openvino.opsets.opset3.ops import cum_sum as cumsum +from openvino.opsets.opset8.ops import deformable_convolution +from openvino.opsets.opset1.ops import deformable_psroi_pooling +from openvino.opsets.opset1.ops import depth_to_space +from openvino.opsets.opset8.ops import detection_output +from openvino.opsets.opset7.ops import dft +from openvino.opsets.opset1.ops import divide +from openvino.opsets.opset7.ops import einsum +from openvino.opsets.opset1.ops import elu +from openvino.opsets.opset3.ops import embedding_bag_offsets_sum +from openvino.opsets.opset3.ops import embedding_bag_packed_sum +from openvino.opsets.opset3.ops import embedding_segments_sum +from openvino.opsets.opset3.ops import extract_image_patches +from openvino.opsets.opset1.ops import equal +from openvino.opsets.opset1.ops import erf +from openvino.opsets.opset1.ops import exp +from openvino.opsets.opset9.ops import eye +from openvino.opsets.opset1.ops import fake_quantize +from openvino.opsets.opset1.ops import floor +from openvino.opsets.opset1.ops import floor_mod +from openvino.opsets.opset8.ops import gather +from openvino.opsets.opset6.ops import gather_elements +from openvino.opsets.opset8.ops import gather_nd +from openvino.opsets.opset1.ops import gather_tree +from openvino.opsets.opset7.ops import gelu +from openvino.opsets.opset9.ops import generate_proposals +from openvino.opsets.opset1.ops import greater +from openvino.opsets.opset1.ops import greater_equal +from openvino.opsets.opset9.ops import grid_sample +from openvino.opsets.opset1.ops import grn +from openvino.opsets.opset1.ops import group_convolution +from openvino.opsets.opset1.ops import group_convolution_backprop_data +from openvino.opsets.opset12.ops import group_normalization +from openvino.opsets.opset3.ops import gru_cell +from openvino.opsets.opset5.ops import gru_sequence +from openvino.opsets.opset1.ops import hard_sigmoid +from openvino.opsets.opset5.ops import hsigmoid +from openvino.opsets.opset4.ops import hswish +from openvino.opsets.opset7.ops import idft +from openvino.opsets.opset8.ops import if_op +from openvino.opsets.opset11.ops import interpolate +from openvino.opsets.opset9.ops import irdft +from openvino.opsets.opset10.ops import is_finite +from openvino.opsets.opset10.ops import is_inf +from openvino.opsets.opset10.ops import is_nan +from openvino.opsets.opset8.ops import i420_to_bgr +from openvino.opsets.opset8.ops import i420_to_rgb +from openvino.opsets.opset1.ops import less +from openvino.opsets.opset1.ops import less_equal +from openvino.opsets.opset1.ops import log +from openvino.opsets.opset1.ops import logical_and +from openvino.opsets.opset1.ops import logical_not +from openvino.opsets.opset1.ops import logical_or +from openvino.opsets.opset1.ops import logical_xor +from openvino.opsets.opset5.ops import log_softmax +from openvino.opsets.opset5.ops import loop +from openvino.opsets.opset1.ops import lrn +from openvino.opsets.opset4.ops import lstm_cell +from openvino.opsets.opset5.ops import lstm_sequence +from openvino.opsets.opset1.ops import matmul +from openvino.opsets.opset8.ops import matrix_nms +from openvino.opsets.opset8.ops import max_pool +from openvino.opsets.opset1.ops import maximum +from openvino.opsets.opset1.ops import minimum +from openvino.opsets.opset4.ops import mish +from openvino.opsets.opset1.ops import mod +from openvino.opsets.opset9.ops import multiclass_nms +from openvino.opsets.opset1.ops import multiply +from openvino.opsets.opset6.ops import mvn +from openvino.opsets.opset1.ops import negative +from openvino.opsets.opset9.ops import non_max_suppression +from openvino.opsets.opset3.ops import non_zero +from openvino.opsets.opset1.ops import normalize_l2 +from openvino.opsets.opset1.ops import not_equal +from openvino.opsets.opset8.ops import nv12_to_bgr +from openvino.opsets.opset8.ops import nv12_to_rgb +from openvino.opsets.opset1.ops import one_hot +from openvino.opsets.opset12.ops import pad +from openvino.opsets.opset1.ops import parameter +from openvino.opsets.opset1.ops import power +from openvino.opsets.opset1.ops import prelu +from openvino.opsets.opset8.ops import prior_box +from openvino.opsets.opset1.ops import prior_box_clustered +from openvino.opsets.opset1.ops import psroi_pooling +from openvino.opsets.opset4.ops import proposal +from openvino.opsets.opset4.ops import range +from openvino.opsets.opset8.ops import random_uniform +from openvino.opsets.opset9.ops import rdft +from openvino.opsets.opset6.ops import read_value +from openvino.opsets.opset4.ops import reduce_l1 +from openvino.opsets.opset4.ops import reduce_l2 +from openvino.opsets.opset1.ops import reduce_logical_and +from openvino.opsets.opset1.ops import reduce_logical_or +from openvino.opsets.opset1.ops import reduce_max +from openvino.opsets.opset1.ops import reduce_mean +from openvino.opsets.opset1.ops import reduce_min +from openvino.opsets.opset1.ops import reduce_prod +from openvino.opsets.opset1.ops import reduce_sum +from openvino.opsets.opset1.ops import region_yolo +from openvino.opsets.opset2.ops import reorg_yolo +from openvino.opsets.opset1.ops import relu +from openvino.opsets.opset1.ops import reshape +from openvino.opsets.opset1.ops import result +from openvino.opsets.opset1.ops import reverse_sequence +from openvino.opsets.opset3.ops import rnn_cell +from openvino.opsets.opset5.ops import rnn_sequence +from openvino.opsets.opset9.ops import roi_align +from openvino.opsets.opset2.ops import roi_pooling +from openvino.opsets.opset7.ops import roll +from openvino.opsets.opset5.ops import round +from openvino.opsets.opset12.ops import scatter_elements_update +from openvino.opsets.opset4.ops import scatter_nd_update +from openvino.opsets.opset3.ops import scatter_update +from openvino.opsets.opset1.ops import select +from openvino.opsets.opset1.ops import selu +from openvino.opsets.opset3.ops import shape_of +from openvino.opsets.opset3.ops import shuffle_channels +from openvino.opsets.opset1.ops import sigmoid +from openvino.opsets.opset1.ops import sign +from openvino.opsets.opset1.ops import sin +from openvino.opsets.opset1.ops import sinh +from openvino.opsets.opset8.ops import slice +from openvino.opsets.opset8.ops import softmax +from openvino.opsets.opset4.ops import softplus +from openvino.opsets.opset9.ops import softsign +from openvino.opsets.opset2.ops import space_to_batch +from openvino.opsets.opset1.ops import space_to_depth +from openvino.opsets.opset1.ops import split +from openvino.opsets.opset1.ops import sqrt +from openvino.opsets.opset1.ops import squared_difference +from openvino.opsets.opset1.ops import squeeze +from openvino.opsets.opset1.ops import strided_slice +from openvino.opsets.opset1.ops import subtract +from openvino.opsets.opset4.ops import swish +from openvino.opsets.opset1.ops import tan +from openvino.opsets.opset1.ops import tanh +from openvino.opsets.opset1.ops import tensor_iterator +from openvino.opsets.opset1.ops import tile +from openvino.opsets.opset11.ops import topk +from openvino.opsets.opset1.ops import transpose +from openvino.opsets.opset10.ops import unique +from openvino.opsets.opset1.ops import unsqueeze +from openvino.opsets.opset1.ops import variadic_split diff --git a/src/bindings/python/src/openvino/opsets/opset12/ops.py b/src/bindings/python/src/openvino/opsets/opset12/ops.py index 928bf4f71a9773..4372c7b4b1fee7 100644 --- a/src/bindings/python/src/openvino/opsets/opset12/ops.py +++ b/src/bindings/python/src/openvino/opsets/opset12/ops.py @@ -6,10 +6,10 @@ from functools import partial from typing import Optional -from openvino.runtime import Node -from openvino.runtime.opset_utils import _get_node_factory -from openvino.runtime.utils.decorators import nameable_op -from openvino.runtime.utils.types import ( +from openvino._pyopenvino import Node +from openvino.opsets.opset_utils import _get_node_factory +from openvino.utils.decorators import nameable_op +from openvino.utils.types import ( NodeInput, as_nodes, as_node, diff --git a/src/bindings/python/src/openvino/opsets/opset13/__init__.py b/src/bindings/python/src/openvino/opsets/opset13/__init__.py index 7f330fbc87766d..bd2239f71579b0 100644 --- a/src/bindings/python/src/openvino/opsets/opset13/__init__.py +++ b/src/bindings/python/src/openvino/opsets/opset13/__init__.py @@ -2,187 +2,187 @@ # Copyright (C) 2018-2024 Intel Corporation # SPDX-License-Identifier: Apache-2.0 -from openvino.runtime.opset1.ops import absolute -from openvino.runtime.opset1.ops import absolute as abs -from openvino.runtime.opset1.ops import acos -from openvino.runtime.opset4.ops import acosh -from openvino.runtime.opset8.ops import adaptive_avg_pool -from openvino.runtime.opset8.ops import adaptive_max_pool -from openvino.runtime.opset1.ops import add -from openvino.runtime.opset1.ops import asin -from openvino.runtime.opset4.ops import asinh -from openvino.runtime.opset6.ops import assign -from openvino.runtime.opset1.ops import atan -from openvino.runtime.opset4.ops import atanh -from openvino.runtime.opset1.ops import avg_pool -from openvino.runtime.opset5.ops import batch_norm_inference -from openvino.runtime.opset2.ops import batch_to_space -from openvino.runtime.opset1.ops import binary_convolution -from openvino.runtime.opset13.ops import bitwise_and -from openvino.runtime.opset13.ops import bitwise_not -from openvino.runtime.opset13.ops import bitwise_or -from openvino.runtime.opset13.ops import bitwise_xor -from openvino.runtime.opset3.ops import broadcast -from openvino.runtime.opset3.ops import bucketize -from openvino.runtime.opset1.ops import ceiling -from openvino.runtime.opset1.ops import ceiling as ceil -from openvino.runtime.opset1.ops import clamp -from openvino.runtime.opset1.ops import concat -from openvino.runtime.opset13.ops import constant -from openvino.runtime.opset1.ops import convert -from openvino.runtime.opset1.ops import convert_like -from openvino.runtime.opset1.ops import convolution -from openvino.runtime.opset1.ops import convolution_backprop_data -from openvino.runtime.opset1.ops import cos -from openvino.runtime.opset1.ops import cosh -from openvino.runtime.opset1.ops import ctc_greedy_decoder -from openvino.runtime.opset6.ops import ctc_greedy_decoder_seq_len -from openvino.runtime.opset4.ops import ctc_loss -from openvino.runtime.opset3.ops import cum_sum -from openvino.runtime.opset3.ops import cum_sum as cumsum -from openvino.runtime.opset8.ops import deformable_convolution -from openvino.runtime.opset1.ops import deformable_psroi_pooling -from openvino.runtime.opset1.ops import depth_to_space -from openvino.runtime.opset8.ops import detection_output -from openvino.runtime.opset7.ops import dft -from openvino.runtime.opset1.ops import divide -from openvino.runtime.opset7.ops import einsum -from openvino.runtime.opset1.ops import elu -from openvino.runtime.opset3.ops import embedding_bag_offsets_sum -from openvino.runtime.opset3.ops import embedding_bag_packed_sum -from openvino.runtime.opset3.ops import embedding_segments_sum -from openvino.runtime.opset3.ops import extract_image_patches -from openvino.runtime.opset1.ops import equal -from openvino.runtime.opset1.ops import erf -from openvino.runtime.opset1.ops import exp -from openvino.runtime.opset9.ops import eye -from openvino.runtime.opset13.ops import fake_convert -from openvino.runtime.opset13.ops import fake_quantize -from openvino.runtime.opset1.ops import floor -from openvino.runtime.opset1.ops import floor_mod -from openvino.runtime.opset8.ops import gather -from openvino.runtime.opset6.ops import gather_elements -from openvino.runtime.opset8.ops import gather_nd -from openvino.runtime.opset1.ops import gather_tree -from openvino.runtime.opset7.ops import gelu -from openvino.runtime.opset9.ops import generate_proposals -from openvino.runtime.opset1.ops import greater -from openvino.runtime.opset1.ops import greater_equal -from openvino.runtime.opset9.ops import grid_sample -from openvino.runtime.opset1.ops import grn -from openvino.runtime.opset1.ops import group_convolution -from openvino.runtime.opset1.ops import group_convolution_backprop_data -from openvino.runtime.opset12.ops import group_normalization -from openvino.runtime.opset3.ops import gru_cell -from openvino.runtime.opset5.ops import gru_sequence -from openvino.runtime.opset1.ops import hard_sigmoid -from openvino.runtime.opset5.ops import hsigmoid -from openvino.runtime.opset4.ops import hswish -from openvino.runtime.opset7.ops import idft -from openvino.runtime.opset8.ops import if_op -from openvino.runtime.opset11.ops import interpolate -from openvino.runtime.opset9.ops import irdft -from openvino.runtime.opset10.ops import is_finite -from openvino.runtime.opset10.ops import is_inf -from openvino.runtime.opset10.ops import is_nan -from openvino.runtime.opset8.ops import i420_to_bgr -from openvino.runtime.opset8.ops import i420_to_rgb -from openvino.runtime.opset1.ops import less -from openvino.runtime.opset1.ops import less_equal -from openvino.runtime.opset1.ops import log -from openvino.runtime.opset1.ops import logical_and -from openvino.runtime.opset1.ops import logical_not -from openvino.runtime.opset1.ops import logical_or -from openvino.runtime.opset1.ops import logical_xor -from openvino.runtime.opset5.ops import log_softmax -from openvino.runtime.opset5.ops import loop -from openvino.runtime.opset1.ops import lrn -from openvino.runtime.opset4.ops import lstm_cell -from openvino.runtime.opset5.ops import lstm_sequence -from openvino.runtime.opset1.ops import matmul -from openvino.runtime.opset8.ops import matrix_nms -from openvino.runtime.opset8.ops import max_pool -from openvino.runtime.opset1.ops import maximum -from openvino.runtime.opset1.ops import minimum -from openvino.runtime.opset4.ops import mish -from openvino.runtime.opset1.ops import mod -from openvino.runtime.opset9.ops import multiclass_nms -from openvino.runtime.opset13.ops import multinomial -from openvino.runtime.opset1.ops import multiply -from openvino.runtime.opset6.ops import mvn -from openvino.runtime.opset1.ops import negative -from openvino.runtime.opset13.ops import nms_rotated -from openvino.runtime.opset9.ops import non_max_suppression -from openvino.runtime.opset3.ops import non_zero -from openvino.runtime.opset1.ops import normalize_l2 -from openvino.runtime.opset1.ops import not_equal -from openvino.runtime.opset8.ops import nv12_to_bgr -from openvino.runtime.opset8.ops import nv12_to_rgb -from openvino.runtime.opset1.ops import one_hot -from openvino.runtime.opset12.ops import pad -from openvino.runtime.opset1.ops import parameter -from openvino.runtime.opset1.ops import power -from openvino.runtime.opset1.ops import prelu -from openvino.runtime.opset8.ops import prior_box -from openvino.runtime.opset1.ops import prior_box_clustered -from openvino.runtime.opset1.ops import psroi_pooling -from openvino.runtime.opset4.ops import proposal -from openvino.runtime.opset4.ops import range -from openvino.runtime.opset8.ops import random_uniform -from openvino.runtime.opset9.ops import rdft -from openvino.runtime.opset6.ops import read_value -from openvino.runtime.opset4.ops import reduce_l1 -from openvino.runtime.opset4.ops import reduce_l2 -from openvino.runtime.opset1.ops import reduce_logical_and -from openvino.runtime.opset1.ops import reduce_logical_or -from openvino.runtime.opset1.ops import reduce_max -from openvino.runtime.opset1.ops import reduce_mean -from openvino.runtime.opset1.ops import reduce_min -from openvino.runtime.opset1.ops import reduce_prod -from openvino.runtime.opset1.ops import reduce_sum -from openvino.runtime.opset1.ops import region_yolo -from openvino.runtime.opset2.ops import reorg_yolo -from openvino.runtime.opset1.ops import relu -from openvino.runtime.opset1.ops import reshape -from openvino.runtime.opset13.ops import result -from openvino.runtime.opset1.ops import reverse_sequence -from openvino.runtime.opset3.ops import rnn_cell -from openvino.runtime.opset5.ops import rnn_sequence -from openvino.runtime.opset9.ops import roi_align -from openvino.runtime.opset2.ops import roi_pooling -from openvino.runtime.opset7.ops import roll -from openvino.runtime.opset5.ops import round -from openvino.runtime.opset13.ops import scaled_dot_product_attention -from openvino.runtime.opset12.ops import scatter_elements_update -from openvino.runtime.opset4.ops import scatter_nd_update -from openvino.runtime.opset3.ops import scatter_update -from openvino.runtime.opset1.ops import select -from openvino.runtime.opset1.ops import selu -from openvino.runtime.opset3.ops import shape_of -from openvino.runtime.opset3.ops import shuffle_channels -from openvino.runtime.opset1.ops import sigmoid -from openvino.runtime.opset1.ops import sign -from openvino.runtime.opset1.ops import sin -from openvino.runtime.opset1.ops import sinh -from openvino.runtime.opset8.ops import slice -from openvino.runtime.opset8.ops import softmax -from openvino.runtime.opset4.ops import softplus -from openvino.runtime.opset9.ops import softsign -from openvino.runtime.opset2.ops import space_to_batch -from openvino.runtime.opset1.ops import space_to_depth -from openvino.runtime.opset1.ops import split -from openvino.runtime.opset1.ops import sqrt -from openvino.runtime.opset1.ops import squared_difference -from openvino.runtime.opset1.ops import squeeze -from openvino.runtime.opset1.ops import strided_slice -from openvino.runtime.opset1.ops import subtract -from openvino.runtime.opset4.ops import swish -from openvino.runtime.opset1.ops import tan -from openvino.runtime.opset1.ops import tanh -from openvino.runtime.opset1.ops import tensor_iterator -from openvino.runtime.opset1.ops import tile -from openvino.runtime.opset11.ops import topk -from openvino.runtime.opset1.ops import transpose -from openvino.runtime.opset10.ops import unique -from openvino.runtime.opset1.ops import unsqueeze -from openvino.runtime.opset1.ops import variadic_split +from openvino.opsets.opset1.ops import absolute +from openvino.opsets.opset1.ops import absolute as abs +from openvino.opsets.opset1.ops import acos +from openvino.opsets.opset4.ops import acosh +from openvino.opsets.opset8.ops import adaptive_avg_pool +from openvino.opsets.opset8.ops import adaptive_max_pool +from openvino.opsets.opset1.ops import add +from openvino.opsets.opset1.ops import asin +from openvino.opsets.opset4.ops import asinh +from openvino.opsets.opset6.ops import assign +from openvino.opsets.opset1.ops import atan +from openvino.opsets.opset4.ops import atanh +from openvino.opsets.opset1.ops import avg_pool +from openvino.opsets.opset5.ops import batch_norm_inference +from openvino.opsets.opset2.ops import batch_to_space +from openvino.opsets.opset1.ops import binary_convolution +from openvino.opsets.opset13.ops import bitwise_and +from openvino.opsets.opset13.ops import bitwise_not +from openvino.opsets.opset13.ops import bitwise_or +from openvino.opsets.opset13.ops import bitwise_xor +from openvino.opsets.opset3.ops import broadcast +from openvino.opsets.opset3.ops import bucketize +from openvino.opsets.opset1.ops import ceiling +from openvino.opsets.opset1.ops import ceiling as ceil +from openvino.opsets.opset1.ops import clamp +from openvino.opsets.opset1.ops import concat +from openvino.opsets.opset13.ops import constant +from openvino.opsets.opset1.ops import convert +from openvino.opsets.opset1.ops import convert_like +from openvino.opsets.opset1.ops import convolution +from openvino.opsets.opset1.ops import convolution_backprop_data +from openvino.opsets.opset1.ops import cos +from openvino.opsets.opset1.ops import cosh +from openvino.opsets.opset1.ops import ctc_greedy_decoder +from openvino.opsets.opset6.ops import ctc_greedy_decoder_seq_len +from openvino.opsets.opset4.ops import ctc_loss +from openvino.opsets.opset3.ops import cum_sum +from openvino.opsets.opset3.ops import cum_sum as cumsum +from openvino.opsets.opset8.ops import deformable_convolution +from openvino.opsets.opset1.ops import deformable_psroi_pooling +from openvino.opsets.opset1.ops import depth_to_space +from openvino.opsets.opset8.ops import detection_output +from openvino.opsets.opset7.ops import dft +from openvino.opsets.opset1.ops import divide +from openvino.opsets.opset7.ops import einsum +from openvino.opsets.opset1.ops import elu +from openvino.opsets.opset3.ops import embedding_bag_offsets_sum +from openvino.opsets.opset3.ops import embedding_bag_packed_sum +from openvino.opsets.opset3.ops import embedding_segments_sum +from openvino.opsets.opset3.ops import extract_image_patches +from openvino.opsets.opset1.ops import equal +from openvino.opsets.opset1.ops import erf +from openvino.opsets.opset1.ops import exp +from openvino.opsets.opset9.ops import eye +from openvino.opsets.opset13.ops import fake_convert +from openvino.opsets.opset13.ops import fake_quantize +from openvino.opsets.opset1.ops import floor +from openvino.opsets.opset1.ops import floor_mod +from openvino.opsets.opset8.ops import gather +from openvino.opsets.opset6.ops import gather_elements +from openvino.opsets.opset8.ops import gather_nd +from openvino.opsets.opset1.ops import gather_tree +from openvino.opsets.opset7.ops import gelu +from openvino.opsets.opset9.ops import generate_proposals +from openvino.opsets.opset1.ops import greater +from openvino.opsets.opset1.ops import greater_equal +from openvino.opsets.opset9.ops import grid_sample +from openvino.opsets.opset1.ops import grn +from openvino.opsets.opset1.ops import group_convolution +from openvino.opsets.opset1.ops import group_convolution_backprop_data +from openvino.opsets.opset12.ops import group_normalization +from openvino.opsets.opset3.ops import gru_cell +from openvino.opsets.opset5.ops import gru_sequence +from openvino.opsets.opset1.ops import hard_sigmoid +from openvino.opsets.opset5.ops import hsigmoid +from openvino.opsets.opset4.ops import hswish +from openvino.opsets.opset7.ops import idft +from openvino.opsets.opset8.ops import if_op +from openvino.opsets.opset11.ops import interpolate +from openvino.opsets.opset9.ops import irdft +from openvino.opsets.opset10.ops import is_finite +from openvino.opsets.opset10.ops import is_inf +from openvino.opsets.opset10.ops import is_nan +from openvino.opsets.opset8.ops import i420_to_bgr +from openvino.opsets.opset8.ops import i420_to_rgb +from openvino.opsets.opset1.ops import less +from openvino.opsets.opset1.ops import less_equal +from openvino.opsets.opset1.ops import log +from openvino.opsets.opset1.ops import logical_and +from openvino.opsets.opset1.ops import logical_not +from openvino.opsets.opset1.ops import logical_or +from openvino.opsets.opset1.ops import logical_xor +from openvino.opsets.opset5.ops import log_softmax +from openvino.opsets.opset5.ops import loop +from openvino.opsets.opset1.ops import lrn +from openvino.opsets.opset4.ops import lstm_cell +from openvino.opsets.opset5.ops import lstm_sequence +from openvino.opsets.opset1.ops import matmul +from openvino.opsets.opset8.ops import matrix_nms +from openvino.opsets.opset8.ops import max_pool +from openvino.opsets.opset1.ops import maximum +from openvino.opsets.opset1.ops import minimum +from openvino.opsets.opset4.ops import mish +from openvino.opsets.opset1.ops import mod +from openvino.opsets.opset9.ops import multiclass_nms +from openvino.opsets.opset13.ops import multinomial +from openvino.opsets.opset1.ops import multiply +from openvino.opsets.opset6.ops import mvn +from openvino.opsets.opset1.ops import negative +from openvino.opsets.opset13.ops import nms_rotated +from openvino.opsets.opset9.ops import non_max_suppression +from openvino.opsets.opset3.ops import non_zero +from openvino.opsets.opset1.ops import normalize_l2 +from openvino.opsets.opset1.ops import not_equal +from openvino.opsets.opset8.ops import nv12_to_bgr +from openvino.opsets.opset8.ops import nv12_to_rgb +from openvino.opsets.opset1.ops import one_hot +from openvino.opsets.opset12.ops import pad +from openvino.opsets.opset1.ops import parameter +from openvino.opsets.opset1.ops import power +from openvino.opsets.opset1.ops import prelu +from openvino.opsets.opset8.ops import prior_box +from openvino.opsets.opset1.ops import prior_box_clustered +from openvino.opsets.opset1.ops import psroi_pooling +from openvino.opsets.opset4.ops import proposal +from openvino.opsets.opset4.ops import range +from openvino.opsets.opset8.ops import random_uniform +from openvino.opsets.opset9.ops import rdft +from openvino.opsets.opset6.ops import read_value +from openvino.opsets.opset4.ops import reduce_l1 +from openvino.opsets.opset4.ops import reduce_l2 +from openvino.opsets.opset1.ops import reduce_logical_and +from openvino.opsets.opset1.ops import reduce_logical_or +from openvino.opsets.opset1.ops import reduce_max +from openvino.opsets.opset1.ops import reduce_mean +from openvino.opsets.opset1.ops import reduce_min +from openvino.opsets.opset1.ops import reduce_prod +from openvino.opsets.opset1.ops import reduce_sum +from openvino.opsets.opset1.ops import region_yolo +from openvino.opsets.opset2.ops import reorg_yolo +from openvino.opsets.opset1.ops import relu +from openvino.opsets.opset1.ops import reshape +from openvino.opsets.opset13.ops import result +from openvino.opsets.opset1.ops import reverse_sequence +from openvino.opsets.opset3.ops import rnn_cell +from openvino.opsets.opset5.ops import rnn_sequence +from openvino.opsets.opset9.ops import roi_align +from openvino.opsets.opset2.ops import roi_pooling +from openvino.opsets.opset7.ops import roll +from openvino.opsets.opset5.ops import round +from openvino.opsets.opset13.ops import scaled_dot_product_attention +from openvino.opsets.opset12.ops import scatter_elements_update +from openvino.opsets.opset4.ops import scatter_nd_update +from openvino.opsets.opset3.ops import scatter_update +from openvino.opsets.opset1.ops import select +from openvino.opsets.opset1.ops import selu +from openvino.opsets.opset3.ops import shape_of +from openvino.opsets.opset3.ops import shuffle_channels +from openvino.opsets.opset1.ops import sigmoid +from openvino.opsets.opset1.ops import sign +from openvino.opsets.opset1.ops import sin +from openvino.opsets.opset1.ops import sinh +from openvino.opsets.opset8.ops import slice +from openvino.opsets.opset8.ops import softmax +from openvino.opsets.opset4.ops import softplus +from openvino.opsets.opset9.ops import softsign +from openvino.opsets.opset2.ops import space_to_batch +from openvino.opsets.opset1.ops import space_to_depth +from openvino.opsets.opset1.ops import split +from openvino.opsets.opset1.ops import sqrt +from openvino.opsets.opset1.ops import squared_difference +from openvino.opsets.opset1.ops import squeeze +from openvino.opsets.opset1.ops import strided_slice +from openvino.opsets.opset1.ops import subtract +from openvino.opsets.opset4.ops import swish +from openvino.opsets.opset1.ops import tan +from openvino.opsets.opset1.ops import tanh +from openvino.opsets.opset1.ops import tensor_iterator +from openvino.opsets.opset1.ops import tile +from openvino.opsets.opset11.ops import topk +from openvino.opsets.opset1.ops import transpose +from openvino.opsets.opset10.ops import unique +from openvino.opsets.opset1.ops import unsqueeze +from openvino.opsets.opset1.ops import variadic_split diff --git a/src/bindings/python/src/openvino/opsets/opset13/ops.py b/src/bindings/python/src/openvino/opsets/opset13/ops.py index a624ffb4f79873..c738ebe61fa45d 100644 --- a/src/bindings/python/src/openvino/opsets/opset13/ops.py +++ b/src/bindings/python/src/openvino/opsets/opset13/ops.py @@ -11,12 +11,12 @@ log = logging.getLogger(__name__) -from openvino.runtime import Node, Shape, Type, Output, Tensor -from openvino.runtime.op import Constant, Result -from openvino.runtime.opset1 import convert_like -from openvino.runtime.opset_utils import _get_node_factory -from openvino.runtime.utils.decorators import binary_op, nameable_op, unary_op, overloading -from openvino.runtime.utils.types import ( +from openvino._pyopenvino import Node, Shape, Type, Output, Tensor +from openvino.opsets.op import Constant, Result +from openvino.opsets.opset1 import convert_like +from openvino.opsets.opset_utils import _get_node_factory +from openvino.utils.decorators import binary_op, nameable_op, unary_op, overloading +from openvino.utils.types import ( NumericData, NodeInput, NumericType, diff --git a/src/bindings/python/src/openvino/opsets/opset14/__init__.py b/src/bindings/python/src/openvino/opsets/opset14/__init__.py index 52ac785bd723e5..1cbb9b854377d6 100644 --- a/src/bindings/python/src/openvino/opsets/opset14/__init__.py +++ b/src/bindings/python/src/openvino/opsets/opset14/__init__.py @@ -2,189 +2,189 @@ # Copyright (C) 2018-2024 Intel Corporation # SPDX-License-Identifier: Apache-2.0 -from openvino.runtime.opset1.ops import absolute -from openvino.runtime.opset1.ops import absolute as abs -from openvino.runtime.opset1.ops import acos -from openvino.runtime.opset4.ops import acosh -from openvino.runtime.opset8.ops import adaptive_avg_pool -from openvino.runtime.opset8.ops import adaptive_max_pool -from openvino.runtime.opset1.ops import add -from openvino.runtime.opset1.ops import asin -from openvino.runtime.opset4.ops import asinh -from openvino.runtime.opset6.ops import assign -from openvino.runtime.opset1.ops import atan -from openvino.runtime.opset4.ops import atanh -from openvino.runtime.opset14.ops import avg_pool -from openvino.runtime.opset5.ops import batch_norm_inference -from openvino.runtime.opset2.ops import batch_to_space -from openvino.runtime.opset1.ops import binary_convolution -from openvino.runtime.opset13.ops import bitwise_and -from openvino.runtime.opset13.ops import bitwise_not -from openvino.runtime.opset13.ops import bitwise_or -from openvino.runtime.opset13.ops import bitwise_xor -from openvino.runtime.opset3.ops import broadcast -from openvino.runtime.opset3.ops import bucketize -from openvino.runtime.opset1.ops import ceiling -from openvino.runtime.opset1.ops import ceiling as ceil -from openvino.runtime.opset1.ops import clamp -from openvino.runtime.opset1.ops import concat -from openvino.runtime.opset13.ops import constant -from openvino.runtime.opset1.ops import convert -from openvino.runtime.opset1.ops import convert_like -from openvino.runtime.opset14.ops import convert_promote_types -from openvino.runtime.opset1.ops import convolution -from openvino.runtime.opset1.ops import convolution_backprop_data -from openvino.runtime.opset1.ops import cos -from openvino.runtime.opset1.ops import cosh -from openvino.runtime.opset1.ops import ctc_greedy_decoder -from openvino.runtime.opset6.ops import ctc_greedy_decoder_seq_len -from openvino.runtime.opset4.ops import ctc_loss -from openvino.runtime.opset3.ops import cum_sum -from openvino.runtime.opset3.ops import cum_sum as cumsum -from openvino.runtime.opset8.ops import deformable_convolution -from openvino.runtime.opset1.ops import deformable_psroi_pooling -from openvino.runtime.opset1.ops import depth_to_space -from openvino.runtime.opset8.ops import detection_output -from openvino.runtime.opset7.ops import dft -from openvino.runtime.opset1.ops import divide -from openvino.runtime.opset7.ops import einsum -from openvino.runtime.opset1.ops import elu -from openvino.runtime.opset3.ops import embedding_bag_offsets_sum -from openvino.runtime.opset3.ops import embedding_bag_packed_sum -from openvino.runtime.opset3.ops import embedding_segments_sum -from openvino.runtime.opset3.ops import extract_image_patches -from openvino.runtime.opset1.ops import equal -from openvino.runtime.opset1.ops import erf -from openvino.runtime.opset1.ops import exp -from openvino.runtime.opset9.ops import eye -from openvino.runtime.opset13.ops import fake_convert -from openvino.runtime.opset13.ops import fake_quantize -from openvino.runtime.opset1.ops import floor -from openvino.runtime.opset1.ops import floor_mod -from openvino.runtime.opset8.ops import gather -from openvino.runtime.opset6.ops import gather_elements -from openvino.runtime.opset8.ops import gather_nd -from openvino.runtime.opset1.ops import gather_tree -from openvino.runtime.opset7.ops import gelu -from openvino.runtime.opset9.ops import generate_proposals -from openvino.runtime.opset1.ops import greater -from openvino.runtime.opset1.ops import greater_equal -from openvino.runtime.opset9.ops import grid_sample -from openvino.runtime.opset1.ops import grn -from openvino.runtime.opset1.ops import group_convolution -from openvino.runtime.opset1.ops import group_convolution_backprop_data -from openvino.runtime.opset12.ops import group_normalization -from openvino.runtime.opset3.ops import gru_cell -from openvino.runtime.opset5.ops import gru_sequence -from openvino.runtime.opset1.ops import hard_sigmoid -from openvino.runtime.opset5.ops import hsigmoid -from openvino.runtime.opset4.ops import hswish -from openvino.runtime.opset7.ops import idft -from openvino.runtime.opset8.ops import if_op -from openvino.runtime.opset11.ops import interpolate -from openvino.runtime.opset14.ops import inverse -from openvino.runtime.opset9.ops import irdft -from openvino.runtime.opset10.ops import is_finite -from openvino.runtime.opset10.ops import is_inf -from openvino.runtime.opset10.ops import is_nan -from openvino.runtime.opset8.ops import i420_to_bgr -from openvino.runtime.opset8.ops import i420_to_rgb -from openvino.runtime.opset1.ops import less -from openvino.runtime.opset1.ops import less_equal -from openvino.runtime.opset1.ops import log -from openvino.runtime.opset1.ops import logical_and -from openvino.runtime.opset1.ops import logical_not -from openvino.runtime.opset1.ops import logical_or -from openvino.runtime.opset1.ops import logical_xor -from openvino.runtime.opset5.ops import log_softmax -from openvino.runtime.opset5.ops import loop -from openvino.runtime.opset1.ops import lrn -from openvino.runtime.opset4.ops import lstm_cell -from openvino.runtime.opset5.ops import lstm_sequence -from openvino.runtime.opset1.ops import matmul -from openvino.runtime.opset8.ops import matrix_nms -from openvino.runtime.opset14.ops import max_pool -from openvino.runtime.opset1.ops import maximum -from openvino.runtime.opset1.ops import minimum -from openvino.runtime.opset4.ops import mish -from openvino.runtime.opset1.ops import mod -from openvino.runtime.opset9.ops import multiclass_nms -from openvino.runtime.opset13.ops import multinomial -from openvino.runtime.opset1.ops import multiply -from openvino.runtime.opset6.ops import mvn -from openvino.runtime.opset1.ops import negative -from openvino.runtime.opset13.ops import nms_rotated -from openvino.runtime.opset9.ops import non_max_suppression -from openvino.runtime.opset3.ops import non_zero -from openvino.runtime.opset1.ops import normalize_l2 -from openvino.runtime.opset1.ops import not_equal -from openvino.runtime.opset8.ops import nv12_to_bgr -from openvino.runtime.opset8.ops import nv12_to_rgb -from openvino.runtime.opset1.ops import one_hot -from openvino.runtime.opset12.ops import pad -from openvino.runtime.opset1.ops import parameter -from openvino.runtime.opset1.ops import power -from openvino.runtime.opset1.ops import prelu -from openvino.runtime.opset8.ops import prior_box -from openvino.runtime.opset1.ops import prior_box_clustered -from openvino.runtime.opset1.ops import psroi_pooling -from openvino.runtime.opset4.ops import proposal -from openvino.runtime.opset4.ops import range -from openvino.runtime.opset8.ops import random_uniform -from openvino.runtime.opset9.ops import rdft -from openvino.runtime.opset6.ops import read_value -from openvino.runtime.opset4.ops import reduce_l1 -from openvino.runtime.opset4.ops import reduce_l2 -from openvino.runtime.opset1.ops import reduce_logical_and -from openvino.runtime.opset1.ops import reduce_logical_or -from openvino.runtime.opset1.ops import reduce_max -from openvino.runtime.opset1.ops import reduce_mean -from openvino.runtime.opset1.ops import reduce_min -from openvino.runtime.opset1.ops import reduce_prod -from openvino.runtime.opset1.ops import reduce_sum -from openvino.runtime.opset1.ops import region_yolo -from openvino.runtime.opset2.ops import reorg_yolo -from openvino.runtime.opset1.ops import relu -from openvino.runtime.opset1.ops import reshape -from openvino.runtime.opset13.ops import result -from openvino.runtime.opset1.ops import reverse_sequence -from openvino.runtime.opset3.ops import rnn_cell -from openvino.runtime.opset5.ops import rnn_sequence -from openvino.runtime.opset9.ops import roi_align -from openvino.runtime.opset2.ops import roi_pooling -from openvino.runtime.opset7.ops import roll -from openvino.runtime.opset5.ops import round -from openvino.runtime.opset13.ops import scaled_dot_product_attention -from openvino.runtime.opset12.ops import scatter_elements_update -from openvino.runtime.opset4.ops import scatter_nd_update -from openvino.runtime.opset3.ops import scatter_update -from openvino.runtime.opset1.ops import select -from openvino.runtime.opset1.ops import selu -from openvino.runtime.opset3.ops import shape_of -from openvino.runtime.opset3.ops import shuffle_channels -from openvino.runtime.opset1.ops import sigmoid -from openvino.runtime.opset1.ops import sign -from openvino.runtime.opset1.ops import sin -from openvino.runtime.opset1.ops import sinh -from openvino.runtime.opset8.ops import slice -from openvino.runtime.opset8.ops import softmax -from openvino.runtime.opset4.ops import softplus -from openvino.runtime.opset9.ops import softsign -from openvino.runtime.opset2.ops import space_to_batch -from openvino.runtime.opset1.ops import space_to_depth -from openvino.runtime.opset1.ops import split -from openvino.runtime.opset1.ops import sqrt -from openvino.runtime.opset1.ops import squared_difference -from openvino.runtime.opset1.ops import squeeze -from openvino.runtime.opset1.ops import strided_slice -from openvino.runtime.opset1.ops import subtract -from openvino.runtime.opset4.ops import swish -from openvino.runtime.opset1.ops import tan -from openvino.runtime.opset1.ops import tanh -from openvino.runtime.opset1.ops import tensor_iterator -from openvino.runtime.opset1.ops import tile -from openvino.runtime.opset11.ops import topk -from openvino.runtime.opset1.ops import transpose -from openvino.runtime.opset10.ops import unique -from openvino.runtime.opset1.ops import unsqueeze -from openvino.runtime.opset1.ops import variadic_split +from openvino.opsets.opset1.ops import absolute +from openvino.opsets.opset1.ops import absolute as abs +from openvino.opsets.opset1.ops import acos +from openvino.opsets.opset4.ops import acosh +from openvino.opsets.opset8.ops import adaptive_avg_pool +from openvino.opsets.opset8.ops import adaptive_max_pool +from openvino.opsets.opset1.ops import add +from openvino.opsets.opset1.ops import asin +from openvino.opsets.opset4.ops import asinh +from openvino.opsets.opset6.ops import assign +from openvino.opsets.opset1.ops import atan +from openvino.opsets.opset4.ops import atanh +from openvino.opsets.opset14.ops import avg_pool +from openvino.opsets.opset5.ops import batch_norm_inference +from openvino.opsets.opset2.ops import batch_to_space +from openvino.opsets.opset1.ops import binary_convolution +from openvino.opsets.opset13.ops import bitwise_and +from openvino.opsets.opset13.ops import bitwise_not +from openvino.opsets.opset13.ops import bitwise_or +from openvino.opsets.opset13.ops import bitwise_xor +from openvino.opsets.opset3.ops import broadcast +from openvino.opsets.opset3.ops import bucketize +from openvino.opsets.opset1.ops import ceiling +from openvino.opsets.opset1.ops import ceiling as ceil +from openvino.opsets.opset1.ops import clamp +from openvino.opsets.opset1.ops import concat +from openvino.opsets.opset13.ops import constant +from openvino.opsets.opset1.ops import convert +from openvino.opsets.opset1.ops import convert_like +from openvino.opsets.opset14.ops import convert_promote_types +from openvino.opsets.opset1.ops import convolution +from openvino.opsets.opset1.ops import convolution_backprop_data +from openvino.opsets.opset1.ops import cos +from openvino.opsets.opset1.ops import cosh +from openvino.opsets.opset1.ops import ctc_greedy_decoder +from openvino.opsets.opset6.ops import ctc_greedy_decoder_seq_len +from openvino.opsets.opset4.ops import ctc_loss +from openvino.opsets.opset3.ops import cum_sum +from openvino.opsets.opset3.ops import cum_sum as cumsum +from openvino.opsets.opset8.ops import deformable_convolution +from openvino.opsets.opset1.ops import deformable_psroi_pooling +from openvino.opsets.opset1.ops import depth_to_space +from openvino.opsets.opset8.ops import detection_output +from openvino.opsets.opset7.ops import dft +from openvino.opsets.opset1.ops import divide +from openvino.opsets.opset7.ops import einsum +from openvino.opsets.opset1.ops import elu +from openvino.opsets.opset3.ops import embedding_bag_offsets_sum +from openvino.opsets.opset3.ops import embedding_bag_packed_sum +from openvino.opsets.opset3.ops import embedding_segments_sum +from openvino.opsets.opset3.ops import extract_image_patches +from openvino.opsets.opset1.ops import equal +from openvino.opsets.opset1.ops import erf +from openvino.opsets.opset1.ops import exp +from openvino.opsets.opset9.ops import eye +from openvino.opsets.opset13.ops import fake_convert +from openvino.opsets.opset13.ops import fake_quantize +from openvino.opsets.opset1.ops import floor +from openvino.opsets.opset1.ops import floor_mod +from openvino.opsets.opset8.ops import gather +from openvino.opsets.opset6.ops import gather_elements +from openvino.opsets.opset8.ops import gather_nd +from openvino.opsets.opset1.ops import gather_tree +from openvino.opsets.opset7.ops import gelu +from openvino.opsets.opset9.ops import generate_proposals +from openvino.opsets.opset1.ops import greater +from openvino.opsets.opset1.ops import greater_equal +from openvino.opsets.opset9.ops import grid_sample +from openvino.opsets.opset1.ops import grn +from openvino.opsets.opset1.ops import group_convolution +from openvino.opsets.opset1.ops import group_convolution_backprop_data +from openvino.opsets.opset12.ops import group_normalization +from openvino.opsets.opset3.ops import gru_cell +from openvino.opsets.opset5.ops import gru_sequence +from openvino.opsets.opset1.ops import hard_sigmoid +from openvino.opsets.opset5.ops import hsigmoid +from openvino.opsets.opset4.ops import hswish +from openvino.opsets.opset7.ops import idft +from openvino.opsets.opset8.ops import if_op +from openvino.opsets.opset11.ops import interpolate +from openvino.opsets.opset14.ops import inverse +from openvino.opsets.opset9.ops import irdft +from openvino.opsets.opset10.ops import is_finite +from openvino.opsets.opset10.ops import is_inf +from openvino.opsets.opset10.ops import is_nan +from openvino.opsets.opset8.ops import i420_to_bgr +from openvino.opsets.opset8.ops import i420_to_rgb +from openvino.opsets.opset1.ops import less +from openvino.opsets.opset1.ops import less_equal +from openvino.opsets.opset1.ops import log +from openvino.opsets.opset1.ops import logical_and +from openvino.opsets.opset1.ops import logical_not +from openvino.opsets.opset1.ops import logical_or +from openvino.opsets.opset1.ops import logical_xor +from openvino.opsets.opset5.ops import log_softmax +from openvino.opsets.opset5.ops import loop +from openvino.opsets.opset1.ops import lrn +from openvino.opsets.opset4.ops import lstm_cell +from openvino.opsets.opset5.ops import lstm_sequence +from openvino.opsets.opset1.ops import matmul +from openvino.opsets.opset8.ops import matrix_nms +from openvino.opsets.opset14.ops import max_pool +from openvino.opsets.opset1.ops import maximum +from openvino.opsets.opset1.ops import minimum +from openvino.opsets.opset4.ops import mish +from openvino.opsets.opset1.ops import mod +from openvino.opsets.opset9.ops import multiclass_nms +from openvino.opsets.opset13.ops import multinomial +from openvino.opsets.opset1.ops import multiply +from openvino.opsets.opset6.ops import mvn +from openvino.opsets.opset1.ops import negative +from openvino.opsets.opset13.ops import nms_rotated +from openvino.opsets.opset9.ops import non_max_suppression +from openvino.opsets.opset3.ops import non_zero +from openvino.opsets.opset1.ops import normalize_l2 +from openvino.opsets.opset1.ops import not_equal +from openvino.opsets.opset8.ops import nv12_to_bgr +from openvino.opsets.opset8.ops import nv12_to_rgb +from openvino.opsets.opset1.ops import one_hot +from openvino.opsets.opset12.ops import pad +from openvino.opsets.opset1.ops import parameter +from openvino.opsets.opset1.ops import power +from openvino.opsets.opset1.ops import prelu +from openvino.opsets.opset8.ops import prior_box +from openvino.opsets.opset1.ops import prior_box_clustered +from openvino.opsets.opset1.ops import psroi_pooling +from openvino.opsets.opset4.ops import proposal +from openvino.opsets.opset4.ops import range +from openvino.opsets.opset8.ops import random_uniform +from openvino.opsets.opset9.ops import rdft +from openvino.opsets.opset6.ops import read_value +from openvino.opsets.opset4.ops import reduce_l1 +from openvino.opsets.opset4.ops import reduce_l2 +from openvino.opsets.opset1.ops import reduce_logical_and +from openvino.opsets.opset1.ops import reduce_logical_or +from openvino.opsets.opset1.ops import reduce_max +from openvino.opsets.opset1.ops import reduce_mean +from openvino.opsets.opset1.ops import reduce_min +from openvino.opsets.opset1.ops import reduce_prod +from openvino.opsets.opset1.ops import reduce_sum +from openvino.opsets.opset1.ops import region_yolo +from openvino.opsets.opset2.ops import reorg_yolo +from openvino.opsets.opset1.ops import relu +from openvino.opsets.opset1.ops import reshape +from openvino.opsets.opset13.ops import result +from openvino.opsets.opset1.ops import reverse_sequence +from openvino.opsets.opset3.ops import rnn_cell +from openvino.opsets.opset5.ops import rnn_sequence +from openvino.opsets.opset9.ops import roi_align +from openvino.opsets.opset2.ops import roi_pooling +from openvino.opsets.opset7.ops import roll +from openvino.opsets.opset5.ops import round +from openvino.opsets.opset13.ops import scaled_dot_product_attention +from openvino.opsets.opset12.ops import scatter_elements_update +from openvino.opsets.opset4.ops import scatter_nd_update +from openvino.opsets.opset3.ops import scatter_update +from openvino.opsets.opset1.ops import select +from openvino.opsets.opset1.ops import selu +from openvino.opsets.opset3.ops import shape_of +from openvino.opsets.opset3.ops import shuffle_channels +from openvino.opsets.opset1.ops import sigmoid +from openvino.opsets.opset1.ops import sign +from openvino.opsets.opset1.ops import sin +from openvino.opsets.opset1.ops import sinh +from openvino.opsets.opset8.ops import slice +from openvino.opsets.opset8.ops import softmax +from openvino.opsets.opset4.ops import softplus +from openvino.opsets.opset9.ops import softsign +from openvino.opsets.opset2.ops import space_to_batch +from openvino.opsets.opset1.ops import space_to_depth +from openvino.opsets.opset1.ops import split +from openvino.opsets.opset1.ops import sqrt +from openvino.opsets.opset1.ops import squared_difference +from openvino.opsets.opset1.ops import squeeze +from openvino.opsets.opset1.ops import strided_slice +from openvino.opsets.opset1.ops import subtract +from openvino.opsets.opset4.ops import swish +from openvino.opsets.opset1.ops import tan +from openvino.opsets.opset1.ops import tanh +from openvino.opsets.opset1.ops import tensor_iterator +from openvino.opsets.opset1.ops import tile +from openvino.opsets.opset11.ops import topk +from openvino.opsets.opset1.ops import transpose +from openvino.opsets.opset10.ops import unique +from openvino.opsets.opset1.ops import unsqueeze +from openvino.opsets.opset1.ops import variadic_split diff --git a/src/bindings/python/src/openvino/opsets/opset14/ops.py b/src/bindings/python/src/openvino/opsets/opset14/ops.py index fa872d24eb7f1a..6bcd43800b1b79 100644 --- a/src/bindings/python/src/openvino/opsets/opset14/ops.py +++ b/src/bindings/python/src/openvino/opsets/opset14/ops.py @@ -7,11 +7,11 @@ from typing import Union, Optional, List -from openvino.runtime import Node, Type -from openvino.runtime.opset_utils import _get_node_factory -from openvino.runtime.utils.types import TensorShape -from openvino.runtime.utils.decorators import nameable_op -from openvino.runtime.utils.types import NodeInput, as_node, as_nodes +from openvino._pyopenvino import Node, Type +from openvino.opsets.opset_utils import _get_node_factory +from openvino.utils.types import TensorShape +from openvino.utils.decorators import nameable_op +from openvino.utils.types import NodeInput, as_node, as_nodes _get_node_factory_opset14 = partial(_get_node_factory, "opset14") diff --git a/src/bindings/python/src/openvino/opsets/opset15/__init__.py b/src/bindings/python/src/openvino/opsets/opset15/__init__.py index c4dd48d9087ae1..3b07dc0c1b3c99 100644 --- a/src/bindings/python/src/openvino/opsets/opset15/__init__.py +++ b/src/bindings/python/src/openvino/opsets/opset15/__init__.py @@ -3,202 +3,202 @@ # SPDX-License-Identifier: Apache-2.0 # New operations added in Opset15 -from openvino.runtime.opset15.ops import col2im -from openvino.runtime.opset15.ops import embedding_bag_offsets -from openvino.runtime.opset15.ops import embedding_bag_packed -from openvino.runtime.opset15.ops import scatter_nd_update -from openvino.runtime.opset15.ops import roi_align_rotated -from openvino.runtime.opset15.ops import string_tensor_pack -from openvino.runtime.opset15.ops import string_tensor_unpack -from openvino.runtime.opset15.ops import bitwise_left_shift -from openvino.runtime.opset15.ops import bitwise_right_shift -from openvino.runtime.opset15.ops import slice_scatter +from openvino.opsets.opset15.ops import col2im +from openvino.opsets.opset15.ops import embedding_bag_offsets +from openvino.opsets.opset15.ops import embedding_bag_packed +from openvino.opsets.opset15.ops import scatter_nd_update +from openvino.opsets.opset15.ops import roi_align_rotated +from openvino.opsets.opset15.ops import string_tensor_pack +from openvino.opsets.opset15.ops import string_tensor_unpack +from openvino.opsets.opset15.ops import bitwise_left_shift +from openvino.opsets.opset15.ops import bitwise_right_shift +from openvino.opsets.opset15.ops import slice_scatter # Operators from previous opsets -from openvino.runtime.opset1.ops import absolute -from openvino.runtime.opset1.ops import absolute as abs -from openvino.runtime.opset1.ops import acos -from openvino.runtime.opset4.ops import acosh -from openvino.runtime.opset8.ops import adaptive_avg_pool -from openvino.runtime.opset8.ops import adaptive_max_pool -from openvino.runtime.opset1.ops import add -from openvino.runtime.opset1.ops import asin -from openvino.runtime.opset4.ops import asinh -from openvino.runtime.opset6.ops import assign -from openvino.runtime.opset1.ops import atan -from openvino.runtime.opset4.ops import atanh -from openvino.runtime.opset14.ops import avg_pool -from openvino.runtime.opset5.ops import batch_norm_inference -from openvino.runtime.opset2.ops import batch_to_space -from openvino.runtime.opset1.ops import binary_convolution -from openvino.runtime.opset13.ops import bitwise_and -from openvino.runtime.opset13.ops import bitwise_not -from openvino.runtime.opset13.ops import bitwise_or -from openvino.runtime.opset13.ops import bitwise_xor -from openvino.runtime.opset3.ops import broadcast -from openvino.runtime.opset3.ops import bucketize -from openvino.runtime.opset1.ops import ceiling -from openvino.runtime.opset1.ops import ceiling as ceil -from openvino.runtime.opset1.ops import clamp -from openvino.runtime.opset1.ops import concat -from openvino.runtime.opset13.ops import constant -from openvino.runtime.opset1.ops import convert -from openvino.runtime.opset1.ops import convert_like -from openvino.runtime.opset14.ops import convert_promote_types -from openvino.runtime.opset1.ops import convolution -from openvino.runtime.opset1.ops import convolution_backprop_data -from openvino.runtime.opset1.ops import cos -from openvino.runtime.opset1.ops import cosh -from openvino.runtime.opset1.ops import ctc_greedy_decoder -from openvino.runtime.opset6.ops import ctc_greedy_decoder_seq_len -from openvino.runtime.opset4.ops import ctc_loss -from openvino.runtime.opset3.ops import cum_sum -from openvino.runtime.opset3.ops import cum_sum as cumsum -from openvino.runtime.opset8.ops import deformable_convolution -from openvino.runtime.opset1.ops import deformable_psroi_pooling -from openvino.runtime.opset1.ops import depth_to_space -from openvino.runtime.opset8.ops import detection_output -from openvino.runtime.opset7.ops import dft -from openvino.runtime.opset1.ops import divide -from openvino.runtime.opset7.ops import einsum -from openvino.runtime.opset1.ops import elu -from openvino.runtime.opset3.ops import embedding_bag_offsets_sum -from openvino.runtime.opset3.ops import embedding_bag_packed_sum -from openvino.runtime.opset3.ops import embedding_segments_sum -from openvino.runtime.opset3.ops import extract_image_patches -from openvino.runtime.opset1.ops import equal -from openvino.runtime.opset1.ops import erf -from openvino.runtime.opset1.ops import exp -from openvino.runtime.opset9.ops import eye -from openvino.runtime.opset13.ops import fake_convert -from openvino.runtime.opset13.ops import fake_quantize -from openvino.runtime.opset1.ops import floor -from openvino.runtime.opset1.ops import floor_mod -from openvino.runtime.opset8.ops import gather -from openvino.runtime.opset6.ops import gather_elements -from openvino.runtime.opset8.ops import gather_nd -from openvino.runtime.opset1.ops import gather_tree -from openvino.runtime.opset7.ops import gelu -from openvino.runtime.opset9.ops import generate_proposals -from openvino.runtime.opset1.ops import greater -from openvino.runtime.opset1.ops import greater_equal -from openvino.runtime.opset9.ops import grid_sample -from openvino.runtime.opset1.ops import grn -from openvino.runtime.opset1.ops import group_convolution -from openvino.runtime.opset1.ops import group_convolution_backprop_data -from openvino.runtime.opset12.ops import group_normalization -from openvino.runtime.opset3.ops import gru_cell -from openvino.runtime.opset5.ops import gru_sequence -from openvino.runtime.opset1.ops import hard_sigmoid -from openvino.runtime.opset5.ops import hsigmoid -from openvino.runtime.opset4.ops import hswish -from openvino.runtime.opset7.ops import idft -from openvino.runtime.opset8.ops import if_op -from openvino.runtime.opset11.ops import interpolate -from openvino.runtime.opset14.ops import inverse -from openvino.runtime.opset9.ops import irdft -from openvino.runtime.opset10.ops import is_finite -from openvino.runtime.opset10.ops import is_inf -from openvino.runtime.opset10.ops import is_nan -from openvino.runtime.opset8.ops import i420_to_bgr -from openvino.runtime.opset8.ops import i420_to_rgb -from openvino.runtime.opset1.ops import less -from openvino.runtime.opset1.ops import less_equal -from openvino.runtime.opset1.ops import log -from openvino.runtime.opset1.ops import logical_and -from openvino.runtime.opset1.ops import logical_not -from openvino.runtime.opset1.ops import logical_or -from openvino.runtime.opset1.ops import logical_xor -from openvino.runtime.opset5.ops import log_softmax -from openvino.runtime.opset5.ops import loop -from openvino.runtime.opset1.ops import lrn -from openvino.runtime.opset4.ops import lstm_cell -from openvino.runtime.opset5.ops import lstm_sequence -from openvino.runtime.opset1.ops import matmul -from openvino.runtime.opset8.ops import matrix_nms -from openvino.runtime.opset14.ops import max_pool -from openvino.runtime.opset1.ops import maximum -from openvino.runtime.opset1.ops import minimum -from openvino.runtime.opset4.ops import mish -from openvino.runtime.opset1.ops import mod -from openvino.runtime.opset9.ops import multiclass_nms -from openvino.runtime.opset13.ops import multinomial -from openvino.runtime.opset1.ops import multiply -from openvino.runtime.opset6.ops import mvn -from openvino.runtime.opset1.ops import negative -from openvino.runtime.opset13.ops import nms_rotated -from openvino.runtime.opset9.ops import non_max_suppression -from openvino.runtime.opset3.ops import non_zero -from openvino.runtime.opset1.ops import normalize_l2 -from openvino.runtime.opset1.ops import not_equal -from openvino.runtime.opset8.ops import nv12_to_bgr -from openvino.runtime.opset8.ops import nv12_to_rgb -from openvino.runtime.opset1.ops import one_hot -from openvino.runtime.opset12.ops import pad -from openvino.runtime.opset1.ops import parameter -from openvino.runtime.opset1.ops import power -from openvino.runtime.opset1.ops import prelu -from openvino.runtime.opset8.ops import prior_box -from openvino.runtime.opset1.ops import prior_box_clustered -from openvino.runtime.opset1.ops import psroi_pooling -from openvino.runtime.opset4.ops import proposal -from openvino.runtime.opset4.ops import range -from openvino.runtime.opset8.ops import random_uniform -from openvino.runtime.opset9.ops import rdft -from openvino.runtime.opset6.ops import read_value -from openvino.runtime.opset4.ops import reduce_l1 -from openvino.runtime.opset4.ops import reduce_l2 -from openvino.runtime.opset1.ops import reduce_logical_and -from openvino.runtime.opset1.ops import reduce_logical_or -from openvino.runtime.opset1.ops import reduce_max -from openvino.runtime.opset1.ops import reduce_mean -from openvino.runtime.opset1.ops import reduce_min -from openvino.runtime.opset1.ops import reduce_prod -from openvino.runtime.opset1.ops import reduce_sum -from openvino.runtime.opset1.ops import region_yolo -from openvino.runtime.opset2.ops import reorg_yolo -from openvino.runtime.opset1.ops import relu -from openvino.runtime.opset1.ops import reshape -from openvino.runtime.opset13.ops import result -from openvino.runtime.opset1.ops import reverse_sequence -from openvino.runtime.opset3.ops import rnn_cell -from openvino.runtime.opset5.ops import rnn_sequence -from openvino.runtime.opset9.ops import roi_align -from openvino.runtime.opset2.ops import roi_pooling -from openvino.runtime.opset7.ops import roll -from openvino.runtime.opset5.ops import round -from openvino.runtime.opset13.ops import scaled_dot_product_attention -from openvino.runtime.opset12.ops import scatter_elements_update -from openvino.runtime.opset3.ops import scatter_update -from openvino.runtime.opset15.ops import search_sorted -from openvino.runtime.opset1.ops import select -from openvino.runtime.opset1.ops import selu -from openvino.runtime.opset3.ops import shape_of -from openvino.runtime.opset3.ops import shuffle_channels -from openvino.runtime.opset1.ops import sigmoid -from openvino.runtime.opset1.ops import sign -from openvino.runtime.opset1.ops import sin -from openvino.runtime.opset1.ops import sinh -from openvino.runtime.opset8.ops import slice -from openvino.runtime.opset8.ops import softmax -from openvino.runtime.opset4.ops import softplus -from openvino.runtime.opset9.ops import softsign -from openvino.runtime.opset2.ops import space_to_batch -from openvino.runtime.opset1.ops import space_to_depth -from openvino.runtime.opset1.ops import split -from openvino.runtime.opset1.ops import sqrt -from openvino.runtime.opset1.ops import squared_difference -from openvino.runtime.opset15.ops import squeeze -from openvino.runtime.opset15.ops import stft -from openvino.runtime.opset1.ops import strided_slice -from openvino.runtime.opset1.ops import subtract -from openvino.runtime.opset4.ops import swish -from openvino.runtime.opset1.ops import tan -from openvino.runtime.opset1.ops import tanh -from openvino.runtime.opset1.ops import tensor_iterator -from openvino.runtime.opset1.ops import tile -from openvino.runtime.opset11.ops import topk -from openvino.runtime.opset1.ops import transpose -from openvino.runtime.opset10.ops import unique -from openvino.runtime.opset1.ops import unsqueeze -from openvino.runtime.opset1.ops import variadic_split +from openvino.opsets.opset1.ops import absolute +from openvino.opsets.opset1.ops import absolute as abs +from openvino.opsets.opset1.ops import acos +from openvino.opsets.opset4.ops import acosh +from openvino.opsets.opset8.ops import adaptive_avg_pool +from openvino.opsets.opset8.ops import adaptive_max_pool +from openvino.opsets.opset1.ops import add +from openvino.opsets.opset1.ops import asin +from openvino.opsets.opset4.ops import asinh +from openvino.opsets.opset6.ops import assign +from openvino.opsets.opset1.ops import atan +from openvino.opsets.opset4.ops import atanh +from openvino.opsets.opset14.ops import avg_pool +from openvino.opsets.opset5.ops import batch_norm_inference +from openvino.opsets.opset2.ops import batch_to_space +from openvino.opsets.opset1.ops import binary_convolution +from openvino.opsets.opset13.ops import bitwise_and +from openvino.opsets.opset13.ops import bitwise_not +from openvino.opsets.opset13.ops import bitwise_or +from openvino.opsets.opset13.ops import bitwise_xor +from openvino.opsets.opset3.ops import broadcast +from openvino.opsets.opset3.ops import bucketize +from openvino.opsets.opset1.ops import ceiling +from openvino.opsets.opset1.ops import ceiling as ceil +from openvino.opsets.opset1.ops import clamp +from openvino.opsets.opset1.ops import concat +from openvino.opsets.opset13.ops import constant +from openvino.opsets.opset1.ops import convert +from openvino.opsets.opset1.ops import convert_like +from openvino.opsets.opset14.ops import convert_promote_types +from openvino.opsets.opset1.ops import convolution +from openvino.opsets.opset1.ops import convolution_backprop_data +from openvino.opsets.opset1.ops import cos +from openvino.opsets.opset1.ops import cosh +from openvino.opsets.opset1.ops import ctc_greedy_decoder +from openvino.opsets.opset6.ops import ctc_greedy_decoder_seq_len +from openvino.opsets.opset4.ops import ctc_loss +from openvino.opsets.opset3.ops import cum_sum +from openvino.opsets.opset3.ops import cum_sum as cumsum +from openvino.opsets.opset8.ops import deformable_convolution +from openvino.opsets.opset1.ops import deformable_psroi_pooling +from openvino.opsets.opset1.ops import depth_to_space +from openvino.opsets.opset8.ops import detection_output +from openvino.opsets.opset7.ops import dft +from openvino.opsets.opset1.ops import divide +from openvino.opsets.opset7.ops import einsum +from openvino.opsets.opset1.ops import elu +from openvino.opsets.opset3.ops import embedding_bag_offsets_sum +from openvino.opsets.opset3.ops import embedding_bag_packed_sum +from openvino.opsets.opset3.ops import embedding_segments_sum +from openvino.opsets.opset3.ops import extract_image_patches +from openvino.opsets.opset1.ops import equal +from openvino.opsets.opset1.ops import erf +from openvino.opsets.opset1.ops import exp +from openvino.opsets.opset9.ops import eye +from openvino.opsets.opset13.ops import fake_convert +from openvino.opsets.opset13.ops import fake_quantize +from openvino.opsets.opset1.ops import floor +from openvino.opsets.opset1.ops import floor_mod +from openvino.opsets.opset8.ops import gather +from openvino.opsets.opset6.ops import gather_elements +from openvino.opsets.opset8.ops import gather_nd +from openvino.opsets.opset1.ops import gather_tree +from openvino.opsets.opset7.ops import gelu +from openvino.opsets.opset9.ops import generate_proposals +from openvino.opsets.opset1.ops import greater +from openvino.opsets.opset1.ops import greater_equal +from openvino.opsets.opset9.ops import grid_sample +from openvino.opsets.opset1.ops import grn +from openvino.opsets.opset1.ops import group_convolution +from openvino.opsets.opset1.ops import group_convolution_backprop_data +from openvino.opsets.opset12.ops import group_normalization +from openvino.opsets.opset3.ops import gru_cell +from openvino.opsets.opset5.ops import gru_sequence +from openvino.opsets.opset1.ops import hard_sigmoid +from openvino.opsets.opset5.ops import hsigmoid +from openvino.opsets.opset4.ops import hswish +from openvino.opsets.opset7.ops import idft +from openvino.opsets.opset8.ops import if_op +from openvino.opsets.opset11.ops import interpolate +from openvino.opsets.opset14.ops import inverse +from openvino.opsets.opset9.ops import irdft +from openvino.opsets.opset10.ops import is_finite +from openvino.opsets.opset10.ops import is_inf +from openvino.opsets.opset10.ops import is_nan +from openvino.opsets.opset8.ops import i420_to_bgr +from openvino.opsets.opset8.ops import i420_to_rgb +from openvino.opsets.opset1.ops import less +from openvino.opsets.opset1.ops import less_equal +from openvino.opsets.opset1.ops import log +from openvino.opsets.opset1.ops import logical_and +from openvino.opsets.opset1.ops import logical_not +from openvino.opsets.opset1.ops import logical_or +from openvino.opsets.opset1.ops import logical_xor +from openvino.opsets.opset5.ops import log_softmax +from openvino.opsets.opset5.ops import loop +from openvino.opsets.opset1.ops import lrn +from openvino.opsets.opset4.ops import lstm_cell +from openvino.opsets.opset5.ops import lstm_sequence +from openvino.opsets.opset1.ops import matmul +from openvino.opsets.opset8.ops import matrix_nms +from openvino.opsets.opset14.ops import max_pool +from openvino.opsets.opset1.ops import maximum +from openvino.opsets.opset1.ops import minimum +from openvino.opsets.opset4.ops import mish +from openvino.opsets.opset1.ops import mod +from openvino.opsets.opset9.ops import multiclass_nms +from openvino.opsets.opset13.ops import multinomial +from openvino.opsets.opset1.ops import multiply +from openvino.opsets.opset6.ops import mvn +from openvino.opsets.opset1.ops import negative +from openvino.opsets.opset13.ops import nms_rotated +from openvino.opsets.opset9.ops import non_max_suppression +from openvino.opsets.opset3.ops import non_zero +from openvino.opsets.opset1.ops import normalize_l2 +from openvino.opsets.opset1.ops import not_equal +from openvino.opsets.opset8.ops import nv12_to_bgr +from openvino.opsets.opset8.ops import nv12_to_rgb +from openvino.opsets.opset1.ops import one_hot +from openvino.opsets.opset12.ops import pad +from openvino.opsets.opset1.ops import parameter +from openvino.opsets.opset1.ops import power +from openvino.opsets.opset1.ops import prelu +from openvino.opsets.opset8.ops import prior_box +from openvino.opsets.opset1.ops import prior_box_clustered +from openvino.opsets.opset1.ops import psroi_pooling +from openvino.opsets.opset4.ops import proposal +from openvino.opsets.opset4.ops import range +from openvino.opsets.opset8.ops import random_uniform +from openvino.opsets.opset9.ops import rdft +from openvino.opsets.opset6.ops import read_value +from openvino.opsets.opset4.ops import reduce_l1 +from openvino.opsets.opset4.ops import reduce_l2 +from openvino.opsets.opset1.ops import reduce_logical_and +from openvino.opsets.opset1.ops import reduce_logical_or +from openvino.opsets.opset1.ops import reduce_max +from openvino.opsets.opset1.ops import reduce_mean +from openvino.opsets.opset1.ops import reduce_min +from openvino.opsets.opset1.ops import reduce_prod +from openvino.opsets.opset1.ops import reduce_sum +from openvino.opsets.opset1.ops import region_yolo +from openvino.opsets.opset2.ops import reorg_yolo +from openvino.opsets.opset1.ops import relu +from openvino.opsets.opset1.ops import reshape +from openvino.opsets.opset13.ops import result +from openvino.opsets.opset1.ops import reverse_sequence +from openvino.opsets.opset3.ops import rnn_cell +from openvino.opsets.opset5.ops import rnn_sequence +from openvino.opsets.opset9.ops import roi_align +from openvino.opsets.opset2.ops import roi_pooling +from openvino.opsets.opset7.ops import roll +from openvino.opsets.opset5.ops import round +from openvino.opsets.opset13.ops import scaled_dot_product_attention +from openvino.opsets.opset12.ops import scatter_elements_update +from openvino.opsets.opset3.ops import scatter_update +from openvino.opsets.opset15.ops import search_sorted +from openvino.opsets.opset1.ops import select +from openvino.opsets.opset1.ops import selu +from openvino.opsets.opset3.ops import shape_of +from openvino.opsets.opset3.ops import shuffle_channels +from openvino.opsets.opset1.ops import sigmoid +from openvino.opsets.opset1.ops import sign +from openvino.opsets.opset1.ops import sin +from openvino.opsets.opset1.ops import sinh +from openvino.opsets.opset8.ops import slice +from openvino.opsets.opset8.ops import softmax +from openvino.opsets.opset4.ops import softplus +from openvino.opsets.opset9.ops import softsign +from openvino.opsets.opset2.ops import space_to_batch +from openvino.opsets.opset1.ops import space_to_depth +from openvino.opsets.opset1.ops import split +from openvino.opsets.opset1.ops import sqrt +from openvino.opsets.opset1.ops import squared_difference +from openvino.opsets.opset15.ops import squeeze +from openvino.opsets.opset15.ops import stft +from openvino.opsets.opset1.ops import strided_slice +from openvino.opsets.opset1.ops import subtract +from openvino.opsets.opset4.ops import swish +from openvino.opsets.opset1.ops import tan +from openvino.opsets.opset1.ops import tanh +from openvino.opsets.opset1.ops import tensor_iterator +from openvino.opsets.opset1.ops import tile +from openvino.opsets.opset11.ops import topk +from openvino.opsets.opset1.ops import transpose +from openvino.opsets.opset10.ops import unique +from openvino.opsets.opset1.ops import unsqueeze +from openvino.opsets.opset1.ops import variadic_split diff --git a/src/bindings/python/src/openvino/opsets/opset15/ops.py b/src/bindings/python/src/openvino/opsets/opset15/ops.py index 93aacb29572340..6f8bb4dfe6ee2f 100644 --- a/src/bindings/python/src/openvino/opsets/opset15/ops.py +++ b/src/bindings/python/src/openvino/opsets/opset15/ops.py @@ -7,12 +7,12 @@ from typing import List, Literal, Optional import numpy as np -from openvino.runtime import Node, Type -from openvino.runtime.opset1 import convert_like -from openvino.runtime.opset14 import constant -from openvino.runtime.opset_utils import _get_node_factory -from openvino.runtime.utils.decorators import binary_op, nameable_op -from openvino.runtime.utils.types import NodeInput, as_nodes +from openvino._pyopenvino import Node, Type +from openvino.opsets.opset1 import convert_like +from openvino.opsets.opset14 import constant +from openvino.opsets.opset_utils import _get_node_factory +from openvino.utils.decorators import binary_op, nameable_op +from openvino.utils.types import NodeInput, as_nodes _get_node_factory_opset15 = partial(_get_node_factory, "opset15") diff --git a/src/bindings/python/src/openvino/opsets/opset2/__init__.py b/src/bindings/python/src/openvino/opsets/opset2/__init__.py index 34d0d9b6737709..b01acbfd48a7d7 100644 --- a/src/bindings/python/src/openvino/opsets/opset2/__init__.py +++ b/src/bindings/python/src/openvino/opsets/opset2/__init__.py @@ -2,117 +2,117 @@ # Copyright (C) 2018-2024 Intel Corporation # SPDX-License-Identifier: Apache-2.0 -from openvino.runtime.opset1.ops import absolute -from openvino.runtime.opset1.ops import absolute as abs -from openvino.runtime.opset1.ops import acos -from openvino.runtime.opset1.ops import add -from openvino.runtime.opset1.ops import asin -from openvino.runtime.opset1.ops import atan -from openvino.runtime.opset1.ops import avg_pool -from openvino.runtime.opset1.ops import batch_norm_inference -from openvino.runtime.opset2.ops import batch_to_space -from openvino.runtime.opset1.ops import binary_convolution -from openvino.runtime.opset1.ops import broadcast -from openvino.runtime.opset1.ops import ceiling -from openvino.runtime.opset1.ops import ceiling as ceil -from openvino.runtime.opset1.ops import clamp -from openvino.runtime.opset1.ops import concat -from openvino.runtime.opset1.ops import constant -from openvino.runtime.opset1.ops import convert -from openvino.runtime.opset1.ops import convert_like -from openvino.runtime.opset1.ops import convolution -from openvino.runtime.opset1.ops import convolution_backprop_data -from openvino.runtime.opset1.ops import cos -from openvino.runtime.opset1.ops import cosh -from openvino.runtime.opset1.ops import ctc_greedy_decoder -from openvino.runtime.opset1.ops import deformable_convolution -from openvino.runtime.opset1.ops import deformable_psroi_pooling -from openvino.runtime.opset1.ops import depth_to_space -from openvino.runtime.opset1.ops import detection_output -from openvino.runtime.opset1.ops import divide -from openvino.runtime.opset1.ops import elu -from openvino.runtime.opset1.ops import equal -from openvino.runtime.opset1.ops import erf -from openvino.runtime.opset1.ops import exp -from openvino.runtime.opset1.ops import fake_quantize -from openvino.runtime.opset1.ops import floor -from openvino.runtime.opset1.ops import floor_mod -from openvino.runtime.opset1.ops import gather -from openvino.runtime.opset1.ops import gather_tree -from openvino.runtime.opset2.ops import gelu -from openvino.runtime.opset1.ops import greater -from openvino.runtime.opset1.ops import greater_equal -from openvino.runtime.opset1.ops import grn -from openvino.runtime.opset1.ops import group_convolution -from openvino.runtime.opset1.ops import group_convolution_backprop_data -from openvino.runtime.opset1.ops import hard_sigmoid -from openvino.runtime.opset1.ops import interpolate -from openvino.runtime.opset1.ops import less -from openvino.runtime.opset1.ops import less_equal -from openvino.runtime.opset1.ops import log -from openvino.runtime.opset1.ops import logical_and -from openvino.runtime.opset1.ops import logical_not -from openvino.runtime.opset1.ops import logical_or -from openvino.runtime.opset1.ops import logical_xor -from openvino.runtime.opset1.ops import lrn -from openvino.runtime.opset1.ops import lstm_cell -from openvino.runtime.opset1.ops import lstm_sequence -from openvino.runtime.opset1.ops import matmul -from openvino.runtime.opset1.ops import max_pool -from openvino.runtime.opset1.ops import maximum -from openvino.runtime.opset1.ops import minimum -from openvino.runtime.opset1.ops import mod -from openvino.runtime.opset1.ops import multiply -from openvino.runtime.opset2.ops import mvn -from openvino.runtime.opset1.ops import negative -from openvino.runtime.opset1.ops import non_max_suppression -from openvino.runtime.opset1.ops import normalize_l2 -from openvino.runtime.opset1.ops import not_equal -from openvino.runtime.opset1.ops import one_hot -from openvino.runtime.opset1.ops import pad -from openvino.runtime.opset1.ops import parameter -from openvino.runtime.opset1.ops import power -from openvino.runtime.opset1.ops import prelu -from openvino.runtime.opset1.ops import prior_box -from openvino.runtime.opset1.ops import prior_box_clustered -from openvino.runtime.opset1.ops import psroi_pooling -from openvino.runtime.opset1.ops import proposal -from openvino.runtime.opset1.ops import range -from openvino.runtime.opset1.ops import reduce_logical_and -from openvino.runtime.opset1.ops import reduce_logical_or -from openvino.runtime.opset1.ops import reduce_max -from openvino.runtime.opset1.ops import reduce_mean -from openvino.runtime.opset1.ops import reduce_min -from openvino.runtime.opset1.ops import reduce_prod -from openvino.runtime.opset1.ops import reduce_sum -from openvino.runtime.opset1.ops import region_yolo -from openvino.runtime.opset2.ops import reorg_yolo -from openvino.runtime.opset1.ops import relu -from openvino.runtime.opset1.ops import reshape -from openvino.runtime.opset1.ops import result -from openvino.runtime.opset1.ops import reverse_sequence -from openvino.runtime.opset2.ops import roi_pooling -from openvino.runtime.opset1.ops import select -from openvino.runtime.opset1.ops import selu -from openvino.runtime.opset1.ops import shape_of -from openvino.runtime.opset1.ops import sigmoid -from openvino.runtime.opset1.ops import sign -from openvino.runtime.opset1.ops import sin -from openvino.runtime.opset1.ops import sinh -from openvino.runtime.opset1.ops import softmax -from openvino.runtime.opset2.ops import space_to_batch -from openvino.runtime.opset1.ops import space_to_depth -from openvino.runtime.opset1.ops import split -from openvino.runtime.opset1.ops import sqrt -from openvino.runtime.opset1.ops import squared_difference -from openvino.runtime.opset1.ops import squeeze -from openvino.runtime.opset1.ops import strided_slice -from openvino.runtime.opset1.ops import subtract -from openvino.runtime.opset1.ops import tan -from openvino.runtime.opset1.ops import tanh -from openvino.runtime.opset1.ops import tensor_iterator -from openvino.runtime.opset1.ops import tile -from openvino.runtime.opset1.ops import topk -from openvino.runtime.opset1.ops import transpose -from openvino.runtime.opset1.ops import unsqueeze -from openvino.runtime.opset1.ops import variadic_split +from openvino.opsets.opset1.ops import absolute +from openvino.opsets.opset1.ops import absolute as abs +from openvino.opsets.opset1.ops import acos +from openvino.opsets.opset1.ops import add +from openvino.opsets.opset1.ops import asin +from openvino.opsets.opset1.ops import atan +from openvino.opsets.opset1.ops import avg_pool +from openvino.opsets.opset1.ops import batch_norm_inference +from openvino.opsets.opset2.ops import batch_to_space +from openvino.opsets.opset1.ops import binary_convolution +from openvino.opsets.opset1.ops import broadcast +from openvino.opsets.opset1.ops import ceiling +from openvino.opsets.opset1.ops import ceiling as ceil +from openvino.opsets.opset1.ops import clamp +from openvino.opsets.opset1.ops import concat +from openvino.opsets.opset1.ops import constant +from openvino.opsets.opset1.ops import convert +from openvino.opsets.opset1.ops import convert_like +from openvino.opsets.opset1.ops import convolution +from openvino.opsets.opset1.ops import convolution_backprop_data +from openvino.opsets.opset1.ops import cos +from openvino.opsets.opset1.ops import cosh +from openvino.opsets.opset1.ops import ctc_greedy_decoder +from openvino.opsets.opset1.ops import deformable_convolution +from openvino.opsets.opset1.ops import deformable_psroi_pooling +from openvino.opsets.opset1.ops import depth_to_space +from openvino.opsets.opset1.ops import detection_output +from openvino.opsets.opset1.ops import divide +from openvino.opsets.opset1.ops import elu +from openvino.opsets.opset1.ops import equal +from openvino.opsets.opset1.ops import erf +from openvino.opsets.opset1.ops import exp +from openvino.opsets.opset1.ops import fake_quantize +from openvino.opsets.opset1.ops import floor +from openvino.opsets.opset1.ops import floor_mod +from openvino.opsets.opset1.ops import gather +from openvino.opsets.opset1.ops import gather_tree +from openvino.opsets.opset2.ops import gelu +from openvino.opsets.opset1.ops import greater +from openvino.opsets.opset1.ops import greater_equal +from openvino.opsets.opset1.ops import grn +from openvino.opsets.opset1.ops import group_convolution +from openvino.opsets.opset1.ops import group_convolution_backprop_data +from openvino.opsets.opset1.ops import hard_sigmoid +from openvino.opsets.opset1.ops import interpolate +from openvino.opsets.opset1.ops import less +from openvino.opsets.opset1.ops import less_equal +from openvino.opsets.opset1.ops import log +from openvino.opsets.opset1.ops import logical_and +from openvino.opsets.opset1.ops import logical_not +from openvino.opsets.opset1.ops import logical_or +from openvino.opsets.opset1.ops import logical_xor +from openvino.opsets.opset1.ops import lrn +from openvino.opsets.opset1.ops import lstm_cell +from openvino.opsets.opset1.ops import lstm_sequence +from openvino.opsets.opset1.ops import matmul +from openvino.opsets.opset1.ops import max_pool +from openvino.opsets.opset1.ops import maximum +from openvino.opsets.opset1.ops import minimum +from openvino.opsets.opset1.ops import mod +from openvino.opsets.opset1.ops import multiply +from openvino.opsets.opset2.ops import mvn +from openvino.opsets.opset1.ops import negative +from openvino.opsets.opset1.ops import non_max_suppression +from openvino.opsets.opset1.ops import normalize_l2 +from openvino.opsets.opset1.ops import not_equal +from openvino.opsets.opset1.ops import one_hot +from openvino.opsets.opset1.ops import pad +from openvino.opsets.opset1.ops import parameter +from openvino.opsets.opset1.ops import power +from openvino.opsets.opset1.ops import prelu +from openvino.opsets.opset1.ops import prior_box +from openvino.opsets.opset1.ops import prior_box_clustered +from openvino.opsets.opset1.ops import psroi_pooling +from openvino.opsets.opset1.ops import proposal +from openvino.opsets.opset1.ops import range +from openvino.opsets.opset1.ops import reduce_logical_and +from openvino.opsets.opset1.ops import reduce_logical_or +from openvino.opsets.opset1.ops import reduce_max +from openvino.opsets.opset1.ops import reduce_mean +from openvino.opsets.opset1.ops import reduce_min +from openvino.opsets.opset1.ops import reduce_prod +from openvino.opsets.opset1.ops import reduce_sum +from openvino.opsets.opset1.ops import region_yolo +from openvino.opsets.opset2.ops import reorg_yolo +from openvino.opsets.opset1.ops import relu +from openvino.opsets.opset1.ops import reshape +from openvino.opsets.opset1.ops import result +from openvino.opsets.opset1.ops import reverse_sequence +from openvino.opsets.opset2.ops import roi_pooling +from openvino.opsets.opset1.ops import select +from openvino.opsets.opset1.ops import selu +from openvino.opsets.opset1.ops import shape_of +from openvino.opsets.opset1.ops import sigmoid +from openvino.opsets.opset1.ops import sign +from openvino.opsets.opset1.ops import sin +from openvino.opsets.opset1.ops import sinh +from openvino.opsets.opset1.ops import softmax +from openvino.opsets.opset2.ops import space_to_batch +from openvino.opsets.opset1.ops import space_to_depth +from openvino.opsets.opset1.ops import split +from openvino.opsets.opset1.ops import sqrt +from openvino.opsets.opset1.ops import squared_difference +from openvino.opsets.opset1.ops import squeeze +from openvino.opsets.opset1.ops import strided_slice +from openvino.opsets.opset1.ops import subtract +from openvino.opsets.opset1.ops import tan +from openvino.opsets.opset1.ops import tanh +from openvino.opsets.opset1.ops import tensor_iterator +from openvino.opsets.opset1.ops import tile +from openvino.opsets.opset1.ops import topk +from openvino.opsets.opset1.ops import transpose +from openvino.opsets.opset1.ops import unsqueeze +from openvino.opsets.opset1.ops import variadic_split diff --git a/src/bindings/python/src/openvino/opsets/opset2/ops.py b/src/bindings/python/src/openvino/opsets/opset2/ops.py index 287232d114c6bc..16d5c3db6650a0 100644 --- a/src/bindings/python/src/openvino/opsets/opset2/ops.py +++ b/src/bindings/python/src/openvino/opsets/opset2/ops.py @@ -9,18 +9,18 @@ from functools import partial import warnings -from openvino.runtime import Node, Shape -from openvino.runtime.op import Constant, Parameter -from openvino.runtime.opset_utils import _get_node_factory -from openvino.runtime.utils.decorators import binary_op, nameable_op, unary_op -from openvino.runtime.utils.input_validation import ( +from openvino._pyopenvino import Node, Shape +from openvino.opsets.op import Constant, Parameter +from openvino.opsets.opset_utils import _get_node_factory +from openvino.utils.decorators import binary_op, nameable_op, unary_op +from openvino.utils.input_validation import ( assert_list_of_ints, check_valid_attributes, is_non_negative_value, is_positive_value, ) -from openvino.runtime.utils.node_factory import NodeFactory -from openvino.runtime.utils.types import ( +from openvino.utils.node_factory import NodeFactory +from openvino.utils.types import ( NodeInput, NumericData, NumericType, diff --git a/src/bindings/python/src/openvino/opsets/opset3/__init__.py b/src/bindings/python/src/openvino/opsets/opset3/__init__.py index 964acb15b34bbc..19d3197ccb46ff 100644 --- a/src/bindings/python/src/openvino/opsets/opset3/__init__.py +++ b/src/bindings/python/src/openvino/opsets/opset3/__init__.py @@ -2,133 +2,133 @@ # Copyright (C) 2018-2024 Intel Corporation # SPDX-License-Identifier: Apache-2.0 -from openvino.runtime.opset1.ops import absolute -from openvino.runtime.opset1.ops import absolute as abs -from openvino.runtime.opset1.ops import acos -from openvino.runtime.opset1.ops import add -from openvino.runtime.opset1.ops import asin -from openvino.runtime.opset3.ops import assign -from openvino.runtime.opset1.ops import atan -from openvino.runtime.opset1.ops import avg_pool -from openvino.runtime.opset1.ops import batch_norm_inference -from openvino.runtime.opset2.ops import batch_to_space -from openvino.runtime.opset1.ops import binary_convolution -from openvino.runtime.opset3.ops import broadcast -from openvino.runtime.opset3.ops import bucketize -from openvino.runtime.opset1.ops import ceiling -from openvino.runtime.opset1.ops import ceiling as ceil -from openvino.runtime.opset1.ops import clamp -from openvino.runtime.opset1.ops import concat -from openvino.runtime.opset1.ops import constant -from openvino.runtime.opset1.ops import convert -from openvino.runtime.opset1.ops import convert_like -from openvino.runtime.opset1.ops import convolution -from openvino.runtime.opset1.ops import convolution_backprop_data -from openvino.runtime.opset1.ops import cos -from openvino.runtime.opset1.ops import cosh -from openvino.runtime.opset1.ops import ctc_greedy_decoder -from openvino.runtime.opset3.ops import cum_sum -from openvino.runtime.opset3.ops import cum_sum as cumsum -from openvino.runtime.opset1.ops import deformable_convolution -from openvino.runtime.opset1.ops import deformable_psroi_pooling -from openvino.runtime.opset1.ops import depth_to_space -from openvino.runtime.opset1.ops import detection_output -from openvino.runtime.opset1.ops import divide -from openvino.runtime.opset1.ops import elu -from openvino.runtime.opset3.ops import embedding_bag_offsets_sum -from openvino.runtime.opset3.ops import embedding_bag_packed_sum -from openvino.runtime.opset3.ops import embedding_segments_sum -from openvino.runtime.opset3.ops import extract_image_patches -from openvino.runtime.opset1.ops import equal -from openvino.runtime.opset1.ops import erf -from openvino.runtime.opset1.ops import exp -from openvino.runtime.opset1.ops import fake_quantize -from openvino.runtime.opset1.ops import floor -from openvino.runtime.opset1.ops import floor_mod -from openvino.runtime.opset1.ops import gather -from openvino.runtime.opset1.ops import gather_tree -from openvino.runtime.opset2.ops import gelu -from openvino.runtime.opset1.ops import greater -from openvino.runtime.opset1.ops import greater_equal -from openvino.runtime.opset1.ops import grn -from openvino.runtime.opset1.ops import group_convolution -from openvino.runtime.opset1.ops import group_convolution_backprop_data -from openvino.runtime.opset3.ops import gru_cell -from openvino.runtime.opset1.ops import hard_sigmoid -from openvino.runtime.opset1.ops import interpolate -from openvino.runtime.opset1.ops import less -from openvino.runtime.opset1.ops import less_equal -from openvino.runtime.opset1.ops import log -from openvino.runtime.opset1.ops import logical_and -from openvino.runtime.opset1.ops import logical_not -from openvino.runtime.opset1.ops import logical_or -from openvino.runtime.opset1.ops import logical_xor -from openvino.runtime.opset1.ops import lrn -from openvino.runtime.opset1.ops import lstm_cell -from openvino.runtime.opset1.ops import lstm_sequence -from openvino.runtime.opset1.ops import matmul -from openvino.runtime.opset1.ops import max_pool -from openvino.runtime.opset1.ops import maximum -from openvino.runtime.opset1.ops import minimum -from openvino.runtime.opset1.ops import mod -from openvino.runtime.opset1.ops import multiply -from openvino.runtime.opset2.ops import mvn -from openvino.runtime.opset1.ops import negative -from openvino.runtime.opset3.ops import non_max_suppression -from openvino.runtime.opset3.ops import non_zero -from openvino.runtime.opset1.ops import normalize_l2 -from openvino.runtime.opset1.ops import not_equal -from openvino.runtime.opset1.ops import one_hot -from openvino.runtime.opset1.ops import pad -from openvino.runtime.opset1.ops import parameter -from openvino.runtime.opset1.ops import power -from openvino.runtime.opset1.ops import prelu -from openvino.runtime.opset1.ops import prior_box -from openvino.runtime.opset1.ops import prior_box_clustered -from openvino.runtime.opset1.ops import psroi_pooling -from openvino.runtime.opset1.ops import proposal -from openvino.runtime.opset1.ops import range -from openvino.runtime.opset3.ops import read_value -from openvino.runtime.opset1.ops import reduce_logical_and -from openvino.runtime.opset1.ops import reduce_logical_or -from openvino.runtime.opset1.ops import reduce_max -from openvino.runtime.opset1.ops import reduce_mean -from openvino.runtime.opset1.ops import reduce_min -from openvino.runtime.opset1.ops import reduce_prod -from openvino.runtime.opset1.ops import reduce_sum -from openvino.runtime.opset1.ops import region_yolo -from openvino.runtime.opset2.ops import reorg_yolo -from openvino.runtime.opset1.ops import relu -from openvino.runtime.opset1.ops import reshape -from openvino.runtime.opset1.ops import result -from openvino.runtime.opset1.ops import reverse_sequence -from openvino.runtime.opset3.ops import rnn_cell -from openvino.runtime.opset3.ops import roi_align -from openvino.runtime.opset2.ops import roi_pooling -from openvino.runtime.opset3.ops import scatter_elements_update -from openvino.runtime.opset3.ops import scatter_update -from openvino.runtime.opset1.ops import select -from openvino.runtime.opset1.ops import selu -from openvino.runtime.opset3.ops import shape_of -from openvino.runtime.opset3.ops import shuffle_channels -from openvino.runtime.opset1.ops import sigmoid -from openvino.runtime.opset1.ops import sign -from openvino.runtime.opset1.ops import sin -from openvino.runtime.opset1.ops import sinh -from openvino.runtime.opset1.ops import softmax -from openvino.runtime.opset2.ops import space_to_batch -from openvino.runtime.opset1.ops import space_to_depth -from openvino.runtime.opset1.ops import split -from openvino.runtime.opset1.ops import sqrt -from openvino.runtime.opset1.ops import squared_difference -from openvino.runtime.opset1.ops import squeeze -from openvino.runtime.opset1.ops import strided_slice -from openvino.runtime.opset1.ops import subtract -from openvino.runtime.opset1.ops import tan -from openvino.runtime.opset1.ops import tanh -from openvino.runtime.opset1.ops import tensor_iterator -from openvino.runtime.opset1.ops import tile -from openvino.runtime.opset3.ops import topk -from openvino.runtime.opset1.ops import transpose -from openvino.runtime.opset1.ops import unsqueeze -from openvino.runtime.opset1.ops import variadic_split +from openvino.opsets.opset1.ops import absolute +from openvino.opsets.opset1.ops import absolute as abs +from openvino.opsets.opset1.ops import acos +from openvino.opsets.opset1.ops import add +from openvino.opsets.opset1.ops import asin +from openvino.opsets.opset3.ops import assign +from openvino.opsets.opset1.ops import atan +from openvino.opsets.opset1.ops import avg_pool +from openvino.opsets.opset1.ops import batch_norm_inference +from openvino.opsets.opset2.ops import batch_to_space +from openvino.opsets.opset1.ops import binary_convolution +from openvino.opsets.opset3.ops import broadcast +from openvino.opsets.opset3.ops import bucketize +from openvino.opsets.opset1.ops import ceiling +from openvino.opsets.opset1.ops import ceiling as ceil +from openvino.opsets.opset1.ops import clamp +from openvino.opsets.opset1.ops import concat +from openvino.opsets.opset1.ops import constant +from openvino.opsets.opset1.ops import convert +from openvino.opsets.opset1.ops import convert_like +from openvino.opsets.opset1.ops import convolution +from openvino.opsets.opset1.ops import convolution_backprop_data +from openvino.opsets.opset1.ops import cos +from openvino.opsets.opset1.ops import cosh +from openvino.opsets.opset1.ops import ctc_greedy_decoder +from openvino.opsets.opset3.ops import cum_sum +from openvino.opsets.opset3.ops import cum_sum as cumsum +from openvino.opsets.opset1.ops import deformable_convolution +from openvino.opsets.opset1.ops import deformable_psroi_pooling +from openvino.opsets.opset1.ops import depth_to_space +from openvino.opsets.opset1.ops import detection_output +from openvino.opsets.opset1.ops import divide +from openvino.opsets.opset1.ops import elu +from openvino.opsets.opset3.ops import embedding_bag_offsets_sum +from openvino.opsets.opset3.ops import embedding_bag_packed_sum +from openvino.opsets.opset3.ops import embedding_segments_sum +from openvino.opsets.opset3.ops import extract_image_patches +from openvino.opsets.opset1.ops import equal +from openvino.opsets.opset1.ops import erf +from openvino.opsets.opset1.ops import exp +from openvino.opsets.opset1.ops import fake_quantize +from openvino.opsets.opset1.ops import floor +from openvino.opsets.opset1.ops import floor_mod +from openvino.opsets.opset1.ops import gather +from openvino.opsets.opset1.ops import gather_tree +from openvino.opsets.opset2.ops import gelu +from openvino.opsets.opset1.ops import greater +from openvino.opsets.opset1.ops import greater_equal +from openvino.opsets.opset1.ops import grn +from openvino.opsets.opset1.ops import group_convolution +from openvino.opsets.opset1.ops import group_convolution_backprop_data +from openvino.opsets.opset3.ops import gru_cell +from openvino.opsets.opset1.ops import hard_sigmoid +from openvino.opsets.opset1.ops import interpolate +from openvino.opsets.opset1.ops import less +from openvino.opsets.opset1.ops import less_equal +from openvino.opsets.opset1.ops import log +from openvino.opsets.opset1.ops import logical_and +from openvino.opsets.opset1.ops import logical_not +from openvino.opsets.opset1.ops import logical_or +from openvino.opsets.opset1.ops import logical_xor +from openvino.opsets.opset1.ops import lrn +from openvino.opsets.opset1.ops import lstm_cell +from openvino.opsets.opset1.ops import lstm_sequence +from openvino.opsets.opset1.ops import matmul +from openvino.opsets.opset1.ops import max_pool +from openvino.opsets.opset1.ops import maximum +from openvino.opsets.opset1.ops import minimum +from openvino.opsets.opset1.ops import mod +from openvino.opsets.opset1.ops import multiply +from openvino.opsets.opset2.ops import mvn +from openvino.opsets.opset1.ops import negative +from openvino.opsets.opset3.ops import non_max_suppression +from openvino.opsets.opset3.ops import non_zero +from openvino.opsets.opset1.ops import normalize_l2 +from openvino.opsets.opset1.ops import not_equal +from openvino.opsets.opset1.ops import one_hot +from openvino.opsets.opset1.ops import pad +from openvino.opsets.opset1.ops import parameter +from openvino.opsets.opset1.ops import power +from openvino.opsets.opset1.ops import prelu +from openvino.opsets.opset1.ops import prior_box +from openvino.opsets.opset1.ops import prior_box_clustered +from openvino.opsets.opset1.ops import psroi_pooling +from openvino.opsets.opset1.ops import proposal +from openvino.opsets.opset1.ops import range +from openvino.opsets.opset3.ops import read_value +from openvino.opsets.opset1.ops import reduce_logical_and +from openvino.opsets.opset1.ops import reduce_logical_or +from openvino.opsets.opset1.ops import reduce_max +from openvino.opsets.opset1.ops import reduce_mean +from openvino.opsets.opset1.ops import reduce_min +from openvino.opsets.opset1.ops import reduce_prod +from openvino.opsets.opset1.ops import reduce_sum +from openvino.opsets.opset1.ops import region_yolo +from openvino.opsets.opset2.ops import reorg_yolo +from openvino.opsets.opset1.ops import relu +from openvino.opsets.opset1.ops import reshape +from openvino.opsets.opset1.ops import result +from openvino.opsets.opset1.ops import reverse_sequence +from openvino.opsets.opset3.ops import rnn_cell +from openvino.opsets.opset3.ops import roi_align +from openvino.opsets.opset2.ops import roi_pooling +from openvino.opsets.opset3.ops import scatter_elements_update +from openvino.opsets.opset3.ops import scatter_update +from openvino.opsets.opset1.ops import select +from openvino.opsets.opset1.ops import selu +from openvino.opsets.opset3.ops import shape_of +from openvino.opsets.opset3.ops import shuffle_channels +from openvino.opsets.opset1.ops import sigmoid +from openvino.opsets.opset1.ops import sign +from openvino.opsets.opset1.ops import sin +from openvino.opsets.opset1.ops import sinh +from openvino.opsets.opset1.ops import softmax +from openvino.opsets.opset2.ops import space_to_batch +from openvino.opsets.opset1.ops import space_to_depth +from openvino.opsets.opset1.ops import split +from openvino.opsets.opset1.ops import sqrt +from openvino.opsets.opset1.ops import squared_difference +from openvino.opsets.opset1.ops import squeeze +from openvino.opsets.opset1.ops import strided_slice +from openvino.opsets.opset1.ops import subtract +from openvino.opsets.opset1.ops import tan +from openvino.opsets.opset1.ops import tanh +from openvino.opsets.opset1.ops import tensor_iterator +from openvino.opsets.opset1.ops import tile +from openvino.opsets.opset3.ops import topk +from openvino.opsets.opset1.ops import transpose +from openvino.opsets.opset1.ops import unsqueeze +from openvino.opsets.opset1.ops import variadic_split diff --git a/src/bindings/python/src/openvino/opsets/opset3/ops.py b/src/bindings/python/src/openvino/opsets/opset3/ops.py index d3403dbbbd2be8..dfb7ab8da45bb0 100644 --- a/src/bindings/python/src/openvino/opsets/opset3/ops.py +++ b/src/bindings/python/src/openvino/opsets/opset3/ops.py @@ -8,18 +8,18 @@ import numpy as np from functools import partial -from openvino.runtime import Node, Shape -from openvino.runtime.op import Constant, Parameter -from openvino.runtime.opset_utils import _get_node_factory -from openvino.runtime.utils.decorators import binary_op, nameable_op, unary_op -from openvino.runtime.utils.input_validation import ( +from openvino._pyopenvino import Node, Shape +from openvino.opsets.op import Constant, Parameter +from openvino.opsets.opset_utils import _get_node_factory +from openvino.utils.decorators import binary_op, nameable_op, unary_op +from openvino.utils.input_validation import ( assert_list_of_ints, check_valid_attributes, is_non_negative_value, is_positive_value, ) -from openvino.runtime.utils.node_factory import NodeFactory -from openvino.runtime.utils.types import ( +from openvino.utils.node_factory import NodeFactory +from openvino.utils.types import ( NodeInput, NumericData, NumericType, diff --git a/src/bindings/python/src/openvino/opsets/opset4/__init__.py b/src/bindings/python/src/openvino/opsets/opset4/__init__.py index bf57172bed40e2..b2622e41abeced 100644 --- a/src/bindings/python/src/openvino/opsets/opset4/__init__.py +++ b/src/bindings/python/src/openvino/opsets/opset4/__init__.py @@ -2,144 +2,144 @@ # Copyright (C) 2018-2024 Intel Corporation # SPDX-License-Identifier: Apache-2.0 -from openvino.runtime.opset1.ops import absolute -from openvino.runtime.opset1.ops import absolute as abs -from openvino.runtime.opset1.ops import acos -from openvino.runtime.opset4.ops import acosh -from openvino.runtime.opset1.ops import add -from openvino.runtime.opset1.ops import asin -from openvino.runtime.opset4.ops import asinh -from openvino.runtime.opset3.ops import assign -from openvino.runtime.opset1.ops import atan -from openvino.runtime.opset4.ops import atanh -from openvino.runtime.opset1.ops import avg_pool -from openvino.runtime.opset1.ops import batch_norm_inference -from openvino.runtime.opset2.ops import batch_to_space -from openvino.runtime.opset1.ops import binary_convolution -from openvino.runtime.opset3.ops import broadcast -from openvino.runtime.opset3.ops import bucketize -from openvino.runtime.opset1.ops import ceiling -from openvino.runtime.opset1.ops import ceiling as ceil -from openvino.runtime.opset1.ops import clamp -from openvino.runtime.opset1.ops import concat -from openvino.runtime.opset1.ops import constant -from openvino.runtime.opset1.ops import convert -from openvino.runtime.opset1.ops import convert_like -from openvino.runtime.opset1.ops import convolution -from openvino.runtime.opset1.ops import convolution_backprop_data -from openvino.runtime.opset1.ops import cos -from openvino.runtime.opset1.ops import cosh -from openvino.runtime.opset1.ops import ctc_greedy_decoder -from openvino.runtime.opset4.ops import ctc_loss -from openvino.runtime.opset3.ops import cum_sum -from openvino.runtime.opset3.ops import cum_sum as cumsum -from openvino.runtime.opset1.ops import deformable_convolution -from openvino.runtime.opset1.ops import deformable_psroi_pooling -from openvino.runtime.opset1.ops import depth_to_space -from openvino.runtime.opset1.ops import detection_output -from openvino.runtime.opset1.ops import divide -from openvino.runtime.opset1.ops import elu -from openvino.runtime.opset3.ops import embedding_bag_offsets_sum -from openvino.runtime.opset3.ops import embedding_bag_packed_sum -from openvino.runtime.opset3.ops import embedding_segments_sum -from openvino.runtime.opset3.ops import extract_image_patches -from openvino.runtime.opset1.ops import equal -from openvino.runtime.opset1.ops import erf -from openvino.runtime.opset1.ops import exp -from openvino.runtime.opset1.ops import fake_quantize -from openvino.runtime.opset1.ops import floor -from openvino.runtime.opset1.ops import floor_mod -from openvino.runtime.opset1.ops import gather -from openvino.runtime.opset1.ops import gather_tree -from openvino.runtime.opset2.ops import gelu -from openvino.runtime.opset1.ops import greater -from openvino.runtime.opset1.ops import greater_equal -from openvino.runtime.opset1.ops import grn -from openvino.runtime.opset1.ops import group_convolution -from openvino.runtime.opset1.ops import group_convolution_backprop_data -from openvino.runtime.opset3.ops import gru_cell -from openvino.runtime.opset1.ops import hard_sigmoid -from openvino.runtime.opset4.ops import hswish -from openvino.runtime.opset1.ops import interpolate -from openvino.runtime.opset1.ops import less -from openvino.runtime.opset1.ops import less_equal -from openvino.runtime.opset1.ops import log -from openvino.runtime.opset1.ops import logical_and -from openvino.runtime.opset1.ops import logical_not -from openvino.runtime.opset1.ops import logical_or -from openvino.runtime.opset1.ops import logical_xor -from openvino.runtime.opset1.ops import lrn -from openvino.runtime.opset4.ops import lstm_cell -from openvino.runtime.opset1.ops import lstm_sequence -from openvino.runtime.opset1.ops import matmul -from openvino.runtime.opset1.ops import max_pool -from openvino.runtime.opset1.ops import maximum -from openvino.runtime.opset1.ops import minimum -from openvino.runtime.opset4.ops import mish -from openvino.runtime.opset1.ops import mod -from openvino.runtime.opset1.ops import multiply -from openvino.runtime.opset2.ops import mvn -from openvino.runtime.opset1.ops import negative -from openvino.runtime.opset4.ops import non_max_suppression -from openvino.runtime.opset3.ops import non_zero -from openvino.runtime.opset1.ops import normalize_l2 -from openvino.runtime.opset1.ops import not_equal -from openvino.runtime.opset1.ops import one_hot -from openvino.runtime.opset1.ops import pad -from openvino.runtime.opset1.ops import parameter -from openvino.runtime.opset1.ops import power -from openvino.runtime.opset1.ops import prelu -from openvino.runtime.opset1.ops import prior_box -from openvino.runtime.opset1.ops import prior_box_clustered -from openvino.runtime.opset1.ops import psroi_pooling -from openvino.runtime.opset4.ops import proposal -from openvino.runtime.opset1.ops import range -from openvino.runtime.opset3.ops import read_value -from openvino.runtime.opset4.ops import reduce_l1 -from openvino.runtime.opset4.ops import reduce_l2 -from openvino.runtime.opset1.ops import reduce_logical_and -from openvino.runtime.opset1.ops import reduce_logical_or -from openvino.runtime.opset1.ops import reduce_max -from openvino.runtime.opset1.ops import reduce_mean -from openvino.runtime.opset1.ops import reduce_min -from openvino.runtime.opset1.ops import reduce_prod -from openvino.runtime.opset1.ops import reduce_sum -from openvino.runtime.opset1.ops import region_yolo -from openvino.runtime.opset2.ops import reorg_yolo -from openvino.runtime.opset1.ops import relu -from openvino.runtime.opset1.ops import reshape -from openvino.runtime.opset1.ops import result -from openvino.runtime.opset1.ops import reverse_sequence -from openvino.runtime.opset3.ops import rnn_cell -from openvino.runtime.opset3.ops import roi_align -from openvino.runtime.opset2.ops import roi_pooling -from openvino.runtime.opset3.ops import scatter_elements_update -from openvino.runtime.opset4.ops import scatter_nd_update -from openvino.runtime.opset3.ops import scatter_update -from openvino.runtime.opset1.ops import select -from openvino.runtime.opset1.ops import selu -from openvino.runtime.opset3.ops import shape_of -from openvino.runtime.opset3.ops import shuffle_channels -from openvino.runtime.opset1.ops import sigmoid -from openvino.runtime.opset1.ops import sign -from openvino.runtime.opset1.ops import sin -from openvino.runtime.opset1.ops import sinh -from openvino.runtime.opset1.ops import softmax -from openvino.runtime.opset4.ops import softplus -from openvino.runtime.opset2.ops import space_to_batch -from openvino.runtime.opset1.ops import space_to_depth -from openvino.runtime.opset1.ops import split -from openvino.runtime.opset1.ops import sqrt -from openvino.runtime.opset1.ops import squared_difference -from openvino.runtime.opset1.ops import squeeze -from openvino.runtime.opset1.ops import strided_slice -from openvino.runtime.opset1.ops import subtract -from openvino.runtime.opset4.ops import swish -from openvino.runtime.opset1.ops import tan -from openvino.runtime.opset1.ops import tanh -from openvino.runtime.opset1.ops import tensor_iterator -from openvino.runtime.opset1.ops import tile -from openvino.runtime.opset3.ops import topk -from openvino.runtime.opset1.ops import transpose -from openvino.runtime.opset1.ops import unsqueeze -from openvino.runtime.opset1.ops import variadic_split +from openvino.opsets.opset1.ops import absolute +from openvino.opsets.opset1.ops import absolute as abs +from openvino.opsets.opset1.ops import acos +from openvino.opsets.opset4.ops import acosh +from openvino.opsets.opset1.ops import add +from openvino.opsets.opset1.ops import asin +from openvino.opsets.opset4.ops import asinh +from openvino.opsets.opset3.ops import assign +from openvino.opsets.opset1.ops import atan +from openvino.opsets.opset4.ops import atanh +from openvino.opsets.opset1.ops import avg_pool +from openvino.opsets.opset1.ops import batch_norm_inference +from openvino.opsets.opset2.ops import batch_to_space +from openvino.opsets.opset1.ops import binary_convolution +from openvino.opsets.opset3.ops import broadcast +from openvino.opsets.opset3.ops import bucketize +from openvino.opsets.opset1.ops import ceiling +from openvino.opsets.opset1.ops import ceiling as ceil +from openvino.opsets.opset1.ops import clamp +from openvino.opsets.opset1.ops import concat +from openvino.opsets.opset1.ops import constant +from openvino.opsets.opset1.ops import convert +from openvino.opsets.opset1.ops import convert_like +from openvino.opsets.opset1.ops import convolution +from openvino.opsets.opset1.ops import convolution_backprop_data +from openvino.opsets.opset1.ops import cos +from openvino.opsets.opset1.ops import cosh +from openvino.opsets.opset1.ops import ctc_greedy_decoder +from openvino.opsets.opset4.ops import ctc_loss +from openvino.opsets.opset3.ops import cum_sum +from openvino.opsets.opset3.ops import cum_sum as cumsum +from openvino.opsets.opset1.ops import deformable_convolution +from openvino.opsets.opset1.ops import deformable_psroi_pooling +from openvino.opsets.opset1.ops import depth_to_space +from openvino.opsets.opset1.ops import detection_output +from openvino.opsets.opset1.ops import divide +from openvino.opsets.opset1.ops import elu +from openvino.opsets.opset3.ops import embedding_bag_offsets_sum +from openvino.opsets.opset3.ops import embedding_bag_packed_sum +from openvino.opsets.opset3.ops import embedding_segments_sum +from openvino.opsets.opset3.ops import extract_image_patches +from openvino.opsets.opset1.ops import equal +from openvino.opsets.opset1.ops import erf +from openvino.opsets.opset1.ops import exp +from openvino.opsets.opset1.ops import fake_quantize +from openvino.opsets.opset1.ops import floor +from openvino.opsets.opset1.ops import floor_mod +from openvino.opsets.opset1.ops import gather +from openvino.opsets.opset1.ops import gather_tree +from openvino.opsets.opset2.ops import gelu +from openvino.opsets.opset1.ops import greater +from openvino.opsets.opset1.ops import greater_equal +from openvino.opsets.opset1.ops import grn +from openvino.opsets.opset1.ops import group_convolution +from openvino.opsets.opset1.ops import group_convolution_backprop_data +from openvino.opsets.opset3.ops import gru_cell +from openvino.opsets.opset1.ops import hard_sigmoid +from openvino.opsets.opset4.ops import hswish +from openvino.opsets.opset1.ops import interpolate +from openvino.opsets.opset1.ops import less +from openvino.opsets.opset1.ops import less_equal +from openvino.opsets.opset1.ops import log +from openvino.opsets.opset1.ops import logical_and +from openvino.opsets.opset1.ops import logical_not +from openvino.opsets.opset1.ops import logical_or +from openvino.opsets.opset1.ops import logical_xor +from openvino.opsets.opset1.ops import lrn +from openvino.opsets.opset4.ops import lstm_cell +from openvino.opsets.opset1.ops import lstm_sequence +from openvino.opsets.opset1.ops import matmul +from openvino.opsets.opset1.ops import max_pool +from openvino.opsets.opset1.ops import maximum +from openvino.opsets.opset1.ops import minimum +from openvino.opsets.opset4.ops import mish +from openvino.opsets.opset1.ops import mod +from openvino.opsets.opset1.ops import multiply +from openvino.opsets.opset2.ops import mvn +from openvino.opsets.opset1.ops import negative +from openvino.opsets.opset4.ops import non_max_suppression +from openvino.opsets.opset3.ops import non_zero +from openvino.opsets.opset1.ops import normalize_l2 +from openvino.opsets.opset1.ops import not_equal +from openvino.opsets.opset1.ops import one_hot +from openvino.opsets.opset1.ops import pad +from openvino.opsets.opset1.ops import parameter +from openvino.opsets.opset1.ops import power +from openvino.opsets.opset1.ops import prelu +from openvino.opsets.opset1.ops import prior_box +from openvino.opsets.opset1.ops import prior_box_clustered +from openvino.opsets.opset1.ops import psroi_pooling +from openvino.opsets.opset4.ops import proposal +from openvino.opsets.opset1.ops import range +from openvino.opsets.opset3.ops import read_value +from openvino.opsets.opset4.ops import reduce_l1 +from openvino.opsets.opset4.ops import reduce_l2 +from openvino.opsets.opset1.ops import reduce_logical_and +from openvino.opsets.opset1.ops import reduce_logical_or +from openvino.opsets.opset1.ops import reduce_max +from openvino.opsets.opset1.ops import reduce_mean +from openvino.opsets.opset1.ops import reduce_min +from openvino.opsets.opset1.ops import reduce_prod +from openvino.opsets.opset1.ops import reduce_sum +from openvino.opsets.opset1.ops import region_yolo +from openvino.opsets.opset2.ops import reorg_yolo +from openvino.opsets.opset1.ops import relu +from openvino.opsets.opset1.ops import reshape +from openvino.opsets.opset1.ops import result +from openvino.opsets.opset1.ops import reverse_sequence +from openvino.opsets.opset3.ops import rnn_cell +from openvino.opsets.opset3.ops import roi_align +from openvino.opsets.opset2.ops import roi_pooling +from openvino.opsets.opset3.ops import scatter_elements_update +from openvino.opsets.opset4.ops import scatter_nd_update +from openvino.opsets.opset3.ops import scatter_update +from openvino.opsets.opset1.ops import select +from openvino.opsets.opset1.ops import selu +from openvino.opsets.opset3.ops import shape_of +from openvino.opsets.opset3.ops import shuffle_channels +from openvino.opsets.opset1.ops import sigmoid +from openvino.opsets.opset1.ops import sign +from openvino.opsets.opset1.ops import sin +from openvino.opsets.opset1.ops import sinh +from openvino.opsets.opset1.ops import softmax +from openvino.opsets.opset4.ops import softplus +from openvino.opsets.opset2.ops import space_to_batch +from openvino.opsets.opset1.ops import space_to_depth +from openvino.opsets.opset1.ops import split +from openvino.opsets.opset1.ops import sqrt +from openvino.opsets.opset1.ops import squared_difference +from openvino.opsets.opset1.ops import squeeze +from openvino.opsets.opset1.ops import strided_slice +from openvino.opsets.opset1.ops import subtract +from openvino.opsets.opset4.ops import swish +from openvino.opsets.opset1.ops import tan +from openvino.opsets.opset1.ops import tanh +from openvino.opsets.opset1.ops import tensor_iterator +from openvino.opsets.opset1.ops import tile +from openvino.opsets.opset3.ops import topk +from openvino.opsets.opset1.ops import transpose +from openvino.opsets.opset1.ops import unsqueeze +from openvino.opsets.opset1.ops import variadic_split diff --git a/src/bindings/python/src/openvino/opsets/opset4/ops.py b/src/bindings/python/src/openvino/opsets/opset4/ops.py index dce4879bdb38f6..1685f39cd85771 100644 --- a/src/bindings/python/src/openvino/opsets/opset4/ops.py +++ b/src/bindings/python/src/openvino/opsets/opset4/ops.py @@ -8,18 +8,18 @@ import numpy as np from functools import partial -from openvino.runtime import Node, Shape -from openvino.runtime.op import Constant, Parameter -from openvino.runtime.opset_utils import _get_node_factory -from openvino.runtime.utils.decorators import binary_op, nameable_op, unary_op -from openvino.runtime.utils.input_validation import ( +from openvino._pyopenvino import Node, Shape +from openvino.opsets.op import Constant, Parameter +from openvino.opsets.opset_utils import _get_node_factory +from openvino.utils.decorators import binary_op, nameable_op, unary_op +from openvino.utils.input_validation import ( assert_list_of_ints, check_valid_attributes, is_non_negative_value, is_positive_value, ) -from openvino.runtime.utils.node_factory import NodeFactory -from openvino.runtime.utils.types import ( +from openvino.utils.node_factory import NodeFactory +from openvino.utils.types import ( NodeInput, NumericData, NumericType, diff --git a/src/bindings/python/src/openvino/opsets/opset5/__init__.py b/src/bindings/python/src/openvino/opsets/opset5/__init__.py index 6d68b3e8d9f9cb..ccc63e375ba5e2 100644 --- a/src/bindings/python/src/openvino/opsets/opset5/__init__.py +++ b/src/bindings/python/src/openvino/opsets/opset5/__init__.py @@ -2,151 +2,151 @@ # Copyright (C) 2018-2024 Intel Corporation # SPDX-License-Identifier: Apache-2.0 -from openvino.runtime.opset1.ops import absolute -from openvino.runtime.opset1.ops import absolute as abs -from openvino.runtime.opset1.ops import acos -from openvino.runtime.opset4.ops import acosh -from openvino.runtime.opset1.ops import add -from openvino.runtime.opset1.ops import asin -from openvino.runtime.opset4.ops import asinh -from openvino.runtime.opset3.ops import assign -from openvino.runtime.opset1.ops import atan -from openvino.runtime.opset4.ops import atanh -from openvino.runtime.opset1.ops import avg_pool -from openvino.runtime.opset5.ops import batch_norm_inference -from openvino.runtime.opset2.ops import batch_to_space -from openvino.runtime.opset1.ops import binary_convolution -from openvino.runtime.opset3.ops import broadcast -from openvino.runtime.opset3.ops import bucketize -from openvino.runtime.opset1.ops import ceiling -from openvino.runtime.opset1.ops import ceiling as ceil -from openvino.runtime.opset1.ops import clamp -from openvino.runtime.opset1.ops import concat -from openvino.runtime.opset1.ops import constant -from openvino.runtime.opset1.ops import convert -from openvino.runtime.opset1.ops import convert_like -from openvino.runtime.opset1.ops import convolution -from openvino.runtime.opset1.ops import convolution_backprop_data -from openvino.runtime.opset1.ops import cos -from openvino.runtime.opset1.ops import cosh -from openvino.runtime.opset1.ops import ctc_greedy_decoder -from openvino.runtime.opset4.ops import ctc_loss -from openvino.runtime.opset3.ops import cum_sum -from openvino.runtime.opset3.ops import cum_sum as cumsum -from openvino.runtime.opset1.ops import deformable_convolution -from openvino.runtime.opset1.ops import deformable_psroi_pooling -from openvino.runtime.opset1.ops import depth_to_space -from openvino.runtime.opset1.ops import detection_output -from openvino.runtime.opset1.ops import divide -from openvino.runtime.opset1.ops import elu -from openvino.runtime.opset3.ops import embedding_bag_offsets_sum -from openvino.runtime.opset3.ops import embedding_bag_packed_sum -from openvino.runtime.opset3.ops import embedding_segments_sum -from openvino.runtime.opset3.ops import extract_image_patches -from openvino.runtime.opset1.ops import equal -from openvino.runtime.opset1.ops import erf -from openvino.runtime.opset1.ops import exp -from openvino.runtime.opset1.ops import fake_quantize -from openvino.runtime.opset1.ops import floor -from openvino.runtime.opset1.ops import floor_mod -from openvino.runtime.opset1.ops import gather -from openvino.runtime.opset5.ops import gather_nd -from openvino.runtime.opset1.ops import gather_tree -from openvino.runtime.opset2.ops import gelu -from openvino.runtime.opset1.ops import greater -from openvino.runtime.opset1.ops import greater_equal -from openvino.runtime.opset1.ops import grn -from openvino.runtime.opset1.ops import group_convolution -from openvino.runtime.opset1.ops import group_convolution_backprop_data -from openvino.runtime.opset3.ops import gru_cell -from openvino.runtime.opset5.ops import gru_sequence -from openvino.runtime.opset1.ops import hard_sigmoid -from openvino.runtime.opset5.ops import hsigmoid -from openvino.runtime.opset4.ops import hswish -from openvino.runtime.opset1.ops import interpolate -from openvino.runtime.opset1.ops import less -from openvino.runtime.opset1.ops import less_equal -from openvino.runtime.opset1.ops import log -from openvino.runtime.opset1.ops import logical_and -from openvino.runtime.opset1.ops import logical_not -from openvino.runtime.opset1.ops import logical_or -from openvino.runtime.opset1.ops import logical_xor -from openvino.runtime.opset5.ops import log_softmax -from openvino.runtime.opset5.ops import loop -from openvino.runtime.opset1.ops import lrn -from openvino.runtime.opset4.ops import lstm_cell -from openvino.runtime.opset5.ops import lstm_sequence -from openvino.runtime.opset1.ops import matmul -from openvino.runtime.opset1.ops import max_pool -from openvino.runtime.opset1.ops import maximum -from openvino.runtime.opset1.ops import minimum -from openvino.runtime.opset4.ops import mish -from openvino.runtime.opset1.ops import mod -from openvino.runtime.opset1.ops import multiply -from openvino.runtime.opset2.ops import mvn -from openvino.runtime.opset1.ops import negative -from openvino.runtime.opset5.ops import non_max_suppression -from openvino.runtime.opset3.ops import non_zero -from openvino.runtime.opset1.ops import normalize_l2 -from openvino.runtime.opset1.ops import not_equal -from openvino.runtime.opset1.ops import one_hot -from openvino.runtime.opset1.ops import pad -from openvino.runtime.opset1.ops import parameter -from openvino.runtime.opset1.ops import power -from openvino.runtime.opset1.ops import prelu -from openvino.runtime.opset1.ops import prior_box -from openvino.runtime.opset1.ops import prior_box_clustered -from openvino.runtime.opset1.ops import psroi_pooling -from openvino.runtime.opset4.ops import proposal -from openvino.runtime.opset1.ops import range -from openvino.runtime.opset3.ops import read_value -from openvino.runtime.opset4.ops import reduce_l1 -from openvino.runtime.opset4.ops import reduce_l2 -from openvino.runtime.opset1.ops import reduce_logical_and -from openvino.runtime.opset1.ops import reduce_logical_or -from openvino.runtime.opset1.ops import reduce_max -from openvino.runtime.opset1.ops import reduce_mean -from openvino.runtime.opset1.ops import reduce_min -from openvino.runtime.opset1.ops import reduce_prod -from openvino.runtime.opset1.ops import reduce_sum -from openvino.runtime.opset1.ops import region_yolo -from openvino.runtime.opset2.ops import reorg_yolo -from openvino.runtime.opset1.ops import relu -from openvino.runtime.opset1.ops import reshape -from openvino.runtime.opset1.ops import result -from openvino.runtime.opset1.ops import reverse_sequence -from openvino.runtime.opset3.ops import rnn_cell -from openvino.runtime.opset5.ops import rnn_sequence -from openvino.runtime.opset3.ops import roi_align -from openvino.runtime.opset2.ops import roi_pooling -from openvino.runtime.opset5.ops import round -from openvino.runtime.opset3.ops import scatter_elements_update -from openvino.runtime.opset4.ops import scatter_nd_update -from openvino.runtime.opset3.ops import scatter_update -from openvino.runtime.opset1.ops import select -from openvino.runtime.opset1.ops import selu -from openvino.runtime.opset3.ops import shape_of -from openvino.runtime.opset3.ops import shuffle_channels -from openvino.runtime.opset1.ops import sigmoid -from openvino.runtime.opset1.ops import sign -from openvino.runtime.opset1.ops import sin -from openvino.runtime.opset1.ops import sinh -from openvino.runtime.opset1.ops import softmax -from openvino.runtime.opset4.ops import softplus -from openvino.runtime.opset2.ops import space_to_batch -from openvino.runtime.opset1.ops import space_to_depth -from openvino.runtime.opset1.ops import split -from openvino.runtime.opset1.ops import sqrt -from openvino.runtime.opset1.ops import squared_difference -from openvino.runtime.opset1.ops import squeeze -from openvino.runtime.opset1.ops import strided_slice -from openvino.runtime.opset1.ops import subtract -from openvino.runtime.opset4.ops import swish -from openvino.runtime.opset1.ops import tan -from openvino.runtime.opset1.ops import tanh -from openvino.runtime.opset1.ops import tensor_iterator -from openvino.runtime.opset1.ops import tile -from openvino.runtime.opset3.ops import topk -from openvino.runtime.opset1.ops import transpose -from openvino.runtime.opset1.ops import unsqueeze -from openvino.runtime.opset1.ops import variadic_split +from openvino.opsets.opset1.ops import absolute +from openvino.opsets.opset1.ops import absolute as abs +from openvino.opsets.opset1.ops import acos +from openvino.opsets.opset4.ops import acosh +from openvino.opsets.opset1.ops import add +from openvino.opsets.opset1.ops import asin +from openvino.opsets.opset4.ops import asinh +from openvino.opsets.opset3.ops import assign +from openvino.opsets.opset1.ops import atan +from openvino.opsets.opset4.ops import atanh +from openvino.opsets.opset1.ops import avg_pool +from openvino.opsets.opset5.ops import batch_norm_inference +from openvino.opsets.opset2.ops import batch_to_space +from openvino.opsets.opset1.ops import binary_convolution +from openvino.opsets.opset3.ops import broadcast +from openvino.opsets.opset3.ops import bucketize +from openvino.opsets.opset1.ops import ceiling +from openvino.opsets.opset1.ops import ceiling as ceil +from openvino.opsets.opset1.ops import clamp +from openvino.opsets.opset1.ops import concat +from openvino.opsets.opset1.ops import constant +from openvino.opsets.opset1.ops import convert +from openvino.opsets.opset1.ops import convert_like +from openvino.opsets.opset1.ops import convolution +from openvino.opsets.opset1.ops import convolution_backprop_data +from openvino.opsets.opset1.ops import cos +from openvino.opsets.opset1.ops import cosh +from openvino.opsets.opset1.ops import ctc_greedy_decoder +from openvino.opsets.opset4.ops import ctc_loss +from openvino.opsets.opset3.ops import cum_sum +from openvino.opsets.opset3.ops import cum_sum as cumsum +from openvino.opsets.opset1.ops import deformable_convolution +from openvino.opsets.opset1.ops import deformable_psroi_pooling +from openvino.opsets.opset1.ops import depth_to_space +from openvino.opsets.opset1.ops import detection_output +from openvino.opsets.opset1.ops import divide +from openvino.opsets.opset1.ops import elu +from openvino.opsets.opset3.ops import embedding_bag_offsets_sum +from openvino.opsets.opset3.ops import embedding_bag_packed_sum +from openvino.opsets.opset3.ops import embedding_segments_sum +from openvino.opsets.opset3.ops import extract_image_patches +from openvino.opsets.opset1.ops import equal +from openvino.opsets.opset1.ops import erf +from openvino.opsets.opset1.ops import exp +from openvino.opsets.opset1.ops import fake_quantize +from openvino.opsets.opset1.ops import floor +from openvino.opsets.opset1.ops import floor_mod +from openvino.opsets.opset1.ops import gather +from openvino.opsets.opset5.ops import gather_nd +from openvino.opsets.opset1.ops import gather_tree +from openvino.opsets.opset2.ops import gelu +from openvino.opsets.opset1.ops import greater +from openvino.opsets.opset1.ops import greater_equal +from openvino.opsets.opset1.ops import grn +from openvino.opsets.opset1.ops import group_convolution +from openvino.opsets.opset1.ops import group_convolution_backprop_data +from openvino.opsets.opset3.ops import gru_cell +from openvino.opsets.opset5.ops import gru_sequence +from openvino.opsets.opset1.ops import hard_sigmoid +from openvino.opsets.opset5.ops import hsigmoid +from openvino.opsets.opset4.ops import hswish +from openvino.opsets.opset1.ops import interpolate +from openvino.opsets.opset1.ops import less +from openvino.opsets.opset1.ops import less_equal +from openvino.opsets.opset1.ops import log +from openvino.opsets.opset1.ops import logical_and +from openvino.opsets.opset1.ops import logical_not +from openvino.opsets.opset1.ops import logical_or +from openvino.opsets.opset1.ops import logical_xor +from openvino.opsets.opset5.ops import log_softmax +from openvino.opsets.opset5.ops import loop +from openvino.opsets.opset1.ops import lrn +from openvino.opsets.opset4.ops import lstm_cell +from openvino.opsets.opset5.ops import lstm_sequence +from openvino.opsets.opset1.ops import matmul +from openvino.opsets.opset1.ops import max_pool +from openvino.opsets.opset1.ops import maximum +from openvino.opsets.opset1.ops import minimum +from openvino.opsets.opset4.ops import mish +from openvino.opsets.opset1.ops import mod +from openvino.opsets.opset1.ops import multiply +from openvino.opsets.opset2.ops import mvn +from openvino.opsets.opset1.ops import negative +from openvino.opsets.opset5.ops import non_max_suppression +from openvino.opsets.opset3.ops import non_zero +from openvino.opsets.opset1.ops import normalize_l2 +from openvino.opsets.opset1.ops import not_equal +from openvino.opsets.opset1.ops import one_hot +from openvino.opsets.opset1.ops import pad +from openvino.opsets.opset1.ops import parameter +from openvino.opsets.opset1.ops import power +from openvino.opsets.opset1.ops import prelu +from openvino.opsets.opset1.ops import prior_box +from openvino.opsets.opset1.ops import prior_box_clustered +from openvino.opsets.opset1.ops import psroi_pooling +from openvino.opsets.opset4.ops import proposal +from openvino.opsets.opset1.ops import range +from openvino.opsets.opset3.ops import read_value +from openvino.opsets.opset4.ops import reduce_l1 +from openvino.opsets.opset4.ops import reduce_l2 +from openvino.opsets.opset1.ops import reduce_logical_and +from openvino.opsets.opset1.ops import reduce_logical_or +from openvino.opsets.opset1.ops import reduce_max +from openvino.opsets.opset1.ops import reduce_mean +from openvino.opsets.opset1.ops import reduce_min +from openvino.opsets.opset1.ops import reduce_prod +from openvino.opsets.opset1.ops import reduce_sum +from openvino.opsets.opset1.ops import region_yolo +from openvino.opsets.opset2.ops import reorg_yolo +from openvino.opsets.opset1.ops import relu +from openvino.opsets.opset1.ops import reshape +from openvino.opsets.opset1.ops import result +from openvino.opsets.opset1.ops import reverse_sequence +from openvino.opsets.opset3.ops import rnn_cell +from openvino.opsets.opset5.ops import rnn_sequence +from openvino.opsets.opset3.ops import roi_align +from openvino.opsets.opset2.ops import roi_pooling +from openvino.opsets.opset5.ops import round +from openvino.opsets.opset3.ops import scatter_elements_update +from openvino.opsets.opset4.ops import scatter_nd_update +from openvino.opsets.opset3.ops import scatter_update +from openvino.opsets.opset1.ops import select +from openvino.opsets.opset1.ops import selu +from openvino.opsets.opset3.ops import shape_of +from openvino.opsets.opset3.ops import shuffle_channels +from openvino.opsets.opset1.ops import sigmoid +from openvino.opsets.opset1.ops import sign +from openvino.opsets.opset1.ops import sin +from openvino.opsets.opset1.ops import sinh +from openvino.opsets.opset1.ops import softmax +from openvino.opsets.opset4.ops import softplus +from openvino.opsets.opset2.ops import space_to_batch +from openvino.opsets.opset1.ops import space_to_depth +from openvino.opsets.opset1.ops import split +from openvino.opsets.opset1.ops import sqrt +from openvino.opsets.opset1.ops import squared_difference +from openvino.opsets.opset1.ops import squeeze +from openvino.opsets.opset1.ops import strided_slice +from openvino.opsets.opset1.ops import subtract +from openvino.opsets.opset4.ops import swish +from openvino.opsets.opset1.ops import tan +from openvino.opsets.opset1.ops import tanh +from openvino.opsets.opset1.ops import tensor_iterator +from openvino.opsets.opset1.ops import tile +from openvino.opsets.opset3.ops import topk +from openvino.opsets.opset1.ops import transpose +from openvino.opsets.opset1.ops import unsqueeze +from openvino.opsets.opset1.ops import variadic_split diff --git a/src/bindings/python/src/openvino/opsets/opset5/ops.py b/src/bindings/python/src/openvino/opsets/opset5/ops.py index 11e05aa1b7bcb4..ff1276586dbbb3 100644 --- a/src/bindings/python/src/openvino/opsets/opset5/ops.py +++ b/src/bindings/python/src/openvino/opsets/opset5/ops.py @@ -8,18 +8,18 @@ import numpy as np from functools import partial -from openvino.runtime import Node, Shape -from openvino.runtime.op import Constant, Parameter, loop -from openvino.runtime.opset_utils import _get_node_factory -from openvino.runtime.utils.decorators import binary_op, nameable_op, unary_op -from openvino.runtime.utils.input_validation import ( +from openvino._pyopenvino import Node, Shape +from openvino.opsets.op import Constant, Parameter, loop +from openvino.opsets.opset_utils import _get_node_factory +from openvino.utils.decorators import binary_op, nameable_op, unary_op +from openvino.utils.input_validation import ( assert_list_of_ints, check_valid_attributes, is_non_negative_value, is_positive_value, ) -from openvino.runtime.utils.node_factory import NodeFactory -from openvino.runtime.utils.types import ( +from openvino.utils.node_factory import NodeFactory +from openvino.utils.types import ( NodeInput, NumericData, NumericType, diff --git a/src/bindings/python/src/openvino/opsets/opset6/__init__.py b/src/bindings/python/src/openvino/opsets/opset6/__init__.py index 2b2babb00c5021..15e2871a18030e 100644 --- a/src/bindings/python/src/openvino/opsets/opset6/__init__.py +++ b/src/bindings/python/src/openvino/opsets/opset6/__init__.py @@ -2,153 +2,153 @@ # Copyright (C) 2018-2024 Intel Corporation # SPDX-License-Identifier: Apache-2.0 -from openvino.runtime.opset1.ops import absolute -from openvino.runtime.opset1.ops import absolute as abs -from openvino.runtime.opset1.ops import acos -from openvino.runtime.opset4.ops import acosh -from openvino.runtime.opset1.ops import add -from openvino.runtime.opset1.ops import asin -from openvino.runtime.opset4.ops import asinh -from openvino.runtime.opset6.ops import assign -from openvino.runtime.opset1.ops import atan -from openvino.runtime.opset4.ops import atanh -from openvino.runtime.opset1.ops import avg_pool -from openvino.runtime.opset5.ops import batch_norm_inference -from openvino.runtime.opset2.ops import batch_to_space -from openvino.runtime.opset1.ops import binary_convolution -from openvino.runtime.opset3.ops import broadcast -from openvino.runtime.opset3.ops import bucketize -from openvino.runtime.opset1.ops import ceiling -from openvino.runtime.opset1.ops import ceiling as ceil -from openvino.runtime.opset1.ops import clamp -from openvino.runtime.opset1.ops import concat -from openvino.runtime.opset1.ops import constant -from openvino.runtime.opset1.ops import convert -from openvino.runtime.opset1.ops import convert_like -from openvino.runtime.opset1.ops import convolution -from openvino.runtime.opset1.ops import convolution_backprop_data -from openvino.runtime.opset1.ops import cos -from openvino.runtime.opset1.ops import cosh -from openvino.runtime.opset1.ops import ctc_greedy_decoder -from openvino.runtime.opset6.ops import ctc_greedy_decoder_seq_len -from openvino.runtime.opset4.ops import ctc_loss -from openvino.runtime.opset3.ops import cum_sum -from openvino.runtime.opset3.ops import cum_sum as cumsum -from openvino.runtime.opset1.ops import deformable_convolution -from openvino.runtime.opset1.ops import deformable_psroi_pooling -from openvino.runtime.opset1.ops import depth_to_space -from openvino.runtime.opset1.ops import detection_output -from openvino.runtime.opset1.ops import divide -from openvino.runtime.opset1.ops import elu -from openvino.runtime.opset3.ops import embedding_bag_offsets_sum -from openvino.runtime.opset3.ops import embedding_bag_packed_sum -from openvino.runtime.opset3.ops import embedding_segments_sum -from openvino.runtime.opset3.ops import extract_image_patches -from openvino.runtime.opset1.ops import equal -from openvino.runtime.opset1.ops import erf -from openvino.runtime.opset1.ops import exp -from openvino.runtime.opset1.ops import fake_quantize -from openvino.runtime.opset1.ops import floor -from openvino.runtime.opset1.ops import floor_mod -from openvino.runtime.opset1.ops import gather -from openvino.runtime.opset6.ops import gather_elements -from openvino.runtime.opset5.ops import gather_nd -from openvino.runtime.opset1.ops import gather_tree -from openvino.runtime.opset2.ops import gelu -from openvino.runtime.opset1.ops import greater -from openvino.runtime.opset1.ops import greater_equal -from openvino.runtime.opset1.ops import grn -from openvino.runtime.opset1.ops import group_convolution -from openvino.runtime.opset1.ops import group_convolution_backprop_data -from openvino.runtime.opset3.ops import gru_cell -from openvino.runtime.opset5.ops import gru_sequence -from openvino.runtime.opset1.ops import hard_sigmoid -from openvino.runtime.opset5.ops import hsigmoid -from openvino.runtime.opset4.ops import hswish -from openvino.runtime.opset1.ops import interpolate -from openvino.runtime.opset1.ops import less -from openvino.runtime.opset1.ops import less_equal -from openvino.runtime.opset1.ops import log -from openvino.runtime.opset1.ops import logical_and -from openvino.runtime.opset1.ops import logical_not -from openvino.runtime.opset1.ops import logical_or -from openvino.runtime.opset1.ops import logical_xor -from openvino.runtime.opset5.ops import log_softmax -from openvino.runtime.opset5.ops import loop -from openvino.runtime.opset1.ops import lrn -from openvino.runtime.opset4.ops import lstm_cell -from openvino.runtime.opset5.ops import lstm_sequence -from openvino.runtime.opset1.ops import matmul -from openvino.runtime.opset1.ops import max_pool -from openvino.runtime.opset1.ops import maximum -from openvino.runtime.opset1.ops import minimum -from openvino.runtime.opset4.ops import mish -from openvino.runtime.opset1.ops import mod -from openvino.runtime.opset1.ops import multiply -from openvino.runtime.opset6.ops import mvn -from openvino.runtime.opset1.ops import negative -from openvino.runtime.opset5.ops import non_max_suppression -from openvino.runtime.opset3.ops import non_zero -from openvino.runtime.opset1.ops import normalize_l2 -from openvino.runtime.opset1.ops import not_equal -from openvino.runtime.opset1.ops import one_hot -from openvino.runtime.opset1.ops import pad -from openvino.runtime.opset1.ops import parameter -from openvino.runtime.opset1.ops import power -from openvino.runtime.opset1.ops import prelu -from openvino.runtime.opset1.ops import prior_box -from openvino.runtime.opset1.ops import prior_box_clustered -from openvino.runtime.opset1.ops import psroi_pooling -from openvino.runtime.opset4.ops import proposal -from openvino.runtime.opset1.ops import range -from openvino.runtime.opset6.ops import read_value -from openvino.runtime.opset4.ops import reduce_l1 -from openvino.runtime.opset4.ops import reduce_l2 -from openvino.runtime.opset1.ops import reduce_logical_and -from openvino.runtime.opset1.ops import reduce_logical_or -from openvino.runtime.opset1.ops import reduce_max -from openvino.runtime.opset1.ops import reduce_mean -from openvino.runtime.opset1.ops import reduce_min -from openvino.runtime.opset1.ops import reduce_prod -from openvino.runtime.opset1.ops import reduce_sum -from openvino.runtime.opset1.ops import region_yolo -from openvino.runtime.opset2.ops import reorg_yolo -from openvino.runtime.opset1.ops import relu -from openvino.runtime.opset1.ops import reshape -from openvino.runtime.opset1.ops import result -from openvino.runtime.opset1.ops import reverse_sequence -from openvino.runtime.opset3.ops import rnn_cell -from openvino.runtime.opset5.ops import rnn_sequence -from openvino.runtime.opset3.ops import roi_align -from openvino.runtime.opset2.ops import roi_pooling -from openvino.runtime.opset5.ops import round -from openvino.runtime.opset3.ops import scatter_elements_update -from openvino.runtime.opset4.ops import scatter_nd_update -from openvino.runtime.opset3.ops import scatter_update -from openvino.runtime.opset1.ops import select -from openvino.runtime.opset1.ops import selu -from openvino.runtime.opset3.ops import shape_of -from openvino.runtime.opset3.ops import shuffle_channels -from openvino.runtime.opset1.ops import sigmoid -from openvino.runtime.opset1.ops import sign -from openvino.runtime.opset1.ops import sin -from openvino.runtime.opset1.ops import sinh -from openvino.runtime.opset1.ops import softmax -from openvino.runtime.opset4.ops import softplus -from openvino.runtime.opset2.ops import space_to_batch -from openvino.runtime.opset1.ops import space_to_depth -from openvino.runtime.opset1.ops import split -from openvino.runtime.opset1.ops import sqrt -from openvino.runtime.opset1.ops import squared_difference -from openvino.runtime.opset1.ops import squeeze -from openvino.runtime.opset1.ops import strided_slice -from openvino.runtime.opset1.ops import subtract -from openvino.runtime.opset4.ops import swish -from openvino.runtime.opset1.ops import tan -from openvino.runtime.opset1.ops import tanh -from openvino.runtime.opset1.ops import tensor_iterator -from openvino.runtime.opset1.ops import tile -from openvino.runtime.opset3.ops import topk -from openvino.runtime.opset1.ops import transpose -from openvino.runtime.opset1.ops import unsqueeze -from openvino.runtime.opset1.ops import variadic_split +from openvino.opsets.opset1.ops import absolute +from openvino.opsets.opset1.ops import absolute as abs +from openvino.opsets.opset1.ops import acos +from openvino.opsets.opset4.ops import acosh +from openvino.opsets.opset1.ops import add +from openvino.opsets.opset1.ops import asin +from openvino.opsets.opset4.ops import asinh +from openvino.opsets.opset6.ops import assign +from openvino.opsets.opset1.ops import atan +from openvino.opsets.opset4.ops import atanh +from openvino.opsets.opset1.ops import avg_pool +from openvino.opsets.opset5.ops import batch_norm_inference +from openvino.opsets.opset2.ops import batch_to_space +from openvino.opsets.opset1.ops import binary_convolution +from openvino.opsets.opset3.ops import broadcast +from openvino.opsets.opset3.ops import bucketize +from openvino.opsets.opset1.ops import ceiling +from openvino.opsets.opset1.ops import ceiling as ceil +from openvino.opsets.opset1.ops import clamp +from openvino.opsets.opset1.ops import concat +from openvino.opsets.opset1.ops import constant +from openvino.opsets.opset1.ops import convert +from openvino.opsets.opset1.ops import convert_like +from openvino.opsets.opset1.ops import convolution +from openvino.opsets.opset1.ops import convolution_backprop_data +from openvino.opsets.opset1.ops import cos +from openvino.opsets.opset1.ops import cosh +from openvino.opsets.opset1.ops import ctc_greedy_decoder +from openvino.opsets.opset6.ops import ctc_greedy_decoder_seq_len +from openvino.opsets.opset4.ops import ctc_loss +from openvino.opsets.opset3.ops import cum_sum +from openvino.opsets.opset3.ops import cum_sum as cumsum +from openvino.opsets.opset1.ops import deformable_convolution +from openvino.opsets.opset1.ops import deformable_psroi_pooling +from openvino.opsets.opset1.ops import depth_to_space +from openvino.opsets.opset1.ops import detection_output +from openvino.opsets.opset1.ops import divide +from openvino.opsets.opset1.ops import elu +from openvino.opsets.opset3.ops import embedding_bag_offsets_sum +from openvino.opsets.opset3.ops import embedding_bag_packed_sum +from openvino.opsets.opset3.ops import embedding_segments_sum +from openvino.opsets.opset3.ops import extract_image_patches +from openvino.opsets.opset1.ops import equal +from openvino.opsets.opset1.ops import erf +from openvino.opsets.opset1.ops import exp +from openvino.opsets.opset1.ops import fake_quantize +from openvino.opsets.opset1.ops import floor +from openvino.opsets.opset1.ops import floor_mod +from openvino.opsets.opset1.ops import gather +from openvino.opsets.opset6.ops import gather_elements +from openvino.opsets.opset5.ops import gather_nd +from openvino.opsets.opset1.ops import gather_tree +from openvino.opsets.opset2.ops import gelu +from openvino.opsets.opset1.ops import greater +from openvino.opsets.opset1.ops import greater_equal +from openvino.opsets.opset1.ops import grn +from openvino.opsets.opset1.ops import group_convolution +from openvino.opsets.opset1.ops import group_convolution_backprop_data +from openvino.opsets.opset3.ops import gru_cell +from openvino.opsets.opset5.ops import gru_sequence +from openvino.opsets.opset1.ops import hard_sigmoid +from openvino.opsets.opset5.ops import hsigmoid +from openvino.opsets.opset4.ops import hswish +from openvino.opsets.opset1.ops import interpolate +from openvino.opsets.opset1.ops import less +from openvino.opsets.opset1.ops import less_equal +from openvino.opsets.opset1.ops import log +from openvino.opsets.opset1.ops import logical_and +from openvino.opsets.opset1.ops import logical_not +from openvino.opsets.opset1.ops import logical_or +from openvino.opsets.opset1.ops import logical_xor +from openvino.opsets.opset5.ops import log_softmax +from openvino.opsets.opset5.ops import loop +from openvino.opsets.opset1.ops import lrn +from openvino.opsets.opset4.ops import lstm_cell +from openvino.opsets.opset5.ops import lstm_sequence +from openvino.opsets.opset1.ops import matmul +from openvino.opsets.opset1.ops import max_pool +from openvino.opsets.opset1.ops import maximum +from openvino.opsets.opset1.ops import minimum +from openvino.opsets.opset4.ops import mish +from openvino.opsets.opset1.ops import mod +from openvino.opsets.opset1.ops import multiply +from openvino.opsets.opset6.ops import mvn +from openvino.opsets.opset1.ops import negative +from openvino.opsets.opset5.ops import non_max_suppression +from openvino.opsets.opset3.ops import non_zero +from openvino.opsets.opset1.ops import normalize_l2 +from openvino.opsets.opset1.ops import not_equal +from openvino.opsets.opset1.ops import one_hot +from openvino.opsets.opset1.ops import pad +from openvino.opsets.opset1.ops import parameter +from openvino.opsets.opset1.ops import power +from openvino.opsets.opset1.ops import prelu +from openvino.opsets.opset1.ops import prior_box +from openvino.opsets.opset1.ops import prior_box_clustered +from openvino.opsets.opset1.ops import psroi_pooling +from openvino.opsets.opset4.ops import proposal +from openvino.opsets.opset1.ops import range +from openvino.opsets.opset6.ops import read_value +from openvino.opsets.opset4.ops import reduce_l1 +from openvino.opsets.opset4.ops import reduce_l2 +from openvino.opsets.opset1.ops import reduce_logical_and +from openvino.opsets.opset1.ops import reduce_logical_or +from openvino.opsets.opset1.ops import reduce_max +from openvino.opsets.opset1.ops import reduce_mean +from openvino.opsets.opset1.ops import reduce_min +from openvino.opsets.opset1.ops import reduce_prod +from openvino.opsets.opset1.ops import reduce_sum +from openvino.opsets.opset1.ops import region_yolo +from openvino.opsets.opset2.ops import reorg_yolo +from openvino.opsets.opset1.ops import relu +from openvino.opsets.opset1.ops import reshape +from openvino.opsets.opset1.ops import result +from openvino.opsets.opset1.ops import reverse_sequence +from openvino.opsets.opset3.ops import rnn_cell +from openvino.opsets.opset5.ops import rnn_sequence +from openvino.opsets.opset3.ops import roi_align +from openvino.opsets.opset2.ops import roi_pooling +from openvino.opsets.opset5.ops import round +from openvino.opsets.opset3.ops import scatter_elements_update +from openvino.opsets.opset4.ops import scatter_nd_update +from openvino.opsets.opset3.ops import scatter_update +from openvino.opsets.opset1.ops import select +from openvino.opsets.opset1.ops import selu +from openvino.opsets.opset3.ops import shape_of +from openvino.opsets.opset3.ops import shuffle_channels +from openvino.opsets.opset1.ops import sigmoid +from openvino.opsets.opset1.ops import sign +from openvino.opsets.opset1.ops import sin +from openvino.opsets.opset1.ops import sinh +from openvino.opsets.opset1.ops import softmax +from openvino.opsets.opset4.ops import softplus +from openvino.opsets.opset2.ops import space_to_batch +from openvino.opsets.opset1.ops import space_to_depth +from openvino.opsets.opset1.ops import split +from openvino.opsets.opset1.ops import sqrt +from openvino.opsets.opset1.ops import squared_difference +from openvino.opsets.opset1.ops import squeeze +from openvino.opsets.opset1.ops import strided_slice +from openvino.opsets.opset1.ops import subtract +from openvino.opsets.opset4.ops import swish +from openvino.opsets.opset1.ops import tan +from openvino.opsets.opset1.ops import tanh +from openvino.opsets.opset1.ops import tensor_iterator +from openvino.opsets.opset1.ops import tile +from openvino.opsets.opset3.ops import topk +from openvino.opsets.opset1.ops import transpose +from openvino.opsets.opset1.ops import unsqueeze +from openvino.opsets.opset1.ops import variadic_split diff --git a/src/bindings/python/src/openvino/opsets/opset6/ops.py b/src/bindings/python/src/openvino/opsets/opset6/ops.py index 3209d7a8a53c99..2dcb29b145f2b2 100644 --- a/src/bindings/python/src/openvino/opsets/opset6/ops.py +++ b/src/bindings/python/src/openvino/opsets/opset6/ops.py @@ -9,13 +9,13 @@ from functools import partial, singledispatch -from openvino.runtime import Node, Type, PartialShape, Output, Shape -from openvino.runtime.op import assign, Constant, Parameter -from openvino.runtime.op import read_value as _read_value -from openvino.runtime.op.util import VariableInfo, Variable -from openvino.runtime.opset_utils import _get_node_factory -from openvino.runtime.utils.decorators import nameable_op, overloading -from openvino.runtime.utils.types import ( +from openvino._pyopenvino import Node, Type, PartialShape, Output, Shape +from openvino.opsets.op import assign, Constant, Parameter +from openvino.opsets.op import read_value as _read_value +from openvino.opsets.op.util import VariableInfo, Variable +from openvino.opsets.opset_utils import _get_node_factory +from openvino.utils.decorators import nameable_op, overloading +from openvino.utils.types import ( NodeInput, NumericType, TensorShape, diff --git a/src/bindings/python/src/openvino/opsets/opset7/__init__.py b/src/bindings/python/src/openvino/opsets/opset7/__init__.py index 9ee692cea75f59..dd77fa9d18c0bd 100644 --- a/src/bindings/python/src/openvino/opsets/opset7/__init__.py +++ b/src/bindings/python/src/openvino/opsets/opset7/__init__.py @@ -2,157 +2,157 @@ # Copyright (C) 2018-2024 Intel Corporation # SPDX-License-Identifier: Apache-2.0 -from openvino.runtime.opset1.ops import absolute -from openvino.runtime.opset1.ops import absolute as abs -from openvino.runtime.opset1.ops import acos -from openvino.runtime.opset4.ops import acosh -from openvino.runtime.opset1.ops import add -from openvino.runtime.opset1.ops import asin -from openvino.runtime.opset4.ops import asinh -from openvino.runtime.opset6.ops import assign -from openvino.runtime.opset1.ops import atan -from openvino.runtime.opset4.ops import atanh -from openvino.runtime.opset1.ops import avg_pool -from openvino.runtime.opset5.ops import batch_norm_inference -from openvino.runtime.opset2.ops import batch_to_space -from openvino.runtime.opset1.ops import binary_convolution -from openvino.runtime.opset3.ops import broadcast -from openvino.runtime.opset3.ops import bucketize -from openvino.runtime.opset1.ops import ceiling -from openvino.runtime.opset1.ops import ceiling as ceil -from openvino.runtime.opset1.ops import clamp -from openvino.runtime.opset1.ops import concat -from openvino.runtime.opset1.ops import constant -from openvino.runtime.opset1.ops import convert -from openvino.runtime.opset1.ops import convert_like -from openvino.runtime.opset1.ops import convolution -from openvino.runtime.opset1.ops import convolution_backprop_data -from openvino.runtime.opset1.ops import cos -from openvino.runtime.opset1.ops import cosh -from openvino.runtime.opset1.ops import ctc_greedy_decoder -from openvino.runtime.opset6.ops import ctc_greedy_decoder_seq_len -from openvino.runtime.opset4.ops import ctc_loss -from openvino.runtime.opset3.ops import cum_sum -from openvino.runtime.opset3.ops import cum_sum as cumsum -from openvino.runtime.opset1.ops import deformable_convolution -from openvino.runtime.opset1.ops import deformable_psroi_pooling -from openvino.runtime.opset1.ops import depth_to_space -from openvino.runtime.opset1.ops import detection_output -from openvino.runtime.opset7.ops import dft -from openvino.runtime.opset1.ops import divide -from openvino.runtime.opset7.ops import einsum -from openvino.runtime.opset1.ops import elu -from openvino.runtime.opset3.ops import embedding_bag_offsets_sum -from openvino.runtime.opset3.ops import embedding_bag_packed_sum -from openvino.runtime.opset3.ops import embedding_segments_sum -from openvino.runtime.opset3.ops import extract_image_patches -from openvino.runtime.opset1.ops import equal -from openvino.runtime.opset1.ops import erf -from openvino.runtime.opset1.ops import exp -from openvino.runtime.opset1.ops import fake_quantize -from openvino.runtime.opset1.ops import floor -from openvino.runtime.opset1.ops import floor_mod -from openvino.runtime.opset7.ops import gather -from openvino.runtime.opset6.ops import gather_elements -from openvino.runtime.opset5.ops import gather_nd -from openvino.runtime.opset1.ops import gather_tree -from openvino.runtime.opset7.ops import gelu -from openvino.runtime.opset1.ops import greater -from openvino.runtime.opset1.ops import greater_equal -from openvino.runtime.opset1.ops import grn -from openvino.runtime.opset1.ops import group_convolution -from openvino.runtime.opset1.ops import group_convolution_backprop_data -from openvino.runtime.opset3.ops import gru_cell -from openvino.runtime.opset5.ops import gru_sequence -from openvino.runtime.opset1.ops import hard_sigmoid -from openvino.runtime.opset5.ops import hsigmoid -from openvino.runtime.opset4.ops import hswish -from openvino.runtime.opset7.ops import idft -from openvino.runtime.opset1.ops import interpolate -from openvino.runtime.opset1.ops import less -from openvino.runtime.opset1.ops import less_equal -from openvino.runtime.opset1.ops import log -from openvino.runtime.opset1.ops import logical_and -from openvino.runtime.opset1.ops import logical_not -from openvino.runtime.opset1.ops import logical_or -from openvino.runtime.opset1.ops import logical_xor -from openvino.runtime.opset5.ops import log_softmax -from openvino.runtime.opset5.ops import loop -from openvino.runtime.opset1.ops import lrn -from openvino.runtime.opset4.ops import lstm_cell -from openvino.runtime.opset5.ops import lstm_sequence -from openvino.runtime.opset1.ops import matmul -from openvino.runtime.opset1.ops import max_pool -from openvino.runtime.opset1.ops import maximum -from openvino.runtime.opset1.ops import minimum -from openvino.runtime.opset4.ops import mish -from openvino.runtime.opset1.ops import mod -from openvino.runtime.opset1.ops import multiply -from openvino.runtime.opset6.ops import mvn -from openvino.runtime.opset1.ops import negative -from openvino.runtime.opset5.ops import non_max_suppression -from openvino.runtime.opset3.ops import non_zero -from openvino.runtime.opset1.ops import normalize_l2 -from openvino.runtime.opset1.ops import not_equal -from openvino.runtime.opset1.ops import one_hot -from openvino.runtime.opset1.ops import pad -from openvino.runtime.opset1.ops import parameter -from openvino.runtime.opset1.ops import power -from openvino.runtime.opset1.ops import prelu -from openvino.runtime.opset1.ops import prior_box -from openvino.runtime.opset1.ops import prior_box_clustered -from openvino.runtime.opset1.ops import psroi_pooling -from openvino.runtime.opset4.ops import proposal -from openvino.runtime.opset1.ops import range -from openvino.runtime.opset6.ops import read_value -from openvino.runtime.opset4.ops import reduce_l1 -from openvino.runtime.opset4.ops import reduce_l2 -from openvino.runtime.opset1.ops import reduce_logical_and -from openvino.runtime.opset1.ops import reduce_logical_or -from openvino.runtime.opset1.ops import reduce_max -from openvino.runtime.opset1.ops import reduce_mean -from openvino.runtime.opset1.ops import reduce_min -from openvino.runtime.opset1.ops import reduce_prod -from openvino.runtime.opset1.ops import reduce_sum -from openvino.runtime.opset1.ops import region_yolo -from openvino.runtime.opset2.ops import reorg_yolo -from openvino.runtime.opset1.ops import relu -from openvino.runtime.opset1.ops import reshape -from openvino.runtime.opset1.ops import result -from openvino.runtime.opset1.ops import reverse_sequence -from openvino.runtime.opset3.ops import rnn_cell -from openvino.runtime.opset5.ops import rnn_sequence -from openvino.runtime.opset3.ops import roi_align -from openvino.runtime.opset2.ops import roi_pooling -from openvino.runtime.opset7.ops import roll -from openvino.runtime.opset5.ops import round -from openvino.runtime.opset3.ops import scatter_elements_update -from openvino.runtime.opset4.ops import scatter_nd_update -from openvino.runtime.opset3.ops import scatter_update -from openvino.runtime.opset1.ops import select -from openvino.runtime.opset1.ops import selu -from openvino.runtime.opset3.ops import shape_of -from openvino.runtime.opset3.ops import shuffle_channels -from openvino.runtime.opset1.ops import sigmoid -from openvino.runtime.opset1.ops import sign -from openvino.runtime.opset1.ops import sin -from openvino.runtime.opset1.ops import sinh -from openvino.runtime.opset1.ops import softmax -from openvino.runtime.opset4.ops import softplus -from openvino.runtime.opset2.ops import space_to_batch -from openvino.runtime.opset1.ops import space_to_depth -from openvino.runtime.opset1.ops import split -from openvino.runtime.opset1.ops import sqrt -from openvino.runtime.opset1.ops import squared_difference -from openvino.runtime.opset1.ops import squeeze -from openvino.runtime.opset1.ops import strided_slice -from openvino.runtime.opset1.ops import subtract -from openvino.runtime.opset4.ops import swish -from openvino.runtime.opset1.ops import tan -from openvino.runtime.opset1.ops import tanh -from openvino.runtime.opset1.ops import tensor_iterator -from openvino.runtime.opset1.ops import tile -from openvino.runtime.opset3.ops import topk -from openvino.runtime.opset1.ops import transpose -from openvino.runtime.opset1.ops import unsqueeze -from openvino.runtime.opset1.ops import variadic_split +from openvino.opsets.opset1.ops import absolute +from openvino.opsets.opset1.ops import absolute as abs +from openvino.opsets.opset1.ops import acos +from openvino.opsets.opset4.ops import acosh +from openvino.opsets.opset1.ops import add +from openvino.opsets.opset1.ops import asin +from openvino.opsets.opset4.ops import asinh +from openvino.opsets.opset6.ops import assign +from openvino.opsets.opset1.ops import atan +from openvino.opsets.opset4.ops import atanh +from openvino.opsets.opset1.ops import avg_pool +from openvino.opsets.opset5.ops import batch_norm_inference +from openvino.opsets.opset2.ops import batch_to_space +from openvino.opsets.opset1.ops import binary_convolution +from openvino.opsets.opset3.ops import broadcast +from openvino.opsets.opset3.ops import bucketize +from openvino.opsets.opset1.ops import ceiling +from openvino.opsets.opset1.ops import ceiling as ceil +from openvino.opsets.opset1.ops import clamp +from openvino.opsets.opset1.ops import concat +from openvino.opsets.opset1.ops import constant +from openvino.opsets.opset1.ops import convert +from openvino.opsets.opset1.ops import convert_like +from openvino.opsets.opset1.ops import convolution +from openvino.opsets.opset1.ops import convolution_backprop_data +from openvino.opsets.opset1.ops import cos +from openvino.opsets.opset1.ops import cosh +from openvino.opsets.opset1.ops import ctc_greedy_decoder +from openvino.opsets.opset6.ops import ctc_greedy_decoder_seq_len +from openvino.opsets.opset4.ops import ctc_loss +from openvino.opsets.opset3.ops import cum_sum +from openvino.opsets.opset3.ops import cum_sum as cumsum +from openvino.opsets.opset1.ops import deformable_convolution +from openvino.opsets.opset1.ops import deformable_psroi_pooling +from openvino.opsets.opset1.ops import depth_to_space +from openvino.opsets.opset1.ops import detection_output +from openvino.opsets.opset7.ops import dft +from openvino.opsets.opset1.ops import divide +from openvino.opsets.opset7.ops import einsum +from openvino.opsets.opset1.ops import elu +from openvino.opsets.opset3.ops import embedding_bag_offsets_sum +from openvino.opsets.opset3.ops import embedding_bag_packed_sum +from openvino.opsets.opset3.ops import embedding_segments_sum +from openvino.opsets.opset3.ops import extract_image_patches +from openvino.opsets.opset1.ops import equal +from openvino.opsets.opset1.ops import erf +from openvino.opsets.opset1.ops import exp +from openvino.opsets.opset1.ops import fake_quantize +from openvino.opsets.opset1.ops import floor +from openvino.opsets.opset1.ops import floor_mod +from openvino.opsets.opset7.ops import gather +from openvino.opsets.opset6.ops import gather_elements +from openvino.opsets.opset5.ops import gather_nd +from openvino.opsets.opset1.ops import gather_tree +from openvino.opsets.opset7.ops import gelu +from openvino.opsets.opset1.ops import greater +from openvino.opsets.opset1.ops import greater_equal +from openvino.opsets.opset1.ops import grn +from openvino.opsets.opset1.ops import group_convolution +from openvino.opsets.opset1.ops import group_convolution_backprop_data +from openvino.opsets.opset3.ops import gru_cell +from openvino.opsets.opset5.ops import gru_sequence +from openvino.opsets.opset1.ops import hard_sigmoid +from openvino.opsets.opset5.ops import hsigmoid +from openvino.opsets.opset4.ops import hswish +from openvino.opsets.opset7.ops import idft +from openvino.opsets.opset1.ops import interpolate +from openvino.opsets.opset1.ops import less +from openvino.opsets.opset1.ops import less_equal +from openvino.opsets.opset1.ops import log +from openvino.opsets.opset1.ops import logical_and +from openvino.opsets.opset1.ops import logical_not +from openvino.opsets.opset1.ops import logical_or +from openvino.opsets.opset1.ops import logical_xor +from openvino.opsets.opset5.ops import log_softmax +from openvino.opsets.opset5.ops import loop +from openvino.opsets.opset1.ops import lrn +from openvino.opsets.opset4.ops import lstm_cell +from openvino.opsets.opset5.ops import lstm_sequence +from openvino.opsets.opset1.ops import matmul +from openvino.opsets.opset1.ops import max_pool +from openvino.opsets.opset1.ops import maximum +from openvino.opsets.opset1.ops import minimum +from openvino.opsets.opset4.ops import mish +from openvino.opsets.opset1.ops import mod +from openvino.opsets.opset1.ops import multiply +from openvino.opsets.opset6.ops import mvn +from openvino.opsets.opset1.ops import negative +from openvino.opsets.opset5.ops import non_max_suppression +from openvino.opsets.opset3.ops import non_zero +from openvino.opsets.opset1.ops import normalize_l2 +from openvino.opsets.opset1.ops import not_equal +from openvino.opsets.opset1.ops import one_hot +from openvino.opsets.opset1.ops import pad +from openvino.opsets.opset1.ops import parameter +from openvino.opsets.opset1.ops import power +from openvino.opsets.opset1.ops import prelu +from openvino.opsets.opset1.ops import prior_box +from openvino.opsets.opset1.ops import prior_box_clustered +from openvino.opsets.opset1.ops import psroi_pooling +from openvino.opsets.opset4.ops import proposal +from openvino.opsets.opset1.ops import range +from openvino.opsets.opset6.ops import read_value +from openvino.opsets.opset4.ops import reduce_l1 +from openvino.opsets.opset4.ops import reduce_l2 +from openvino.opsets.opset1.ops import reduce_logical_and +from openvino.opsets.opset1.ops import reduce_logical_or +from openvino.opsets.opset1.ops import reduce_max +from openvino.opsets.opset1.ops import reduce_mean +from openvino.opsets.opset1.ops import reduce_min +from openvino.opsets.opset1.ops import reduce_prod +from openvino.opsets.opset1.ops import reduce_sum +from openvino.opsets.opset1.ops import region_yolo +from openvino.opsets.opset2.ops import reorg_yolo +from openvino.opsets.opset1.ops import relu +from openvino.opsets.opset1.ops import reshape +from openvino.opsets.opset1.ops import result +from openvino.opsets.opset1.ops import reverse_sequence +from openvino.opsets.opset3.ops import rnn_cell +from openvino.opsets.opset5.ops import rnn_sequence +from openvino.opsets.opset3.ops import roi_align +from openvino.opsets.opset2.ops import roi_pooling +from openvino.opsets.opset7.ops import roll +from openvino.opsets.opset5.ops import round +from openvino.opsets.opset3.ops import scatter_elements_update +from openvino.opsets.opset4.ops import scatter_nd_update +from openvino.opsets.opset3.ops import scatter_update +from openvino.opsets.opset1.ops import select +from openvino.opsets.opset1.ops import selu +from openvino.opsets.opset3.ops import shape_of +from openvino.opsets.opset3.ops import shuffle_channels +from openvino.opsets.opset1.ops import sigmoid +from openvino.opsets.opset1.ops import sign +from openvino.opsets.opset1.ops import sin +from openvino.opsets.opset1.ops import sinh +from openvino.opsets.opset1.ops import softmax +from openvino.opsets.opset4.ops import softplus +from openvino.opsets.opset2.ops import space_to_batch +from openvino.opsets.opset1.ops import space_to_depth +from openvino.opsets.opset1.ops import split +from openvino.opsets.opset1.ops import sqrt +from openvino.opsets.opset1.ops import squared_difference +from openvino.opsets.opset1.ops import squeeze +from openvino.opsets.opset1.ops import strided_slice +from openvino.opsets.opset1.ops import subtract +from openvino.opsets.opset4.ops import swish +from openvino.opsets.opset1.ops import tan +from openvino.opsets.opset1.ops import tanh +from openvino.opsets.opset1.ops import tensor_iterator +from openvino.opsets.opset1.ops import tile +from openvino.opsets.opset3.ops import topk +from openvino.opsets.opset1.ops import transpose +from openvino.opsets.opset1.ops import unsqueeze +from openvino.opsets.opset1.ops import variadic_split diff --git a/src/bindings/python/src/openvino/opsets/opset7/ops.py b/src/bindings/python/src/openvino/opsets/opset7/ops.py index 7cadaa42b80443..082c92578c21a1 100644 --- a/src/bindings/python/src/openvino/opsets/opset7/ops.py +++ b/src/bindings/python/src/openvino/opsets/opset7/ops.py @@ -7,18 +7,18 @@ from typing import Callable, Iterable, List, Optional, Set, Union import numpy as np -from openvino.runtime import Node, Shape -from openvino.runtime.op import Constant, Parameter -from openvino.runtime.opset_utils import _get_node_factory -from openvino.runtime.utils.decorators import binary_op, nameable_op, unary_op -from openvino.runtime.utils.input_validation import ( +from openvino._pyopenvino import Node, Shape +from openvino.opsets.op import Constant, Parameter +from openvino.opsets.opset_utils import _get_node_factory +from openvino.utils.decorators import binary_op, nameable_op, unary_op +from openvino.utils.input_validation import ( assert_list_of_ints, check_valid_attributes, is_non_negative_value, is_positive_value, ) -from openvino.runtime.utils.node_factory import NodeFactory -from openvino.runtime.utils.types import ( +from openvino.utils.node_factory import NodeFactory +from openvino.utils.types import ( NodeInput, NumericData, NumericType, diff --git a/src/bindings/python/src/openvino/opsets/opset8/__init__.py b/src/bindings/python/src/openvino/opsets/opset8/__init__.py index bf6be68ca0cbc6..642f9fcf3b48bc 100644 --- a/src/bindings/python/src/openvino/opsets/opset8/__init__.py +++ b/src/bindings/python/src/openvino/opsets/opset8/__init__.py @@ -2,168 +2,168 @@ # Copyright (C) 2018-2024 Intel Corporation # SPDX-License-Identifier: Apache-2.0 -from openvino.runtime.opset1.ops import absolute -from openvino.runtime.opset1.ops import absolute as abs -from openvino.runtime.opset1.ops import acos -from openvino.runtime.opset4.ops import acosh -from openvino.runtime.opset8.ops import adaptive_avg_pool -from openvino.runtime.opset8.ops import adaptive_max_pool -from openvino.runtime.opset1.ops import add -from openvino.runtime.opset1.ops import asin -from openvino.runtime.opset4.ops import asinh -from openvino.runtime.opset6.ops import assign -from openvino.runtime.opset1.ops import atan -from openvino.runtime.opset4.ops import atanh -from openvino.runtime.opset1.ops import avg_pool -from openvino.runtime.opset5.ops import batch_norm_inference -from openvino.runtime.opset2.ops import batch_to_space -from openvino.runtime.opset1.ops import binary_convolution -from openvino.runtime.opset3.ops import broadcast -from openvino.runtime.opset3.ops import bucketize -from openvino.runtime.opset1.ops import ceiling -from openvino.runtime.opset1.ops import ceiling as ceil -from openvino.runtime.opset1.ops import clamp -from openvino.runtime.opset1.ops import concat -from openvino.runtime.opset1.ops import constant -from openvino.runtime.opset1.ops import convert -from openvino.runtime.opset1.ops import convert_like -from openvino.runtime.opset1.ops import convolution -from openvino.runtime.opset1.ops import convolution_backprop_data -from openvino.runtime.opset1.ops import cos -from openvino.runtime.opset1.ops import cosh -from openvino.runtime.opset1.ops import ctc_greedy_decoder -from openvino.runtime.opset6.ops import ctc_greedy_decoder_seq_len -from openvino.runtime.opset4.ops import ctc_loss -from openvino.runtime.opset3.ops import cum_sum -from openvino.runtime.opset3.ops import cum_sum as cumsum -from openvino.runtime.opset8.ops import deformable_convolution -from openvino.runtime.opset1.ops import deformable_psroi_pooling -from openvino.runtime.opset1.ops import depth_to_space -from openvino.runtime.opset8.ops import detection_output -from openvino.runtime.opset7.ops import dft -from openvino.runtime.opset1.ops import divide -from openvino.runtime.opset7.ops import einsum -from openvino.runtime.opset1.ops import elu -from openvino.runtime.opset3.ops import embedding_bag_offsets_sum -from openvino.runtime.opset3.ops import embedding_bag_packed_sum -from openvino.runtime.opset3.ops import embedding_segments_sum -from openvino.runtime.opset3.ops import extract_image_patches -from openvino.runtime.opset1.ops import equal -from openvino.runtime.opset1.ops import erf -from openvino.runtime.opset1.ops import exp -from openvino.runtime.opset1.ops import fake_quantize -from openvino.runtime.opset1.ops import floor -from openvino.runtime.opset1.ops import floor_mod -from openvino.runtime.opset8.ops import gather -from openvino.runtime.opset6.ops import gather_elements -from openvino.runtime.opset8.ops import gather_nd -from openvino.runtime.opset1.ops import gather_tree -from openvino.runtime.opset7.ops import gelu -from openvino.runtime.opset1.ops import greater -from openvino.runtime.opset1.ops import greater_equal -from openvino.runtime.opset1.ops import grn -from openvino.runtime.opset1.ops import group_convolution -from openvino.runtime.opset1.ops import group_convolution_backprop_data -from openvino.runtime.opset3.ops import gru_cell -from openvino.runtime.opset5.ops import gru_sequence -from openvino.runtime.opset1.ops import hard_sigmoid -from openvino.runtime.opset5.ops import hsigmoid -from openvino.runtime.opset4.ops import hswish -from openvino.runtime.opset7.ops import idft -from openvino.runtime.opset8.ops import if_op -from openvino.runtime.opset1.ops import interpolate -from openvino.runtime.opset8.ops import i420_to_bgr -from openvino.runtime.opset8.ops import i420_to_rgb -from openvino.runtime.opset1.ops import less -from openvino.runtime.opset1.ops import less_equal -from openvino.runtime.opset1.ops import log -from openvino.runtime.opset1.ops import logical_and -from openvino.runtime.opset1.ops import logical_not -from openvino.runtime.opset1.ops import logical_or -from openvino.runtime.opset1.ops import logical_xor -from openvino.runtime.opset5.ops import log_softmax -from openvino.runtime.opset5.ops import loop -from openvino.runtime.opset1.ops import lrn -from openvino.runtime.opset4.ops import lstm_cell -from openvino.runtime.opset5.ops import lstm_sequence -from openvino.runtime.opset1.ops import matmul -from openvino.runtime.opset8.ops import matrix_nms -from openvino.runtime.opset8.ops import max_pool -from openvino.runtime.opset1.ops import maximum -from openvino.runtime.opset1.ops import minimum -from openvino.runtime.opset4.ops import mish -from openvino.runtime.opset1.ops import mod -from openvino.runtime.opset8.ops import multiclass_nms -from openvino.runtime.opset1.ops import multiply -from openvino.runtime.opset6.ops import mvn -from openvino.runtime.opset1.ops import negative -from openvino.runtime.opset5.ops import non_max_suppression -from openvino.runtime.opset3.ops import non_zero -from openvino.runtime.opset1.ops import normalize_l2 -from openvino.runtime.opset1.ops import not_equal -from openvino.runtime.opset8.ops import nv12_to_bgr -from openvino.runtime.opset8.ops import nv12_to_rgb -from openvino.runtime.opset1.ops import one_hot -from openvino.runtime.opset1.ops import pad -from openvino.runtime.opset1.ops import parameter -from openvino.runtime.opset1.ops import power -from openvino.runtime.opset1.ops import prelu -from openvino.runtime.opset8.ops import prior_box -from openvino.runtime.opset1.ops import prior_box_clustered -from openvino.runtime.opset1.ops import psroi_pooling -from openvino.runtime.opset4.ops import proposal -from openvino.runtime.opset1.ops import range -from openvino.runtime.opset8.ops import random_uniform -from openvino.runtime.opset6.ops import read_value -from openvino.runtime.opset4.ops import reduce_l1 -from openvino.runtime.opset4.ops import reduce_l2 -from openvino.runtime.opset1.ops import reduce_logical_and -from openvino.runtime.opset1.ops import reduce_logical_or -from openvino.runtime.opset1.ops import reduce_max -from openvino.runtime.opset1.ops import reduce_mean -from openvino.runtime.opset1.ops import reduce_min -from openvino.runtime.opset1.ops import reduce_prod -from openvino.runtime.opset1.ops import reduce_sum -from openvino.runtime.opset1.ops import region_yolo -from openvino.runtime.opset2.ops import reorg_yolo -from openvino.runtime.opset1.ops import relu -from openvino.runtime.opset1.ops import reshape -from openvino.runtime.opset1.ops import result -from openvino.runtime.opset1.ops import reverse_sequence -from openvino.runtime.opset3.ops import rnn_cell -from openvino.runtime.opset5.ops import rnn_sequence -from openvino.runtime.opset3.ops import roi_align -from openvino.runtime.opset2.ops import roi_pooling -from openvino.runtime.opset7.ops import roll -from openvino.runtime.opset5.ops import round -from openvino.runtime.opset3.ops import scatter_elements_update -from openvino.runtime.opset4.ops import scatter_nd_update -from openvino.runtime.opset3.ops import scatter_update -from openvino.runtime.opset1.ops import select -from openvino.runtime.opset1.ops import selu -from openvino.runtime.opset3.ops import shape_of -from openvino.runtime.opset3.ops import shuffle_channels -from openvino.runtime.opset1.ops import sigmoid -from openvino.runtime.opset1.ops import sign -from openvino.runtime.opset1.ops import sin -from openvino.runtime.opset1.ops import sinh -from openvino.runtime.opset8.ops import slice -from openvino.runtime.opset8.ops import softmax -from openvino.runtime.opset4.ops import softplus -from openvino.runtime.opset2.ops import space_to_batch -from openvino.runtime.opset1.ops import space_to_depth -from openvino.runtime.opset1.ops import split -from openvino.runtime.opset1.ops import sqrt -from openvino.runtime.opset1.ops import squared_difference -from openvino.runtime.opset1.ops import squeeze -from openvino.runtime.opset1.ops import strided_slice -from openvino.runtime.opset1.ops import subtract -from openvino.runtime.opset4.ops import swish -from openvino.runtime.opset1.ops import tan -from openvino.runtime.opset1.ops import tanh -from openvino.runtime.opset1.ops import tensor_iterator -from openvino.runtime.opset1.ops import tile -from openvino.runtime.opset3.ops import topk -from openvino.runtime.opset1.ops import transpose -from openvino.runtime.opset1.ops import unsqueeze -from openvino.runtime.opset1.ops import variadic_split +from openvino.opsets.opset1.ops import absolute +from openvino.opsets.opset1.ops import absolute as abs +from openvino.opsets.opset1.ops import acos +from openvino.opsets.opset4.ops import acosh +from openvino.opsets.opset8.ops import adaptive_avg_pool +from openvino.opsets.opset8.ops import adaptive_max_pool +from openvino.opsets.opset1.ops import add +from openvino.opsets.opset1.ops import asin +from openvino.opsets.opset4.ops import asinh +from openvino.opsets.opset6.ops import assign +from openvino.opsets.opset1.ops import atan +from openvino.opsets.opset4.ops import atanh +from openvino.opsets.opset1.ops import avg_pool +from openvino.opsets.opset5.ops import batch_norm_inference +from openvino.opsets.opset2.ops import batch_to_space +from openvino.opsets.opset1.ops import binary_convolution +from openvino.opsets.opset3.ops import broadcast +from openvino.opsets.opset3.ops import bucketize +from openvino.opsets.opset1.ops import ceiling +from openvino.opsets.opset1.ops import ceiling as ceil +from openvino.opsets.opset1.ops import clamp +from openvino.opsets.opset1.ops import concat +from openvino.opsets.opset1.ops import constant +from openvino.opsets.opset1.ops import convert +from openvino.opsets.opset1.ops import convert_like +from openvino.opsets.opset1.ops import convolution +from openvino.opsets.opset1.ops import convolution_backprop_data +from openvino.opsets.opset1.ops import cos +from openvino.opsets.opset1.ops import cosh +from openvino.opsets.opset1.ops import ctc_greedy_decoder +from openvino.opsets.opset6.ops import ctc_greedy_decoder_seq_len +from openvino.opsets.opset4.ops import ctc_loss +from openvino.opsets.opset3.ops import cum_sum +from openvino.opsets.opset3.ops import cum_sum as cumsum +from openvino.opsets.opset8.ops import deformable_convolution +from openvino.opsets.opset1.ops import deformable_psroi_pooling +from openvino.opsets.opset1.ops import depth_to_space +from openvino.opsets.opset8.ops import detection_output +from openvino.opsets.opset7.ops import dft +from openvino.opsets.opset1.ops import divide +from openvino.opsets.opset7.ops import einsum +from openvino.opsets.opset1.ops import elu +from openvino.opsets.opset3.ops import embedding_bag_offsets_sum +from openvino.opsets.opset3.ops import embedding_bag_packed_sum +from openvino.opsets.opset3.ops import embedding_segments_sum +from openvino.opsets.opset3.ops import extract_image_patches +from openvino.opsets.opset1.ops import equal +from openvino.opsets.opset1.ops import erf +from openvino.opsets.opset1.ops import exp +from openvino.opsets.opset1.ops import fake_quantize +from openvino.opsets.opset1.ops import floor +from openvino.opsets.opset1.ops import floor_mod +from openvino.opsets.opset8.ops import gather +from openvino.opsets.opset6.ops import gather_elements +from openvino.opsets.opset8.ops import gather_nd +from openvino.opsets.opset1.ops import gather_tree +from openvino.opsets.opset7.ops import gelu +from openvino.opsets.opset1.ops import greater +from openvino.opsets.opset1.ops import greater_equal +from openvino.opsets.opset1.ops import grn +from openvino.opsets.opset1.ops import group_convolution +from openvino.opsets.opset1.ops import group_convolution_backprop_data +from openvino.opsets.opset3.ops import gru_cell +from openvino.opsets.opset5.ops import gru_sequence +from openvino.opsets.opset1.ops import hard_sigmoid +from openvino.opsets.opset5.ops import hsigmoid +from openvino.opsets.opset4.ops import hswish +from openvino.opsets.opset7.ops import idft +from openvino.opsets.opset8.ops import if_op +from openvino.opsets.opset1.ops import interpolate +from openvino.opsets.opset8.ops import i420_to_bgr +from openvino.opsets.opset8.ops import i420_to_rgb +from openvino.opsets.opset1.ops import less +from openvino.opsets.opset1.ops import less_equal +from openvino.opsets.opset1.ops import log +from openvino.opsets.opset1.ops import logical_and +from openvino.opsets.opset1.ops import logical_not +from openvino.opsets.opset1.ops import logical_or +from openvino.opsets.opset1.ops import logical_xor +from openvino.opsets.opset5.ops import log_softmax +from openvino.opsets.opset5.ops import loop +from openvino.opsets.opset1.ops import lrn +from openvino.opsets.opset4.ops import lstm_cell +from openvino.opsets.opset5.ops import lstm_sequence +from openvino.opsets.opset1.ops import matmul +from openvino.opsets.opset8.ops import matrix_nms +from openvino.opsets.opset8.ops import max_pool +from openvino.opsets.opset1.ops import maximum +from openvino.opsets.opset1.ops import minimum +from openvino.opsets.opset4.ops import mish +from openvino.opsets.opset1.ops import mod +from openvino.opsets.opset8.ops import multiclass_nms +from openvino.opsets.opset1.ops import multiply +from openvino.opsets.opset6.ops import mvn +from openvino.opsets.opset1.ops import negative +from openvino.opsets.opset5.ops import non_max_suppression +from openvino.opsets.opset3.ops import non_zero +from openvino.opsets.opset1.ops import normalize_l2 +from openvino.opsets.opset1.ops import not_equal +from openvino.opsets.opset8.ops import nv12_to_bgr +from openvino.opsets.opset8.ops import nv12_to_rgb +from openvino.opsets.opset1.ops import one_hot +from openvino.opsets.opset1.ops import pad +from openvino.opsets.opset1.ops import parameter +from openvino.opsets.opset1.ops import power +from openvino.opsets.opset1.ops import prelu +from openvino.opsets.opset8.ops import prior_box +from openvino.opsets.opset1.ops import prior_box_clustered +from openvino.opsets.opset1.ops import psroi_pooling +from openvino.opsets.opset4.ops import proposal +from openvino.opsets.opset1.ops import range +from openvino.opsets.opset8.ops import random_uniform +from openvino.opsets.opset6.ops import read_value +from openvino.opsets.opset4.ops import reduce_l1 +from openvino.opsets.opset4.ops import reduce_l2 +from openvino.opsets.opset1.ops import reduce_logical_and +from openvino.opsets.opset1.ops import reduce_logical_or +from openvino.opsets.opset1.ops import reduce_max +from openvino.opsets.opset1.ops import reduce_mean +from openvino.opsets.opset1.ops import reduce_min +from openvino.opsets.opset1.ops import reduce_prod +from openvino.opsets.opset1.ops import reduce_sum +from openvino.opsets.opset1.ops import region_yolo +from openvino.opsets.opset2.ops import reorg_yolo +from openvino.opsets.opset1.ops import relu +from openvino.opsets.opset1.ops import reshape +from openvino.opsets.opset1.ops import result +from openvino.opsets.opset1.ops import reverse_sequence +from openvino.opsets.opset3.ops import rnn_cell +from openvino.opsets.opset5.ops import rnn_sequence +from openvino.opsets.opset3.ops import roi_align +from openvino.opsets.opset2.ops import roi_pooling +from openvino.opsets.opset7.ops import roll +from openvino.opsets.opset5.ops import round +from openvino.opsets.opset3.ops import scatter_elements_update +from openvino.opsets.opset4.ops import scatter_nd_update +from openvino.opsets.opset3.ops import scatter_update +from openvino.opsets.opset1.ops import select +from openvino.opsets.opset1.ops import selu +from openvino.opsets.opset3.ops import shape_of +from openvino.opsets.opset3.ops import shuffle_channels +from openvino.opsets.opset1.ops import sigmoid +from openvino.opsets.opset1.ops import sign +from openvino.opsets.opset1.ops import sin +from openvino.opsets.opset1.ops import sinh +from openvino.opsets.opset8.ops import slice +from openvino.opsets.opset8.ops import softmax +from openvino.opsets.opset4.ops import softplus +from openvino.opsets.opset2.ops import space_to_batch +from openvino.opsets.opset1.ops import space_to_depth +from openvino.opsets.opset1.ops import split +from openvino.opsets.opset1.ops import sqrt +from openvino.opsets.opset1.ops import squared_difference +from openvino.opsets.opset1.ops import squeeze +from openvino.opsets.opset1.ops import strided_slice +from openvino.opsets.opset1.ops import subtract +from openvino.opsets.opset4.ops import swish +from openvino.opsets.opset1.ops import tan +from openvino.opsets.opset1.ops import tanh +from openvino.opsets.opset1.ops import tensor_iterator +from openvino.opsets.opset1.ops import tile +from openvino.opsets.opset3.ops import topk +from openvino.opsets.opset1.ops import transpose +from openvino.opsets.opset1.ops import unsqueeze +from openvino.opsets.opset1.ops import variadic_split diff --git a/src/bindings/python/src/openvino/opsets/opset8/ops.py b/src/bindings/python/src/openvino/opsets/opset8/ops.py index f9176ecd32be14..437b1cbe642563 100644 --- a/src/bindings/python/src/openvino/opsets/opset8/ops.py +++ b/src/bindings/python/src/openvino/opsets/opset8/ops.py @@ -8,16 +8,16 @@ import numpy as np from openvino.runtime.exceptions import UserInputError -from openvino.runtime.op import Constant, Parameter, if_op -from openvino.runtime import Node -from openvino.runtime.opset_utils import _get_node_factory -from openvino.runtime.utils.decorators import nameable_op -from openvino.runtime.utils.input_validation import ( +from openvino.opsets.op import Constant, Parameter, if_op +from openvino._pyopenvino import Node +from openvino.opsets.opset_utils import _get_node_factory +from openvino.utils.decorators import nameable_op +from openvino.utils.input_validation import ( check_valid_attributes, is_non_negative_value, is_positive_value, ) -from openvino.runtime.utils.types import ( +from openvino.utils.types import ( NodeInput, TensorShape, as_node, diff --git a/src/bindings/python/src/openvino/opsets/opset9/__init__.py b/src/bindings/python/src/openvino/opsets/opset9/__init__.py index 138ecdbdcd5d33..374369e5a9d9c3 100644 --- a/src/bindings/python/src/openvino/opsets/opset9/__init__.py +++ b/src/bindings/python/src/openvino/opsets/opset9/__init__.py @@ -2,174 +2,174 @@ # Copyright (C) 2018-2024 Intel Corporation # SPDX-License-Identifier: Apache-2.0 -from openvino.runtime.opset1.ops import absolute -from openvino.runtime.opset1.ops import absolute as abs -from openvino.runtime.opset1.ops import acos -from openvino.runtime.opset4.ops import acosh -from openvino.runtime.opset8.ops import adaptive_avg_pool -from openvino.runtime.opset8.ops import adaptive_max_pool -from openvino.runtime.opset1.ops import add -from openvino.runtime.opset1.ops import asin -from openvino.runtime.opset4.ops import asinh -from openvino.runtime.opset6.ops import assign -from openvino.runtime.opset1.ops import atan -from openvino.runtime.opset4.ops import atanh -from openvino.runtime.opset1.ops import avg_pool -from openvino.runtime.opset5.ops import batch_norm_inference -from openvino.runtime.opset2.ops import batch_to_space -from openvino.runtime.opset1.ops import binary_convolution -from openvino.runtime.opset3.ops import broadcast -from openvino.runtime.opset3.ops import bucketize -from openvino.runtime.opset1.ops import ceiling -from openvino.runtime.opset1.ops import ceiling as ceil -from openvino.runtime.opset1.ops import clamp -from openvino.runtime.opset1.ops import concat -from openvino.runtime.opset1.ops import constant -from openvino.runtime.opset1.ops import convert -from openvino.runtime.opset1.ops import convert_like -from openvino.runtime.opset1.ops import convolution -from openvino.runtime.opset1.ops import convolution_backprop_data -from openvino.runtime.opset1.ops import cos -from openvino.runtime.opset1.ops import cosh -from openvino.runtime.opset1.ops import ctc_greedy_decoder -from openvino.runtime.opset6.ops import ctc_greedy_decoder_seq_len -from openvino.runtime.opset4.ops import ctc_loss -from openvino.runtime.opset3.ops import cum_sum -from openvino.runtime.opset3.ops import cum_sum as cumsum -from openvino.runtime.opset8.ops import deformable_convolution -from openvino.runtime.opset1.ops import deformable_psroi_pooling -from openvino.runtime.opset1.ops import depth_to_space -from openvino.runtime.opset8.ops import detection_output -from openvino.runtime.opset7.ops import dft -from openvino.runtime.opset1.ops import divide -from openvino.runtime.opset7.ops import einsum -from openvino.runtime.opset1.ops import elu -from openvino.runtime.opset3.ops import embedding_bag_offsets_sum -from openvino.runtime.opset3.ops import embedding_bag_packed_sum -from openvino.runtime.opset3.ops import embedding_segments_sum -from openvino.runtime.opset3.ops import extract_image_patches -from openvino.runtime.opset1.ops import equal -from openvino.runtime.opset1.ops import erf -from openvino.runtime.opset1.ops import exp -from openvino.runtime.opset9.ops import eye -from openvino.runtime.opset1.ops import fake_quantize -from openvino.runtime.opset1.ops import floor -from openvino.runtime.opset1.ops import floor_mod -from openvino.runtime.opset8.ops import gather -from openvino.runtime.opset6.ops import gather_elements -from openvino.runtime.opset8.ops import gather_nd -from openvino.runtime.opset1.ops import gather_tree -from openvino.runtime.opset7.ops import gelu -from openvino.runtime.opset9.ops import generate_proposals -from openvino.runtime.opset1.ops import greater -from openvino.runtime.opset1.ops import greater_equal -from openvino.runtime.opset9.ops import grid_sample -from openvino.runtime.opset1.ops import grn -from openvino.runtime.opset1.ops import group_convolution -from openvino.runtime.opset1.ops import group_convolution_backprop_data -from openvino.runtime.opset3.ops import gru_cell -from openvino.runtime.opset5.ops import gru_sequence -from openvino.runtime.opset1.ops import hard_sigmoid -from openvino.runtime.opset5.ops import hsigmoid -from openvino.runtime.opset4.ops import hswish -from openvino.runtime.opset7.ops import idft -from openvino.runtime.opset8.ops import if_op -from openvino.runtime.opset1.ops import interpolate -from openvino.runtime.opset9.ops import irdft -from openvino.runtime.opset8.ops import i420_to_bgr -from openvino.runtime.opset8.ops import i420_to_rgb -from openvino.runtime.opset1.ops import less -from openvino.runtime.opset1.ops import less_equal -from openvino.runtime.opset1.ops import log -from openvino.runtime.opset1.ops import logical_and -from openvino.runtime.opset1.ops import logical_not -from openvino.runtime.opset1.ops import logical_or -from openvino.runtime.opset1.ops import logical_xor -from openvino.runtime.opset5.ops import log_softmax -from openvino.runtime.opset5.ops import loop -from openvino.runtime.opset1.ops import lrn -from openvino.runtime.opset4.ops import lstm_cell -from openvino.runtime.opset5.ops import lstm_sequence -from openvino.runtime.opset1.ops import matmul -from openvino.runtime.opset8.ops import matrix_nms -from openvino.runtime.opset8.ops import max_pool -from openvino.runtime.opset1.ops import maximum -from openvino.runtime.opset1.ops import minimum -from openvino.runtime.opset4.ops import mish -from openvino.runtime.opset1.ops import mod -from openvino.runtime.opset9.ops import multiclass_nms -from openvino.runtime.opset1.ops import multiply -from openvino.runtime.opset6.ops import mvn -from openvino.runtime.opset1.ops import negative -from openvino.runtime.opset9.ops import non_max_suppression -from openvino.runtime.opset3.ops import non_zero -from openvino.runtime.opset1.ops import normalize_l2 -from openvino.runtime.opset1.ops import not_equal -from openvino.runtime.opset8.ops import nv12_to_bgr -from openvino.runtime.opset8.ops import nv12_to_rgb -from openvino.runtime.opset1.ops import one_hot -from openvino.runtime.opset1.ops import pad -from openvino.runtime.opset1.ops import parameter -from openvino.runtime.opset1.ops import power -from openvino.runtime.opset1.ops import prelu -from openvino.runtime.opset8.ops import prior_box -from openvino.runtime.opset1.ops import prior_box_clustered -from openvino.runtime.opset1.ops import psroi_pooling -from openvino.runtime.opset4.ops import proposal -from openvino.runtime.opset1.ops import range -from openvino.runtime.opset8.ops import random_uniform -from openvino.runtime.opset9.ops import rdft -from openvino.runtime.opset6.ops import read_value -from openvino.runtime.opset4.ops import reduce_l1 -from openvino.runtime.opset4.ops import reduce_l2 -from openvino.runtime.opset1.ops import reduce_logical_and -from openvino.runtime.opset1.ops import reduce_logical_or -from openvino.runtime.opset1.ops import reduce_max -from openvino.runtime.opset1.ops import reduce_mean -from openvino.runtime.opset1.ops import reduce_min -from openvino.runtime.opset1.ops import reduce_prod -from openvino.runtime.opset1.ops import reduce_sum -from openvino.runtime.opset1.ops import region_yolo -from openvino.runtime.opset2.ops import reorg_yolo -from openvino.runtime.opset1.ops import relu -from openvino.runtime.opset1.ops import reshape -from openvino.runtime.opset1.ops import result -from openvino.runtime.opset1.ops import reverse_sequence -from openvino.runtime.opset3.ops import rnn_cell -from openvino.runtime.opset5.ops import rnn_sequence -from openvino.runtime.opset9.ops import roi_align -from openvino.runtime.opset2.ops import roi_pooling -from openvino.runtime.opset7.ops import roll -from openvino.runtime.opset5.ops import round -from openvino.runtime.opset3.ops import scatter_elements_update -from openvino.runtime.opset4.ops import scatter_nd_update -from openvino.runtime.opset3.ops import scatter_update -from openvino.runtime.opset1.ops import select -from openvino.runtime.opset1.ops import selu -from openvino.runtime.opset3.ops import shape_of -from openvino.runtime.opset3.ops import shuffle_channels -from openvino.runtime.opset1.ops import sigmoid -from openvino.runtime.opset1.ops import sign -from openvino.runtime.opset1.ops import sin -from openvino.runtime.opset1.ops import sinh -from openvino.runtime.opset8.ops import slice -from openvino.runtime.opset8.ops import softmax -from openvino.runtime.opset4.ops import softplus -from openvino.runtime.opset9.ops import softsign -from openvino.runtime.opset2.ops import space_to_batch -from openvino.runtime.opset1.ops import space_to_depth -from openvino.runtime.opset1.ops import split -from openvino.runtime.opset1.ops import sqrt -from openvino.runtime.opset1.ops import squared_difference -from openvino.runtime.opset1.ops import squeeze -from openvino.runtime.opset1.ops import strided_slice -from openvino.runtime.opset1.ops import subtract -from openvino.runtime.opset4.ops import swish -from openvino.runtime.opset1.ops import tan -from openvino.runtime.opset1.ops import tanh -from openvino.runtime.opset1.ops import tensor_iterator -from openvino.runtime.opset1.ops import tile -from openvino.runtime.opset3.ops import topk -from openvino.runtime.opset1.ops import transpose -from openvino.runtime.opset1.ops import unsqueeze -from openvino.runtime.opset1.ops import variadic_split +from openvino.opsets.opset1.ops import absolute +from openvino.opsets.opset1.ops import absolute as abs +from openvino.opsets.opset1.ops import acos +from openvino.opsets.opset4.ops import acosh +from openvino.opsets.opset8.ops import adaptive_avg_pool +from openvino.opsets.opset8.ops import adaptive_max_pool +from openvino.opsets.opset1.ops import add +from openvino.opsets.opset1.ops import asin +from openvino.opsets.opset4.ops import asinh +from openvino.opsets.opset6.ops import assign +from openvino.opsets.opset1.ops import atan +from openvino.opsets.opset4.ops import atanh +from openvino.opsets.opset1.ops import avg_pool +from openvino.opsets.opset5.ops import batch_norm_inference +from openvino.opsets.opset2.ops import batch_to_space +from openvino.opsets.opset1.ops import binary_convolution +from openvino.opsets.opset3.ops import broadcast +from openvino.opsets.opset3.ops import bucketize +from openvino.opsets.opset1.ops import ceiling +from openvino.opsets.opset1.ops import ceiling as ceil +from openvino.opsets.opset1.ops import clamp +from openvino.opsets.opset1.ops import concat +from openvino.opsets.opset1.ops import constant +from openvino.opsets.opset1.ops import convert +from openvino.opsets.opset1.ops import convert_like +from openvino.opsets.opset1.ops import convolution +from openvino.opsets.opset1.ops import convolution_backprop_data +from openvino.opsets.opset1.ops import cos +from openvino.opsets.opset1.ops import cosh +from openvino.opsets.opset1.ops import ctc_greedy_decoder +from openvino.opsets.opset6.ops import ctc_greedy_decoder_seq_len +from openvino.opsets.opset4.ops import ctc_loss +from openvino.opsets.opset3.ops import cum_sum +from openvino.opsets.opset3.ops import cum_sum as cumsum +from openvino.opsets.opset8.ops import deformable_convolution +from openvino.opsets.opset1.ops import deformable_psroi_pooling +from openvino.opsets.opset1.ops import depth_to_space +from openvino.opsets.opset8.ops import detection_output +from openvino.opsets.opset7.ops import dft +from openvino.opsets.opset1.ops import divide +from openvino.opsets.opset7.ops import einsum +from openvino.opsets.opset1.ops import elu +from openvino.opsets.opset3.ops import embedding_bag_offsets_sum +from openvino.opsets.opset3.ops import embedding_bag_packed_sum +from openvino.opsets.opset3.ops import embedding_segments_sum +from openvino.opsets.opset3.ops import extract_image_patches +from openvino.opsets.opset1.ops import equal +from openvino.opsets.opset1.ops import erf +from openvino.opsets.opset1.ops import exp +from openvino.opsets.opset9.ops import eye +from openvino.opsets.opset1.ops import fake_quantize +from openvino.opsets.opset1.ops import floor +from openvino.opsets.opset1.ops import floor_mod +from openvino.opsets.opset8.ops import gather +from openvino.opsets.opset6.ops import gather_elements +from openvino.opsets.opset8.ops import gather_nd +from openvino.opsets.opset1.ops import gather_tree +from openvino.opsets.opset7.ops import gelu +from openvino.opsets.opset9.ops import generate_proposals +from openvino.opsets.opset1.ops import greater +from openvino.opsets.opset1.ops import greater_equal +from openvino.opsets.opset9.ops import grid_sample +from openvino.opsets.opset1.ops import grn +from openvino.opsets.opset1.ops import group_convolution +from openvino.opsets.opset1.ops import group_convolution_backprop_data +from openvino.opsets.opset3.ops import gru_cell +from openvino.opsets.opset5.ops import gru_sequence +from openvino.opsets.opset1.ops import hard_sigmoid +from openvino.opsets.opset5.ops import hsigmoid +from openvino.opsets.opset4.ops import hswish +from openvino.opsets.opset7.ops import idft +from openvino.opsets.opset8.ops import if_op +from openvino.opsets.opset1.ops import interpolate +from openvino.opsets.opset9.ops import irdft +from openvino.opsets.opset8.ops import i420_to_bgr +from openvino.opsets.opset8.ops import i420_to_rgb +from openvino.opsets.opset1.ops import less +from openvino.opsets.opset1.ops import less_equal +from openvino.opsets.opset1.ops import log +from openvino.opsets.opset1.ops import logical_and +from openvino.opsets.opset1.ops import logical_not +from openvino.opsets.opset1.ops import logical_or +from openvino.opsets.opset1.ops import logical_xor +from openvino.opsets.opset5.ops import log_softmax +from openvino.opsets.opset5.ops import loop +from openvino.opsets.opset1.ops import lrn +from openvino.opsets.opset4.ops import lstm_cell +from openvino.opsets.opset5.ops import lstm_sequence +from openvino.opsets.opset1.ops import matmul +from openvino.opsets.opset8.ops import matrix_nms +from openvino.opsets.opset8.ops import max_pool +from openvino.opsets.opset1.ops import maximum +from openvino.opsets.opset1.ops import minimum +from openvino.opsets.opset4.ops import mish +from openvino.opsets.opset1.ops import mod +from openvino.opsets.opset9.ops import multiclass_nms +from openvino.opsets.opset1.ops import multiply +from openvino.opsets.opset6.ops import mvn +from openvino.opsets.opset1.ops import negative +from openvino.opsets.opset9.ops import non_max_suppression +from openvino.opsets.opset3.ops import non_zero +from openvino.opsets.opset1.ops import normalize_l2 +from openvino.opsets.opset1.ops import not_equal +from openvino.opsets.opset8.ops import nv12_to_bgr +from openvino.opsets.opset8.ops import nv12_to_rgb +from openvino.opsets.opset1.ops import one_hot +from openvino.opsets.opset1.ops import pad +from openvino.opsets.opset1.ops import parameter +from openvino.opsets.opset1.ops import power +from openvino.opsets.opset1.ops import prelu +from openvino.opsets.opset8.ops import prior_box +from openvino.opsets.opset1.ops import prior_box_clustered +from openvino.opsets.opset1.ops import psroi_pooling +from openvino.opsets.opset4.ops import proposal +from openvino.opsets.opset1.ops import range +from openvino.opsets.opset8.ops import random_uniform +from openvino.opsets.opset9.ops import rdft +from openvino.opsets.opset6.ops import read_value +from openvino.opsets.opset4.ops import reduce_l1 +from openvino.opsets.opset4.ops import reduce_l2 +from openvino.opsets.opset1.ops import reduce_logical_and +from openvino.opsets.opset1.ops import reduce_logical_or +from openvino.opsets.opset1.ops import reduce_max +from openvino.opsets.opset1.ops import reduce_mean +from openvino.opsets.opset1.ops import reduce_min +from openvino.opsets.opset1.ops import reduce_prod +from openvino.opsets.opset1.ops import reduce_sum +from openvino.opsets.opset1.ops import region_yolo +from openvino.opsets.opset2.ops import reorg_yolo +from openvino.opsets.opset1.ops import relu +from openvino.opsets.opset1.ops import reshape +from openvino.opsets.opset1.ops import result +from openvino.opsets.opset1.ops import reverse_sequence +from openvino.opsets.opset3.ops import rnn_cell +from openvino.opsets.opset5.ops import rnn_sequence +from openvino.opsets.opset9.ops import roi_align +from openvino.opsets.opset2.ops import roi_pooling +from openvino.opsets.opset7.ops import roll +from openvino.opsets.opset5.ops import round +from openvino.opsets.opset3.ops import scatter_elements_update +from openvino.opsets.opset4.ops import scatter_nd_update +from openvino.opsets.opset3.ops import scatter_update +from openvino.opsets.opset1.ops import select +from openvino.opsets.opset1.ops import selu +from openvino.opsets.opset3.ops import shape_of +from openvino.opsets.opset3.ops import shuffle_channels +from openvino.opsets.opset1.ops import sigmoid +from openvino.opsets.opset1.ops import sign +from openvino.opsets.opset1.ops import sin +from openvino.opsets.opset1.ops import sinh +from openvino.opsets.opset8.ops import slice +from openvino.opsets.opset8.ops import softmax +from openvino.opsets.opset4.ops import softplus +from openvino.opsets.opset9.ops import softsign +from openvino.opsets.opset2.ops import space_to_batch +from openvino.opsets.opset1.ops import space_to_depth +from openvino.opsets.opset1.ops import split +from openvino.opsets.opset1.ops import sqrt +from openvino.opsets.opset1.ops import squared_difference +from openvino.opsets.opset1.ops import squeeze +from openvino.opsets.opset1.ops import strided_slice +from openvino.opsets.opset1.ops import subtract +from openvino.opsets.opset4.ops import swish +from openvino.opsets.opset1.ops import tan +from openvino.opsets.opset1.ops import tanh +from openvino.opsets.opset1.ops import tensor_iterator +from openvino.opsets.opset1.ops import tile +from openvino.opsets.opset3.ops import topk +from openvino.opsets.opset1.ops import transpose +from openvino.opsets.opset1.ops import unsqueeze +from openvino.opsets.opset1.ops import variadic_split diff --git a/src/bindings/python/src/openvino/opsets/opset9/ops.py b/src/bindings/python/src/openvino/opsets/opset9/ops.py index a6d45cfd0be2cc..011ac2696dc317 100644 --- a/src/bindings/python/src/openvino/opsets/opset9/ops.py +++ b/src/bindings/python/src/openvino/opsets/opset9/ops.py @@ -7,10 +7,10 @@ from typing import Optional import numpy as np -from openvino.runtime import Node -from openvino.runtime.opset_utils import _get_node_factory -from openvino.runtime.utils.decorators import nameable_op -from openvino.runtime.utils.types import ( +from openvino._pyopenvino import Node +from openvino.opsets.opset_utils import _get_node_factory +from openvino.utils.decorators import nameable_op +from openvino.utils.types import ( NodeInput, as_nodes, as_node, diff --git a/src/bindings/python/src/openvino/opsets/opset_utils.py b/src/bindings/python/src/openvino/opsets/opset_utils.py index 475750e71f87c5..50150e12b072b7 100644 --- a/src/bindings/python/src/openvino/opsets/opset_utils.py +++ b/src/bindings/python/src/openvino/opsets/opset_utils.py @@ -5,10 +5,10 @@ from typing import Optional import numpy as np -from openvino.runtime import Node -from openvino.runtime.utils.decorators import nameable_op -from openvino.runtime.utils.node_factory import NodeFactory -from openvino.runtime.utils.types import ( +from openvino._pyopenvino import Node +from openvino.utils.decorators import nameable_op +from openvino.utils.node_factory import NodeFactory +from openvino.utils.types import ( as_node, NodeInput, ) diff --git a/src/bindings/python/src/openvino/runtime/__init__.py b/src/bindings/python/src/openvino/runtime/__init__.py index 9219fa9e61f965..e8314ddcf8714e 100644 --- a/src/bindings/python/src/openvino/runtime/__init__.py +++ b/src/bindings/python/src/openvino/runtime/__init__.py @@ -55,19 +55,23 @@ from openvino._pyopenvino import shutdown # Import opsets -from openvino.runtime import opset1 -from openvino.runtime import opset2 -from openvino.runtime import opset3 -from openvino.runtime import opset4 -from openvino.runtime import opset5 -from openvino.runtime import opset6 -from openvino.runtime import opset7 -from openvino.runtime import opset8 -from openvino.runtime import opset9 -from openvino.runtime import opset10 -from openvino.runtime import opset11 -from openvino.runtime import opset12 -from openvino.runtime import opset13 +from openvino.opsets import op +from openvino.opsets import opset1 +from openvino.opsets import opset2 +from openvino.opsets import opset3 +from openvino.opsets import opset4 +from openvino.opsets import opset5 +from openvino.opsets import opset6 +from openvino.opsets import opset7 +from openvino.opsets import opset8 +from openvino.opsets import opset9 +from openvino.opsets import opset10 +from openvino.opsets import opset11 +from openvino.opsets import opset12 +from openvino.opsets import opset13 +from openvino.opsets import opset14 +from openvino.opsets import opset15 +from openvino.opsets import opset_utils # Import properties API from openvino.runtime import properties From d9fd0731ca5d61c713624226c9abf89ffa95300b Mon Sep 17 00:00:00 2001 From: Alicja Miloszewska Date: Thu, 7 Nov 2024 13:29:06 +0100 Subject: [PATCH 07/38] Move and add alias for exceptions Signed-off-by: Alicja Miloszewska --- src/bindings/python/src/openvino/{runtime => }/exceptions.py | 0 src/bindings/python/src/openvino/opsets/opset8/ops.py | 2 +- 2 files changed, 1 insertion(+), 1 deletion(-) rename src/bindings/python/src/openvino/{runtime => }/exceptions.py (100%) diff --git a/src/bindings/python/src/openvino/runtime/exceptions.py b/src/bindings/python/src/openvino/exceptions.py similarity index 100% rename from src/bindings/python/src/openvino/runtime/exceptions.py rename to src/bindings/python/src/openvino/exceptions.py diff --git a/src/bindings/python/src/openvino/opsets/opset8/ops.py b/src/bindings/python/src/openvino/opsets/opset8/ops.py index 437b1cbe642563..f11aa763cf2214 100644 --- a/src/bindings/python/src/openvino/opsets/opset8/ops.py +++ b/src/bindings/python/src/openvino/opsets/opset8/ops.py @@ -7,7 +7,7 @@ from typing import List, Optional, Tuple import numpy as np -from openvino.runtime.exceptions import UserInputError +from openvino.exceptions import UserInputError from openvino.opsets.op import Constant, Parameter, if_op from openvino._pyopenvino import Node from openvino.opsets.opset_utils import _get_node_factory From 1b93b12fadef1cb5c670665843fb68aaf5f5b557 Mon Sep 17 00:00:00 2001 From: Alicja Miloszewska Date: Thu, 7 Nov 2024 13:29:41 +0100 Subject: [PATCH 08/38] Add aliases for exceptions and utils Signed-off-by: Alicja Miloszewska --- src/bindings/python/src/openvino/runtime/__init__.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/bindings/python/src/openvino/runtime/__init__.py b/src/bindings/python/src/openvino/runtime/__init__.py index e8314ddcf8714e..54ae33ed9adabd 100644 --- a/src/bindings/python/src/openvino/runtime/__init__.py +++ b/src/bindings/python/src/openvino/runtime/__init__.py @@ -73,13 +73,17 @@ from openvino.opsets import opset15 from openvino.opsets import opset_utils +# Aliases +from openvino import ie_api as ie_api +from openvino import exceptions as exceptions +import openvino.utils as utils + # Import properties API from openvino.runtime import properties # Helper functions for openvino module from openvino.ie_api import tensor_from_file from openvino.ie_api import compile_model -from openvino import ie_api as ie_api from openvino.utils import deprecated From 9bd80660288ac70986466b9c28a75bbf3bbb5f56 Mon Sep 17 00:00:00 2001 From: Alicja Miloszewska Date: Thu, 7 Nov 2024 13:36:07 +0100 Subject: [PATCH 09/38] Update openvino/utils Signed-off-by: Alicja Miloszewska --- src/bindings/python/src/openvino/utils/broadcasting.py | 4 ++-- .../python/src/openvino/utils/data_helpers/__init__.py | 8 ++++---- .../src/openvino/utils/data_helpers/data_dispatcher.py | 2 +- src/bindings/python/src/openvino/utils/decorators.py | 4 ++-- .../python/src/openvino/utils/input_validation.py | 2 +- src/bindings/python/src/openvino/utils/node_factory.py | 4 ++-- src/bindings/python/src/openvino/utils/reduction.py | 2 +- src/bindings/python/src/openvino/utils/types.py | 6 +++--- 8 files changed, 16 insertions(+), 16 deletions(-) diff --git a/src/bindings/python/src/openvino/utils/broadcasting.py b/src/bindings/python/src/openvino/utils/broadcasting.py index 9fd13da7728e29..a178fffbc07953 100644 --- a/src/bindings/python/src/openvino/utils/broadcasting.py +++ b/src/bindings/python/src/openvino/utils/broadcasting.py @@ -5,8 +5,8 @@ import logging from typing import List, Optional -from openvino.runtime import AxisSet, Node -from openvino.runtime.utils.types import ( +from openvino._pyopenvino import AxisSet, Node +from openvino.utils.types import ( NodeInput, TensorShape, get_dtype, diff --git a/src/bindings/python/src/openvino/utils/data_helpers/__init__.py b/src/bindings/python/src/openvino/utils/data_helpers/__init__.py index a46105efaaeadb..282547dd9df79a 100644 --- a/src/bindings/python/src/openvino/utils/data_helpers/__init__.py +++ b/src/bindings/python/src/openvino/utils/data_helpers/__init__.py @@ -2,7 +2,7 @@ # Copyright (C) 2018-2024 Intel Corporation # SPDX-License-Identifier: Apache-2.0 -from openvino.runtime.utils.data_helpers.data_dispatcher import _data_dispatch -from openvino.runtime.utils.data_helpers.wrappers import tensor_from_file -from openvino.runtime.utils.data_helpers.wrappers import _InferRequestWrapper -from openvino.runtime.utils.data_helpers.wrappers import OVDict +from openvino.utils.data_helpers.data_dispatcher import _data_dispatch +from openvino.utils.data_helpers.wrappers import tensor_from_file +from openvino.utils.data_helpers.wrappers import _InferRequestWrapper +from openvino.utils.data_helpers.wrappers import OVDict diff --git a/src/bindings/python/src/openvino/utils/data_helpers/data_dispatcher.py b/src/bindings/python/src/openvino/utils/data_helpers/data_dispatcher.py index bce10c9c3774ef..d4db7cb07b629c 100644 --- a/src/bindings/python/src/openvino/utils/data_helpers/data_dispatcher.py +++ b/src/bindings/python/src/openvino/utils/data_helpers/data_dispatcher.py @@ -8,7 +8,7 @@ import numpy as np from openvino._pyopenvino import ConstOutput, Tensor, Type, RemoteTensor -from openvino.runtime.utils.data_helpers.wrappers import _InferRequestWrapper, OVDict +from openvino.utils.data_helpers.wrappers import _InferRequestWrapper, OVDict ContainerTypes = Union[dict, list, tuple, OVDict] ScalarTypes = Union[np.number, int, float] diff --git a/src/bindings/python/src/openvino/utils/decorators.py b/src/bindings/python/src/openvino/utils/decorators.py index 98da1ba4389ef7..7f0b7892b20647 100644 --- a/src/bindings/python/src/openvino/utils/decorators.py +++ b/src/bindings/python/src/openvino/utils/decorators.py @@ -6,8 +6,8 @@ from inspect import signature from typing import Any, Callable, Dict, Optional, Union, get_origin, get_args -from openvino.runtime import Node, Output -from openvino.runtime.utils.types import NodeInput, as_node, as_nodes +from openvino._pyopenvino import Node, Output +from openvino.utils.types import NodeInput, as_node, as_nodes def _get_name(**kwargs: Any) -> Node: diff --git a/src/bindings/python/src/openvino/utils/input_validation.py b/src/bindings/python/src/openvino/utils/input_validation.py index e79a16c48581b1..1de08452e1da9f 100644 --- a/src/bindings/python/src/openvino/utils/input_validation.py +++ b/src/bindings/python/src/openvino/utils/input_validation.py @@ -9,7 +9,7 @@ import numpy as np -from openvino.runtime.exceptions import UserInputError +from openvino.exceptions import UserInputError log = logging.getLogger(__name__) diff --git a/src/bindings/python/src/openvino/utils/node_factory.py b/src/bindings/python/src/openvino/utils/node_factory.py index 25daf739223dba..35f2e004565798 100644 --- a/src/bindings/python/src/openvino/utils/node_factory.py +++ b/src/bindings/python/src/openvino/utils/node_factory.py @@ -10,9 +10,9 @@ from openvino._pyopenvino import NodeFactory as _NodeFactory -from openvino.runtime import Node, Output, Extension +from openvino._pyopenvino import Node, Output, Extension -from openvino.runtime.exceptions import UserInputError +from openvino.exceptions import UserInputError DEFAULT_OPSET = "opset13" diff --git a/src/bindings/python/src/openvino/utils/reduction.py b/src/bindings/python/src/openvino/utils/reduction.py index 71d0af8de7376e..88bf407d02fbb3 100644 --- a/src/bindings/python/src/openvino/utils/reduction.py +++ b/src/bindings/python/src/openvino/utils/reduction.py @@ -4,7 +4,7 @@ from typing import Iterable, Optional -from openvino.runtime import Node +from openvino._pyopenvino import Node def get_reduction_axes(node: Node, reduction_axes: Optional[Iterable[int]]) -> Iterable[int]: diff --git a/src/bindings/python/src/openvino/utils/types.py b/src/bindings/python/src/openvino/utils/types.py index 52f1faf8e1e839..514cb33731385e 100644 --- a/src/bindings/python/src/openvino/utils/types.py +++ b/src/bindings/python/src/openvino/utils/types.py @@ -9,9 +9,9 @@ import numpy as np -from openvino.runtime.exceptions import OVTypeError -from openvino.runtime import Node, Shape, Output, Type -from openvino.runtime.op import Constant +from openvino.exceptions import OVTypeError +from openvino._pyopenvino import Node, Shape, Output, Type +from openvino.opsets.op import Constant log = logging.getLogger(__name__) From 9cd78dacdf6cf30b4bd492ccf245014f03cc882e Mon Sep 17 00:00:00 2001 From: Alicja Miloszewska Date: Thu, 7 Nov 2024 14:35:47 +0100 Subject: [PATCH 10/38] Mv utils.py to ultils/__init__ Signed-off-by: Alicja Miloszewska --- src/bindings/python/src/openvino/utils.py | 115 ------------------ .../python/src/openvino/utils/__init__.py | 112 +++++++++++++++++ 2 files changed, 112 insertions(+), 115 deletions(-) delete mode 100644 src/bindings/python/src/openvino/utils.py diff --git a/src/bindings/python/src/openvino/utils.py b/src/bindings/python/src/openvino/utils.py deleted file mode 100644 index 9890ae9b3e6460..00000000000000 --- a/src/bindings/python/src/openvino/utils.py +++ /dev/null @@ -1,115 +0,0 @@ -# -*- coding: utf-8 -*- -# Copyright (C) 2018-2024 Intel Corporation -# SPDX-License-Identifier: Apache-2.0 - -import os -import sys -from functools import wraps -from typing import Callable, Any -from pathlib import Path - - -def _add_openvino_libs_to_search_path() -> None: - """Add OpenVINO libraries to the DLL search path on Windows.""" - if sys.platform == "win32": - # Installer, yum, pip installs openvino dlls to the different directories - # and those paths need to be visible to the openvino modules - # - # If you're using a custom installation of openvino, - # add the location of openvino dlls to your system PATH. - openvino_libs = [] - if os.path.isdir(os.path.join(os.path.dirname(__file__), "libs")): - # looking for the libs in the pip installation path. - openvino_libs.append(os.path.join(os.path.dirname(__file__), "libs")) - elif os.path.isdir(os.path.join(os.path.dirname(__file__), "..", "..", "..", "Library", "bin")): - # looking for the libs in the conda installation path - openvino_libs.append(os.path.join(os.path.dirname(__file__), "..", "..", "..", "Library", "bin")) - else: - # setupvars.bat script set all libs paths to OPENVINO_LIB_PATHS environment variable. - openvino_libs_installer = os.getenv("OPENVINO_LIB_PATHS") - if openvino_libs_installer: - openvino_libs.extend(openvino_libs_installer.split(";")) - else: - sys.exit("Error: Please set the OPENVINO_LIB_PATHS environment variable. " - "If you use an install package, please, run setupvars.bat") - for lib in openvino_libs: - lib_path = os.path.join(os.path.dirname(__file__), lib) - if os.path.isdir(lib_path): - # On Windows, with Python >= 3.8, DLLs are no longer imported from the PATH. - os.add_dll_directory(os.path.abspath(lib_path)) - - -def get_cmake_path() -> str: - """Searches for the directory containing CMake files within the package install directory. - - :return: The path to the directory containing CMake files, if found. Otherwise, returns empty string. - :rtype: str - """ - package_path = Path(__file__).parent - cmake_file = "OpenVINOConfig.cmake" - - for dirpath, _, filenames in os.walk(package_path): - if cmake_file in filenames: - return dirpath - - return "" - - -def deprecated(name: Any = None, version: str = "", message: str = "", stacklevel: int = 2) -> Callable[..., Any]: - """Prints deprecation warning "{function_name} is deprecated and will be removed in version {version}. {message}" and runs the function. - - :param version: The version in which the code will be removed. - :param message: A message explaining why the function is deprecated and/or what to use instead. - """ - - def decorator(wrapped: Callable[..., Any]) -> Callable[..., Any]: - @wraps(wrapped) - def wrapper(*args: Any, **kwargs: Any) -> Callable[..., Any]: - # it must be imported here; otherwise, there are errors with no loaded DLL for Windows - from openvino._pyopenvino.util import deprecation_warning - - deprecation_warning(wrapped.__name__ if name is None else name, version, message, stacklevel) - return wrapped(*args, **kwargs) - - return wrapper - - return decorator - - -# WA method since Python 3.11 does not support @classmethod and @property chain, -# currently only read-only properties are supported. -class _ClassPropertyDescriptor(object): - def __init__(self, fget: Callable): - self.fget = fget - - def __get__(self, obj: Any, cls: Any = None) -> Any: - if cls is None: - cls = type(obj) - return self.fget.__get__(obj, cls)() - - -def classproperty(func: Any) -> _ClassPropertyDescriptor: - if not isinstance(func, (classmethod, staticmethod)): - func = classmethod(func) - return _ClassPropertyDescriptor(func) - - -def deprecatedclassproperty(name: Any = None, version: str = "", message: str = "", stacklevel: int = 2) -> Callable[[Any], _ClassPropertyDescriptor]: - def decorator(wrapped: Any) -> _ClassPropertyDescriptor: - func = classproperty(wrapped) - - # Override specific instance - def _patch(instance: _ClassPropertyDescriptor, func: Callable[..., Any]) -> None: - cls_: Any = type(instance) - - class _(cls_): # noqa: N801 - @func - def __get__(self, obj: Any, cls: Any = None) -> Any: - return super().__get__(obj, cls) - - instance.__class__ = _ - - # Add `deprecated` decorator on the top of `__get__` - _patch(func, deprecated(name, version, message, stacklevel)) - return func - return decorator diff --git a/src/bindings/python/src/openvino/utils/__init__.py b/src/bindings/python/src/openvino/utils/__init__.py index 73399ccbed2598..4e15743fd28447 100644 --- a/src/bindings/python/src/openvino/utils/__init__.py +++ b/src/bindings/python/src/openvino/utils/__init__.py @@ -5,3 +5,115 @@ """Generic utilities. Factor related functions out to separate files.""" from openvino._pyopenvino.util import numpy_to_c, replace_node, replace_output_update_name + +import os +import sys +from functools import wraps +from typing import Callable, Any +from pathlib import Path + + +def _add_openvino_libs_to_search_path() -> None: + """Add OpenVINO libraries to the DLL search path on Windows.""" + if sys.platform == "win32": + # Installer, yum, pip installs openvino dlls to the different directories + # and those paths need to be visible to the openvino modules + # + # If you're using a custom installation of openvino, + # add the location of openvino dlls to your system PATH. + openvino_libs = [] + if os.path.isdir(os.path.join(os.path.dirname(__file__), "libs")): + # looking for the libs in the pip installation path. + openvino_libs.append(os.path.join(os.path.dirname(__file__), "libs")) + elif os.path.isdir(os.path.join(os.path.dirname(__file__), "..", "..", "..", "Library", "bin")): + # looking for the libs in the conda installation path + openvino_libs.append(os.path.join(os.path.dirname(__file__), "..", "..", "..", "Library", "bin")) + else: + # setupvars.bat script set all libs paths to OPENVINO_LIB_PATHS environment variable. + openvino_libs_installer = os.getenv("OPENVINO_LIB_PATHS") + if openvino_libs_installer: + openvino_libs.extend(openvino_libs_installer.split(";")) + else: + sys.exit("Error: Please set the OPENVINO_LIB_PATHS environment variable. " + "If you use an install package, please, run setupvars.bat") + for lib in openvino_libs: + lib_path = os.path.join(os.path.dirname(__file__), lib) + if os.path.isdir(lib_path): + # On Windows, with Python >= 3.8, DLLs are no longer imported from the PATH. + os.add_dll_directory(os.path.abspath(lib_path)) + + +def get_cmake_path() -> str: + """Searches for the directory containing CMake files within the package install directory. + + :return: The path to the directory containing CMake files, if found. Otherwise, returns empty string. + :rtype: str + """ + package_path = Path(__file__).parent + cmake_file = "OpenVINOConfig.cmake" + + for dirpath, _, filenames in os.walk(package_path): + if cmake_file in filenames: + return dirpath + + return "" + + +def deprecated(name: Any = None, version: str = "", message: str = "", stacklevel: int = 2) -> Callable[..., Any]: + """Prints deprecation warning "{function_name} is deprecated and will be removed in version {version}. {message}" and runs the function. + + :param version: The version in which the code will be removed. + :param message: A message explaining why the function is deprecated and/or what to use instead. + """ + + def decorator(wrapped: Callable[..., Any]) -> Callable[..., Any]: + @wraps(wrapped) + def wrapper(*args: Any, **kwargs: Any) -> Callable[..., Any]: + # it must be imported here; otherwise, there are errors with no loaded DLL for Windows + from openvino._pyopenvino.util import deprecation_warning + + deprecation_warning(wrapped.__name__ if name is None else name, version, message, stacklevel) + return wrapped(*args, **kwargs) + + return wrapper + + return decorator + + +# WA method since Python 3.11 does not support @classmethod and @property chain, +# currently only read-only properties are supported. +class _ClassPropertyDescriptor(object): + def __init__(self, fget: Callable): + self.fget = fget + + def __get__(self, obj: Any, cls: Any = None) -> Any: + if cls is None: + cls = type(obj) + return self.fget.__get__(obj, cls)() + + +def classproperty(func: Any) -> _ClassPropertyDescriptor: + if not isinstance(func, (classmethod, staticmethod)): + func = classmethod(func) + return _ClassPropertyDescriptor(func) + + +def deprecatedclassproperty(name: Any = None, version: str = "", message: str = "", stacklevel: int = 2) -> Callable[[Any], _ClassPropertyDescriptor]: + def decorator(wrapped: Any) -> _ClassPropertyDescriptor: + func = classproperty(wrapped) + + # Override specific instance + def _patch(instance: _ClassPropertyDescriptor, func: Callable[..., Any]) -> None: + cls_: Any = type(instance) + + class _(cls_): # noqa: N801 + @func + def __get__(self, obj: Any, cls: Any = None) -> Any: + return super().__get__(obj, cls) + + instance.__class__ = _ + + # Add `deprecated` decorator on the top of `__get__` + _patch(func, deprecated(name, version, message, stacklevel)) + return func + return decorator From f696c52d324a388fb5baa6deaade7903cace8fcc Mon Sep 17 00:00:00 2001 From: Alicja Miloszewska Date: Thu, 7 Nov 2024 16:03:07 +0100 Subject: [PATCH 11/38] Update openvino/files Signed-off-by: Alicja Miloszewska --- src/bindings/python/src/openvino/frontend/frontend.py | 2 +- src/bindings/python/src/openvino/frontend/jax/jaxpr_decoder.py | 2 +- .../python/src/openvino/frontend/pytorch/fx_decoder.py | 2 +- .../src/openvino/frontend/pytorch/torchdynamo/backend.py | 2 -- .../src/openvino/frontend/pytorch/torchdynamo/backend_utils.py | 2 +- .../src/openvino/frontend/pytorch/torchdynamo/compile.py | 3 ++- .../src/openvino/frontend/pytorch/torchdynamo/execute.py | 3 ++- .../python/src/openvino/frontend/pytorch/ts_decoder.py | 2 +- .../python/src/openvino/frontend/tensorflow/node_decoder.py | 2 +- src/bindings/python/src/openvino/frontend/tensorflow/utils.py | 2 +- src/bindings/python/src/openvino/helpers/packing.py | 2 +- src/bindings/python/src/openvino/ie_api.py | 2 +- .../preprocess/torchvision/torchvision_preprocessing.py | 2 +- 13 files changed, 14 insertions(+), 14 deletions(-) diff --git a/src/bindings/python/src/openvino/frontend/frontend.py b/src/bindings/python/src/openvino/frontend/frontend.py index 4d549d24b4ef7c..bd975f203bc34c 100644 --- a/src/bindings/python/src/openvino/frontend/frontend.py +++ b/src/bindings/python/src/openvino/frontend/frontend.py @@ -7,7 +7,7 @@ from openvino._pyopenvino import FrontEnd as FrontEndBase from openvino._pyopenvino import FrontEndManager as FrontEndManagerBase from openvino._pyopenvino import InputModel -from openvino.runtime import Model +from openvino.ie_api import Model class FrontEnd(FrontEndBase): diff --git a/src/bindings/python/src/openvino/frontend/jax/jaxpr_decoder.py b/src/bindings/python/src/openvino/frontend/jax/jaxpr_decoder.py index 914f6b2e2ee548..f71105678062bc 100644 --- a/src/bindings/python/src/openvino/frontend/jax/jaxpr_decoder.py +++ b/src/bindings/python/src/openvino/frontend/jax/jaxpr_decoder.py @@ -6,7 +6,7 @@ import jax.core from openvino.frontend.jax.py_jax_frontend import _FrontEndJaxDecoder as Decoder -from openvino.runtime import PartialShape, Type as OVType, OVAny +from openvino._pyopenvino import PartialShape, Type as OVType, OVAny from openvino.frontend.jax.utils import jax_array_to_ov_const, get_ov_type_for_value, \ ivalue_to_constant, param_to_constants diff --git a/src/bindings/python/src/openvino/frontend/pytorch/fx_decoder.py b/src/bindings/python/src/openvino/frontend/pytorch/fx_decoder.py index c448571f1ac17a..61964624238287 100644 --- a/src/bindings/python/src/openvino/frontend/pytorch/fx_decoder.py +++ b/src/bindings/python/src/openvino/frontend/pytorch/fx_decoder.py @@ -10,7 +10,7 @@ from openvino.frontend.pytorch.py_pytorch_frontend import _FrontEndPytorchDecoder as Decoder from openvino.frontend.pytorch.py_pytorch_frontend import _Type as DecoderType -from openvino.runtime import PartialShape, Type as OVType, OVAny, Shape +from openvino._pyopenvino import PartialShape, Type as OVType, OVAny, Shape from openvino.frontend.pytorch.utils import make_constant, fetch_attr, pt_to_ov_type_map, torch_tensor_to_ov_const logger = logging.getLogger(__name__) diff --git a/src/bindings/python/src/openvino/frontend/pytorch/torchdynamo/backend.py b/src/bindings/python/src/openvino/frontend/pytorch/torchdynamo/backend.py index 9f2ef019769875..bc110a19888144 100644 --- a/src/bindings/python/src/openvino/frontend/pytorch/torchdynamo/backend.py +++ b/src/bindings/python/src/openvino/frontend/pytorch/torchdynamo/backend.py @@ -18,7 +18,6 @@ from torch._decomp import decomposition_table, get_decompositions from openvino.frontend import FrontEndManager -from openvino.runtime import Core, Type, PartialShape from openvino.frontend.pytorch.ts_decoder import TorchScriptPythonDecoder from openvino.frontend.pytorch.torchdynamo import decompositions from openvino.frontend.pytorch.torchdynamo.decompositions import get_aot_decomposition_list, get_inf_decomposition_list @@ -27,7 +26,6 @@ from openvino.frontend.pytorch.torchdynamo.compile import cached_model_name, openvino_compile_cached_model from openvino.frontend.pytorch.torchdynamo.backend_utils import _get_cache_dir, _get_device, _get_model_caching, _get_decompositions, _get_aot_autograd -from openvino.runtime import Core, Type, PartialShape logger = logging.getLogger(__name__) logger.setLevel(logging.WARNING) diff --git a/src/bindings/python/src/openvino/frontend/pytorch/torchdynamo/backend_utils.py b/src/bindings/python/src/openvino/frontend/pytorch/torchdynamo/backend_utils.py index 47b3b82806b18b..288acaba956dcf 100644 --- a/src/bindings/python/src/openvino/frontend/pytorch/torchdynamo/backend_utils.py +++ b/src/bindings/python/src/openvino/frontend/pytorch/torchdynamo/backend_utils.py @@ -5,7 +5,7 @@ # mypy: ignore-errors from typing import Optional, Any -from openvino.runtime import Core +from openvino.ie_api import Core def _get_device(options) -> Optional[Any]: diff --git a/src/bindings/python/src/openvino/frontend/pytorch/torchdynamo/compile.py b/src/bindings/python/src/openvino/frontend/pytorch/torchdynamo/compile.py index fa446893a05d07..a6bec6b521abbd 100644 --- a/src/bindings/python/src/openvino/frontend/pytorch/torchdynamo/compile.py +++ b/src/bindings/python/src/openvino/frontend/pytorch/torchdynamo/compile.py @@ -14,7 +14,8 @@ from openvino.frontend import FrontEndManager from openvino.frontend.pytorch.fx_decoder import TorchFXPythonDecoder -from openvino.runtime import Core, Type, PartialShape, serialize +from openvino.ie_api import Core +from openvino._pyopenvino import Type, PartialShape, serialize from openvino.frontend.pytorch.torchdynamo.backend_utils import _get_cache_dir, _get_device, _get_config, _is_cache_dir_in_config from typing import Callable, Optional diff --git a/src/bindings/python/src/openvino/frontend/pytorch/torchdynamo/execute.py b/src/bindings/python/src/openvino/frontend/pytorch/torchdynamo/execute.py index 4f41f7b5a6a9de..388595ae34c42e 100644 --- a/src/bindings/python/src/openvino/frontend/pytorch/torchdynamo/execute.py +++ b/src/bindings/python/src/openvino/frontend/pytorch/torchdynamo/execute.py @@ -20,7 +20,8 @@ from openvino.frontend.pytorch.fx_decoder import TorchFXPythonDecoder from openvino.frontend.pytorch.torchdynamo.partition import Partitioner from openvino.frontend.pytorch.torchdynamo.compile import openvino_compile -from openvino.runtime import Core, Type, PartialShape +from openvino.ie_api import Core +from openvino._pyopenvino import Type, PartialShape from openvino.frontend.pytorch.torchdynamo.backend_utils import _get_cache_dir, _get_device, _get_aot_autograd from typing import Callable, Optional, Any diff --git a/src/bindings/python/src/openvino/frontend/pytorch/ts_decoder.py b/src/bindings/python/src/openvino/frontend/pytorch/ts_decoder.py index af8eafda8e9be7..f0bd31031a26ba 100644 --- a/src/bindings/python/src/openvino/frontend/pytorch/ts_decoder.py +++ b/src/bindings/python/src/openvino/frontend/pytorch/ts_decoder.py @@ -6,7 +6,7 @@ from openvino.frontend.pytorch.py_pytorch_frontend import _FrontEndPytorchDecoder as Decoder from openvino.frontend.pytorch.py_pytorch_frontend import _Type as DecoderType -from openvino.runtime import op, PartialShape, Type as OVType, OVAny +from openvino._pyopenvino import op, PartialShape, Type as OVType, OVAny from openvino.frontend.pytorch.utils import ( ivalue_to_constant, get_value_from_getattr, diff --git a/src/bindings/python/src/openvino/frontend/tensorflow/node_decoder.py b/src/bindings/python/src/openvino/frontend/tensorflow/node_decoder.py index fcedd7a74c2b51..fff8c1d7fe35a0 100644 --- a/src/bindings/python/src/openvino/frontend/tensorflow/node_decoder.py +++ b/src/bindings/python/src/openvino/frontend/tensorflow/node_decoder.py @@ -7,7 +7,7 @@ import numpy as np import tensorflow as tf from openvino.frontend.tensorflow.py_tensorflow_frontend import _FrontEndDecoderBase as DecoderBase -from openvino.runtime import PartialShape, Type, OVAny, Tensor +from openvino._pyopenvino import PartialShape, Type, OVAny, Tensor def tf_type_to_ov_type(tf_type_int): diff --git a/src/bindings/python/src/openvino/frontend/tensorflow/utils.py b/src/bindings/python/src/openvino/frontend/tensorflow/utils.py index 74c0dfff92297e..6e52b82979fb26 100644 --- a/src/bindings/python/src/openvino/frontend/tensorflow/utils.py +++ b/src/bindings/python/src/openvino/frontend/tensorflow/utils.py @@ -8,7 +8,7 @@ import logging as log import numpy as np import sys -from openvino.runtime import PartialShape, Dimension, Type +from openvino._pyopenvino import PartialShape, Dimension, Type from packaging.version import parse, Version from typing import List, Dict, Union diff --git a/src/bindings/python/src/openvino/helpers/packing.py b/src/bindings/python/src/openvino/helpers/packing.py index 796af87402f3a6..74458ddb857722 100644 --- a/src/bindings/python/src/openvino/helpers/packing.py +++ b/src/bindings/python/src/openvino/helpers/packing.py @@ -5,7 +5,7 @@ import numpy as np from typing import Union -from openvino.runtime import Type, Shape +from openvino._pyopenvino import Type, Shape def pack_data(array: np.ndarray, type: Type) -> np.ndarray: diff --git a/src/bindings/python/src/openvino/ie_api.py b/src/bindings/python/src/openvino/ie_api.py index 08f6873d1b8f0f..aa8c202858759f 100644 --- a/src/bindings/python/src/openvino/ie_api.py +++ b/src/bindings/python/src/openvino/ie_api.py @@ -15,7 +15,7 @@ from openvino._pyopenvino import Tensor from openvino._pyopenvino import Node -from openvino.runtime.utils.data_helpers import ( +from openvino.utils.data_helpers import ( OVDict, _InferRequestWrapper, _data_dispatch, diff --git a/src/bindings/python/src/openvino/preprocess/torchvision/torchvision_preprocessing.py b/src/bindings/python/src/openvino/preprocess/torchvision/torchvision_preprocessing.py index f8b51afd546f57..224962da54f9ec 100644 --- a/src/bindings/python/src/openvino/preprocess/torchvision/torchvision_preprocessing.py +++ b/src/bindings/python/src/openvino/preprocess/torchvision/torchvision_preprocessing.py @@ -22,7 +22,7 @@ import openvino.runtime as ov import openvino.runtime.opset11 as ops -from openvino.runtime import Layout, Type +from openvino._pyopenvino import Layout, Type from openvino.runtime.utils.decorators import custom_preprocess_function from openvino.preprocess import PrePostProcessor, ResizeAlgorithm, ColorFormat From 2e5a21adce42515c673b18e5545eeea6bb9c5df8 Mon Sep 17 00:00:00 2001 From: Alicja Miloszewska Date: Fri, 8 Nov 2024 11:22:25 +0100 Subject: [PATCH 12/38] Restore file structure in runtime/ and remove openvino/opsets/ dir Signed-off-by: Alicja Miloszewska --- .../src/openvino/{opsets => }/op/__init__.py | 0 .../openvino/{opsets => }/op/util/__init__.py | 0 .../python/src/openvino/opset1/__init__.py | 112 ++++++++++ .../src/openvino/{opsets => }/opset1/ops.py | 4 +- .../python/src/openvino/opset10/__init__.py | 179 +++++++++++++++ .../src/openvino/{opsets => }/opset10/ops.py | 2 +- .../python/src/openvino/opset11/__init__.py | 179 +++++++++++++++ .../src/openvino/{opsets => }/opset11/ops.py | 2 +- .../python/src/openvino/opset12/__init__.py | 180 ++++++++++++++++ .../src/openvino/{opsets => }/opset12/ops.py | 2 +- .../python/src/openvino/opset13/__init__.py | 188 ++++++++++++++++ .../src/openvino/{opsets => }/opset13/ops.py | 6 +- .../python/src/openvino/opset14/__init__.py | 190 ++++++++++++++++ .../src/openvino/{opsets => }/opset14/ops.py | 2 +- .../python/src/openvino/opset15/__init__.py | 204 ++++++++++++++++++ .../src/openvino/{opsets => }/opset15/ops.py | 6 +- .../python/src/openvino/opset2/__init__.py | 118 ++++++++++ .../src/openvino/{opsets => }/opset2/ops.py | 4 +- .../python/src/openvino/opset3/__init__.py | 134 ++++++++++++ .../src/openvino/{opsets => }/opset3/ops.py | 4 +- .../python/src/openvino/opset4/__init__.py | 145 +++++++++++++ .../src/openvino/{opsets => }/opset4/ops.py | 4 +- .../python/src/openvino/opset5/__init__.py | 152 +++++++++++++ .../src/openvino/{opsets => }/opset5/ops.py | 4 +- .../python/src/openvino/opset6/__init__.py | 154 +++++++++++++ .../src/openvino/{opsets => }/opset6/ops.py | 8 +- .../python/src/openvino/opset7/__init__.py | 158 ++++++++++++++ .../src/openvino/{opsets => }/opset7/ops.py | 4 +- .../python/src/openvino/opset8/__init__.py | 169 +++++++++++++++ .../src/openvino/{opsets => }/opset8/ops.py | 4 +- .../python/src/openvino/opset9/__init__.py | 175 +++++++++++++++ .../src/openvino/{opsets => }/opset9/ops.py | 2 +- .../src/openvino/{opsets => }/opset_utils.py | 0 .../src/openvino/opsets/opset1/__init__.py | 112 ---------- .../src/openvino/opsets/opset10/__init__.py | 179 --------------- .../src/openvino/opsets/opset11/__init__.py | 179 --------------- .../src/openvino/opsets/opset12/__init__.py | 180 ---------------- .../src/openvino/opsets/opset13/__init__.py | 188 ---------------- .../src/openvino/opsets/opset14/__init__.py | 190 ---------------- .../src/openvino/opsets/opset15/__init__.py | 204 ------------------ .../src/openvino/opsets/opset2/__init__.py | 118 ---------- .../src/openvino/opsets/opset3/__init__.py | 134 ------------ .../src/openvino/opsets/opset4/__init__.py | 145 ------------- .../src/openvino/opsets/opset5/__init__.py | 152 ------------- .../src/openvino/opsets/opset6/__init__.py | 154 ------------- .../src/openvino/opsets/opset7/__init__.py | 158 -------------- .../src/openvino/opsets/opset8/__init__.py | 169 --------------- .../src/openvino/opsets/opset9/__init__.py | 175 --------------- .../python/src/openvino/runtime/__init__.py | 31 ++- .../python/src/openvino/runtime/exceptions.py | 5 + .../python/src/openvino/runtime/ie_api.py | 5 + .../src/openvino/runtime/op/__init__.py | 11 + .../src/openvino/runtime/op/util/__init__.py | 11 + .../src/openvino/runtime/opset1/__init__.py | 5 + .../src/openvino/runtime/opset10/__init__.py | 5 + .../src/openvino/runtime/opset11/__init__.py | 5 + .../src/openvino/runtime/opset12/__init__.py | 5 + .../src/openvino/runtime/opset13/__init__.py | 6 + .../src/openvino/runtime/opset14/__init__.py | 5 + .../src/openvino/runtime/opset15/__init__.py | 5 + .../src/openvino/runtime/opset2/__init__.py | 5 + .../src/openvino/runtime/opset3/__init__.py | 5 + .../src/openvino/runtime/opset4/__init__.py | 5 + .../src/openvino/runtime/opset5/__init__.py | 5 + .../src/openvino/runtime/opset6/__init__.py | 5 + .../src/openvino/runtime/opset7/__init__.py | 5 + .../src/openvino/runtime/opset8/__init__.py | 5 + .../src/openvino/runtime/opset9/__init__.py | 5 + .../src/openvino/runtime/opset_utils.py | 5 + .../src/openvino/runtime/utils/__init__.py | 7 + .../openvino/runtime/utils/broadcasting.py | 5 + .../runtime/utils/data_helpers/__init__.py | 8 + .../utils/data_helpers/data_dispatcher.py | 5 + .../runtime/utils/data_helpers/wrappers.py | 5 + .../src/openvino/runtime/utils/decorators.py | 5 + .../runtime/utils/input_validation.py | 6 + .../openvino/runtime/utils/node_factory.py | 5 + .../src/openvino/runtime/utils/reduction.py | 5 + .../src/openvino/runtime/utils/types.py | 5 + .../python/src/openvino/utils/types.py | 2 +- 80 files changed, 2650 insertions(+), 2484 deletions(-) rename src/bindings/python/src/openvino/{opsets => }/op/__init__.py (100%) rename src/bindings/python/src/openvino/{opsets => }/op/util/__init__.py (100%) create mode 100644 src/bindings/python/src/openvino/opset1/__init__.py rename src/bindings/python/src/openvino/{opsets => }/opset1/ops.py (99%) create mode 100644 src/bindings/python/src/openvino/opset10/__init__.py rename src/bindings/python/src/openvino/{opsets => }/opset10/ops.py (99%) create mode 100644 src/bindings/python/src/openvino/opset11/__init__.py rename src/bindings/python/src/openvino/{opsets => }/opset11/ops.py (98%) create mode 100644 src/bindings/python/src/openvino/opset12/__init__.py rename src/bindings/python/src/openvino/{opsets => }/opset12/ops.py (98%) create mode 100644 src/bindings/python/src/openvino/opset13/__init__.py rename src/bindings/python/src/openvino/{opsets => }/opset13/ops.py (99%) create mode 100644 src/bindings/python/src/openvino/opset14/__init__.py rename src/bindings/python/src/openvino/{opsets => }/opset14/ops.py (99%) create mode 100644 src/bindings/python/src/openvino/opset15/__init__.py rename src/bindings/python/src/openvino/{opsets => }/opset15/ops.py (98%) create mode 100644 src/bindings/python/src/openvino/opset2/__init__.py rename src/bindings/python/src/openvino/{opsets => }/opset2/ops.py (98%) create mode 100644 src/bindings/python/src/openvino/opset3/__init__.py rename src/bindings/python/src/openvino/{opsets => }/opset3/ops.py (99%) create mode 100644 src/bindings/python/src/openvino/opset4/__init__.py rename src/bindings/python/src/openvino/{opsets => }/opset4/ops.py (99%) create mode 100644 src/bindings/python/src/openvino/opset5/__init__.py rename src/bindings/python/src/openvino/{opsets => }/opset5/ops.py (99%) create mode 100644 src/bindings/python/src/openvino/opset6/__init__.py rename src/bindings/python/src/openvino/{opsets => }/opset6/ops.py (97%) create mode 100644 src/bindings/python/src/openvino/opset7/__init__.py rename src/bindings/python/src/openvino/{opsets => }/opset7/ops.py (97%) create mode 100644 src/bindings/python/src/openvino/opset8/__init__.py rename src/bindings/python/src/openvino/{opsets => }/opset8/ops.py (99%) create mode 100644 src/bindings/python/src/openvino/opset9/__init__.py rename src/bindings/python/src/openvino/{opsets => }/opset9/ops.py (99%) rename src/bindings/python/src/openvino/{opsets => }/opset_utils.py (100%) delete mode 100644 src/bindings/python/src/openvino/opsets/opset1/__init__.py delete mode 100644 src/bindings/python/src/openvino/opsets/opset10/__init__.py delete mode 100644 src/bindings/python/src/openvino/opsets/opset11/__init__.py delete mode 100644 src/bindings/python/src/openvino/opsets/opset12/__init__.py delete mode 100644 src/bindings/python/src/openvino/opsets/opset13/__init__.py delete mode 100644 src/bindings/python/src/openvino/opsets/opset14/__init__.py delete mode 100644 src/bindings/python/src/openvino/opsets/opset15/__init__.py delete mode 100644 src/bindings/python/src/openvino/opsets/opset2/__init__.py delete mode 100644 src/bindings/python/src/openvino/opsets/opset3/__init__.py delete mode 100644 src/bindings/python/src/openvino/opsets/opset4/__init__.py delete mode 100644 src/bindings/python/src/openvino/opsets/opset5/__init__.py delete mode 100644 src/bindings/python/src/openvino/opsets/opset6/__init__.py delete mode 100644 src/bindings/python/src/openvino/opsets/opset7/__init__.py delete mode 100644 src/bindings/python/src/openvino/opsets/opset8/__init__.py delete mode 100644 src/bindings/python/src/openvino/opsets/opset9/__init__.py create mode 100644 src/bindings/python/src/openvino/runtime/exceptions.py create mode 100644 src/bindings/python/src/openvino/runtime/ie_api.py create mode 100644 src/bindings/python/src/openvino/runtime/op/__init__.py create mode 100644 src/bindings/python/src/openvino/runtime/op/util/__init__.py create mode 100644 src/bindings/python/src/openvino/runtime/opset1/__init__.py create mode 100644 src/bindings/python/src/openvino/runtime/opset10/__init__.py create mode 100644 src/bindings/python/src/openvino/runtime/opset11/__init__.py create mode 100644 src/bindings/python/src/openvino/runtime/opset12/__init__.py create mode 100644 src/bindings/python/src/openvino/runtime/opset13/__init__.py create mode 100644 src/bindings/python/src/openvino/runtime/opset14/__init__.py create mode 100644 src/bindings/python/src/openvino/runtime/opset15/__init__.py create mode 100644 src/bindings/python/src/openvino/runtime/opset2/__init__.py create mode 100644 src/bindings/python/src/openvino/runtime/opset3/__init__.py create mode 100644 src/bindings/python/src/openvino/runtime/opset4/__init__.py create mode 100644 src/bindings/python/src/openvino/runtime/opset5/__init__.py create mode 100644 src/bindings/python/src/openvino/runtime/opset6/__init__.py create mode 100644 src/bindings/python/src/openvino/runtime/opset7/__init__.py create mode 100644 src/bindings/python/src/openvino/runtime/opset8/__init__.py create mode 100644 src/bindings/python/src/openvino/runtime/opset9/__init__.py create mode 100644 src/bindings/python/src/openvino/runtime/opset_utils.py create mode 100644 src/bindings/python/src/openvino/runtime/utils/__init__.py create mode 100644 src/bindings/python/src/openvino/runtime/utils/broadcasting.py create mode 100644 src/bindings/python/src/openvino/runtime/utils/data_helpers/__init__.py create mode 100644 src/bindings/python/src/openvino/runtime/utils/data_helpers/data_dispatcher.py create mode 100644 src/bindings/python/src/openvino/runtime/utils/data_helpers/wrappers.py create mode 100644 src/bindings/python/src/openvino/runtime/utils/decorators.py create mode 100644 src/bindings/python/src/openvino/runtime/utils/input_validation.py create mode 100644 src/bindings/python/src/openvino/runtime/utils/node_factory.py create mode 100644 src/bindings/python/src/openvino/runtime/utils/reduction.py create mode 100644 src/bindings/python/src/openvino/runtime/utils/types.py diff --git a/src/bindings/python/src/openvino/opsets/op/__init__.py b/src/bindings/python/src/openvino/op/__init__.py similarity index 100% rename from src/bindings/python/src/openvino/opsets/op/__init__.py rename to src/bindings/python/src/openvino/op/__init__.py diff --git a/src/bindings/python/src/openvino/opsets/op/util/__init__.py b/src/bindings/python/src/openvino/op/util/__init__.py similarity index 100% rename from src/bindings/python/src/openvino/opsets/op/util/__init__.py rename to src/bindings/python/src/openvino/op/util/__init__.py diff --git a/src/bindings/python/src/openvino/opset1/__init__.py b/src/bindings/python/src/openvino/opset1/__init__.py new file mode 100644 index 00000000000000..300098bdd5283c --- /dev/null +++ b/src/bindings/python/src/openvino/opset1/__init__.py @@ -0,0 +1,112 @@ +# -*- coding: utf-8 -*- +# Copyright (C) 2018-2024 Intel Corporation +# SPDX-License-Identifier: Apache-2.0 + +from openvino.opset1.ops import absolute +from openvino.opset1.ops import absolute as abs +from openvino.opset1.ops import acos +from openvino.opset1.ops import add +from openvino.opset1.ops import asin +from openvino.opset1.ops import atan +from openvino.opset1.ops import avg_pool +from openvino.opset1.ops import batch_norm_inference +from openvino.opset1.ops import binary_convolution +from openvino.opset1.ops import broadcast +from openvino.opset1.ops import ceiling +from openvino.opset1.ops import ceiling as ceil +from openvino.opset1.ops import clamp +from openvino.opset1.ops import concat +from openvino.opset1.ops import constant +from openvino.opset1.ops import convert +from openvino.opset1.ops import convert_like +from openvino.opset1.ops import convolution +from openvino.opset1.ops import convolution_backprop_data +from openvino.opset1.ops import cos +from openvino.opset1.ops import cosh +from openvino.opset1.ops import ctc_greedy_decoder +from openvino.opset1.ops import deformable_convolution +from openvino.opset1.ops import deformable_psroi_pooling +from openvino.opset1.ops import depth_to_space +from openvino.opset1.ops import detection_output +from openvino.opset1.ops import divide +from openvino.opset1.ops import elu +from openvino.opset1.ops import equal +from openvino.opset1.ops import erf +from openvino.opset1.ops import exp +from openvino.opset1.ops import fake_quantize +from openvino.opset1.ops import floor +from openvino.opset1.ops import floor_mod +from openvino.opset1.ops import gather +from openvino.opset1.ops import gather_tree +from openvino.opset1.ops import greater +from openvino.opset1.ops import greater_equal +from openvino.opset1.ops import grn +from openvino.opset1.ops import group_convolution +from openvino.opset1.ops import group_convolution_backprop_data +from openvino.opset1.ops import hard_sigmoid +from openvino.opset1.ops import interpolate +from openvino.opset1.ops import less +from openvino.opset1.ops import less_equal +from openvino.opset1.ops import log +from openvino.opset1.ops import logical_and +from openvino.opset1.ops import logical_not +from openvino.opset1.ops import logical_or +from openvino.opset1.ops import logical_xor +from openvino.opset1.ops import lrn +from openvino.opset1.ops import lstm_cell +from openvino.opset1.ops import lstm_sequence +from openvino.opset1.ops import matmul +from openvino.opset1.ops import max_pool +from openvino.opset1.ops import maximum +from openvino.opset1.ops import minimum +from openvino.opset1.ops import mod +from openvino.opset1.ops import multiply +from openvino.opset1.ops import negative +from openvino.opset1.ops import non_max_suppression +from openvino.opset1.ops import normalize_l2 +from openvino.opset1.ops import not_equal +from openvino.opset1.ops import one_hot +from openvino.opset1.ops import pad +from openvino.opset1.ops import parameter +from openvino.opset1.ops import power +from openvino.opset1.ops import prelu +from openvino.opset1.ops import prior_box +from openvino.opset1.ops import prior_box_clustered +from openvino.opset1.ops import psroi_pooling +from openvino.opset1.ops import proposal +from openvino.opset1.ops import range +from openvino.opset1.ops import reduce_logical_and +from openvino.opset1.ops import reduce_logical_or +from openvino.opset1.ops import reduce_max +from openvino.opset1.ops import reduce_mean +from openvino.opset1.ops import reduce_min +from openvino.opset1.ops import reduce_prod +from openvino.opset1.ops import reduce_sum +from openvino.opset1.ops import region_yolo +from openvino.opset1.ops import relu +from openvino.opset1.ops import reshape +from openvino.opset1.ops import result +from openvino.opset1.ops import reverse_sequence +from openvino.opset1.ops import select +from openvino.opset1.ops import selu +from openvino.opset1.ops import shape_of +from openvino.opset1.ops import sigmoid +from openvino.opset1.ops import sign +from openvino.opset1.ops import sin +from openvino.opset1.ops import sinh +from openvino.opset1.ops import softmax +from openvino.opset1.ops import space_to_depth +from openvino.opset1.ops import split +from openvino.opset1.ops import sqrt +from openvino.opset1.ops import squared_difference +from openvino.opset1.ops import squeeze +from openvino.opset1.ops import strided_slice +from openvino.opset1.ops import subtract +from openvino.opset1.ops import tan +from openvino.opset1.ops import tanh +from openvino.opset1.ops import tensor_iterator +from openvino.opset1.ops import tile +from openvino.opset1.ops import topk +from openvino.opset1.ops import transpose +from openvino.opset1.ops import unsqueeze +from openvino.opset1.ops import variadic_split diff --git a/src/bindings/python/src/openvino/opsets/opset1/ops.py b/src/bindings/python/src/openvino/opset1/ops.py similarity index 99% rename from src/bindings/python/src/openvino/opsets/opset1/ops.py rename to src/bindings/python/src/openvino/opset1/ops.py index b57c77668645dd..22d6b594ab4a5d 100644 --- a/src/bindings/python/src/openvino/opsets/opset1/ops.py +++ b/src/bindings/python/src/openvino/opset1/ops.py @@ -9,8 +9,8 @@ from functools import partial from openvino._pyopenvino import Node, PartialShape, Type -from openvino.opsets.op import Constant, Parameter, tensor_iterator -from openvino.opsets.opset_utils import _get_node_factory +from openvino.op import Constant, Parameter, tensor_iterator +from openvino.opset_utils import _get_node_factory from openvino.utils.decorators import binary_op, nameable_op, unary_op from openvino.utils.input_validation import ( check_valid_attributes, diff --git a/src/bindings/python/src/openvino/opset10/__init__.py b/src/bindings/python/src/openvino/opset10/__init__.py new file mode 100644 index 00000000000000..659cb99bb8644d --- /dev/null +++ b/src/bindings/python/src/openvino/opset10/__init__.py @@ -0,0 +1,179 @@ +# -*- coding: utf-8 -*- +# Copyright (C) 2018-2024 Intel Corporation +# SPDX-License-Identifier: Apache-2.0 + +from openvino.opset1.ops import absolute +from openvino.opset1.ops import absolute as abs +from openvino.opset1.ops import acos +from openvino.opset4.ops import acosh +from openvino.opset8.ops import adaptive_avg_pool +from openvino.opset8.ops import adaptive_max_pool +from openvino.opset1.ops import add +from openvino.opset1.ops import asin +from openvino.opset4.ops import asinh +from openvino.opset6.ops import assign +from openvino.opset1.ops import atan +from openvino.opset4.ops import atanh +from openvino.opset1.ops import avg_pool +from openvino.opset5.ops import batch_norm_inference +from openvino.opset2.ops import batch_to_space +from openvino.opset1.ops import binary_convolution +from openvino.opset3.ops import broadcast +from openvino.opset3.ops import bucketize +from openvino.opset1.ops import ceiling +from openvino.opset1.ops import ceiling as ceil +from openvino.opset1.ops import clamp +from openvino.opset1.ops import concat +from openvino.opset1.ops import constant +from openvino.opset1.ops import convert +from openvino.opset1.ops import convert_like +from openvino.opset1.ops import convolution +from openvino.opset1.ops import convolution_backprop_data +from openvino.opset1.ops import cos +from openvino.opset1.ops import cosh +from openvino.opset1.ops import ctc_greedy_decoder +from openvino.opset6.ops import ctc_greedy_decoder_seq_len +from openvino.opset4.ops import ctc_loss +from openvino.opset3.ops import cum_sum +from openvino.opset3.ops import cum_sum as cumsum +from openvino.opset8.ops import deformable_convolution +from openvino.opset1.ops import deformable_psroi_pooling +from openvino.opset1.ops import depth_to_space +from openvino.opset8.ops import detection_output +from openvino.opset7.ops import dft +from openvino.opset1.ops import divide +from openvino.opset7.ops import einsum +from openvino.opset1.ops import elu +from openvino.opset3.ops import embedding_bag_offsets_sum +from openvino.opset3.ops import embedding_bag_packed_sum +from openvino.opset3.ops import embedding_segments_sum +from openvino.opset3.ops import extract_image_patches +from openvino.opset1.ops import equal +from openvino.opset1.ops import erf +from openvino.opset1.ops import exp +from openvino.opset9.ops import eye +from openvino.opset1.ops import fake_quantize +from openvino.opset1.ops import floor +from openvino.opset1.ops import floor_mod +from openvino.opset8.ops import gather +from openvino.opset6.ops import gather_elements +from openvino.opset8.ops import gather_nd +from openvino.opset1.ops import gather_tree +from openvino.opset7.ops import gelu +from openvino.opset9.ops import generate_proposals +from openvino.opset1.ops import greater +from openvino.opset1.ops import greater_equal +from openvino.opset9.ops import grid_sample +from openvino.opset1.ops import grn +from openvino.opset1.ops import group_convolution +from openvino.opset1.ops import group_convolution_backprop_data +from openvino.opset3.ops import gru_cell +from openvino.opset5.ops import gru_sequence +from openvino.opset1.ops import hard_sigmoid +from openvino.opset5.ops import hsigmoid +from openvino.opset4.ops import hswish +from openvino.opset7.ops import idft +from openvino.opset8.ops import if_op +from openvino.opset10.ops import interpolate +from openvino.opset9.ops import irdft +from openvino.opset10.ops import is_finite +from openvino.opset10.ops import is_inf +from openvino.opset10.ops import is_nan +from openvino.opset8.ops import i420_to_bgr +from openvino.opset8.ops import i420_to_rgb +from openvino.opset1.ops import less +from openvino.opset1.ops import less_equal +from openvino.opset1.ops import log +from openvino.opset1.ops import logical_and +from openvino.opset1.ops import logical_not +from openvino.opset1.ops import logical_or +from openvino.opset1.ops import logical_xor +from openvino.opset5.ops import log_softmax +from openvino.opset5.ops import loop +from openvino.opset1.ops import lrn +from openvino.opset4.ops import lstm_cell +from openvino.opset5.ops import lstm_sequence +from openvino.opset1.ops import matmul +from openvino.opset8.ops import matrix_nms +from openvino.opset8.ops import max_pool +from openvino.opset1.ops import maximum +from openvino.opset1.ops import minimum +from openvino.opset4.ops import mish +from openvino.opset1.ops import mod +from openvino.opset9.ops import multiclass_nms +from openvino.opset1.ops import multiply +from openvino.opset6.ops import mvn +from openvino.opset1.ops import negative +from openvino.opset9.ops import non_max_suppression +from openvino.opset3.ops import non_zero +from openvino.opset1.ops import normalize_l2 +from openvino.opset1.ops import not_equal +from openvino.opset8.ops import nv12_to_bgr +from openvino.opset8.ops import nv12_to_rgb +from openvino.opset1.ops import one_hot +from openvino.opset1.ops import pad +from openvino.opset1.ops import parameter +from openvino.opset1.ops import power +from openvino.opset1.ops import prelu +from openvino.opset8.ops import prior_box +from openvino.opset1.ops import prior_box_clustered +from openvino.opset1.ops import psroi_pooling +from openvino.opset4.ops import proposal +from openvino.opset1.ops import range +from openvino.opset8.ops import random_uniform +from openvino.opset9.ops import rdft +from openvino.opset6.ops import read_value +from openvino.opset4.ops import reduce_l1 +from openvino.opset4.ops import reduce_l2 +from openvino.opset1.ops import reduce_logical_and +from openvino.opset1.ops import reduce_logical_or +from openvino.opset1.ops import reduce_max +from openvino.opset1.ops import reduce_mean +from openvino.opset1.ops import reduce_min +from openvino.opset1.ops import reduce_prod +from openvino.opset1.ops import reduce_sum +from openvino.opset1.ops import region_yolo +from openvino.opset2.ops import reorg_yolo +from openvino.opset1.ops import relu +from openvino.opset1.ops import reshape +from openvino.opset1.ops import result +from openvino.opset1.ops import reverse_sequence +from openvino.opset3.ops import rnn_cell +from openvino.opset5.ops import rnn_sequence +from openvino.opset9.ops import roi_align +from openvino.opset2.ops import roi_pooling +from openvino.opset7.ops import roll +from openvino.opset5.ops import round +from openvino.opset3.ops import scatter_elements_update +from openvino.opset4.ops import scatter_nd_update +from openvino.opset3.ops import scatter_update +from openvino.opset1.ops import select +from openvino.opset1.ops import selu +from openvino.opset3.ops import shape_of +from openvino.opset3.ops import shuffle_channels +from openvino.opset1.ops import sigmoid +from openvino.opset1.ops import sign +from openvino.opset1.ops import sin +from openvino.opset1.ops import sinh +from openvino.opset8.ops import slice +from openvino.opset8.ops import softmax +from openvino.opset4.ops import softplus +from openvino.opset9.ops import softsign +from openvino.opset2.ops import space_to_batch +from openvino.opset1.ops import space_to_depth +from openvino.opset1.ops import split +from openvino.opset1.ops import sqrt +from openvino.opset1.ops import squared_difference +from openvino.opset1.ops import squeeze +from openvino.opset1.ops import strided_slice +from openvino.opset1.ops import subtract +from openvino.opset4.ops import swish +from openvino.opset1.ops import tan +from openvino.opset1.ops import tanh +from openvino.opset1.ops import tensor_iterator +from openvino.opset1.ops import tile +from openvino.opset3.ops import topk +from openvino.opset1.ops import transpose +from openvino.opset10.ops import unique +from openvino.opset1.ops import unsqueeze +from openvino.opset1.ops import variadic_split diff --git a/src/bindings/python/src/openvino/opsets/opset10/ops.py b/src/bindings/python/src/openvino/opset10/ops.py similarity index 99% rename from src/bindings/python/src/openvino/opsets/opset10/ops.py rename to src/bindings/python/src/openvino/opset10/ops.py index 9edd44a88fad88..3b0b1376bb1ab9 100644 --- a/src/bindings/python/src/openvino/opsets/opset10/ops.py +++ b/src/bindings/python/src/openvino/opset10/ops.py @@ -7,7 +7,7 @@ from typing import List, Optional from openvino._pyopenvino import Node -from openvino.opsets.opset_utils import _get_node_factory +from openvino.opset_utils import _get_node_factory from openvino.utils.decorators import nameable_op from openvino.utils.types import ( NodeInput, diff --git a/src/bindings/python/src/openvino/opset11/__init__.py b/src/bindings/python/src/openvino/opset11/__init__.py new file mode 100644 index 00000000000000..2a07b9fab9f2c4 --- /dev/null +++ b/src/bindings/python/src/openvino/opset11/__init__.py @@ -0,0 +1,179 @@ +# -*- coding: utf-8 -*- +# Copyright (C) 2018-2024 Intel Corporation +# SPDX-License-Identifier: Apache-2.0 + +from openvino.opset1.ops import absolute +from openvino.opset1.ops import absolute as abs +from openvino.opset1.ops import acos +from openvino.opset4.ops import acosh +from openvino.opset8.ops import adaptive_avg_pool +from openvino.opset8.ops import adaptive_max_pool +from openvino.opset1.ops import add +from openvino.opset1.ops import asin +from openvino.opset4.ops import asinh +from openvino.opset6.ops import assign +from openvino.opset1.ops import atan +from openvino.opset4.ops import atanh +from openvino.opset1.ops import avg_pool +from openvino.opset5.ops import batch_norm_inference +from openvino.opset2.ops import batch_to_space +from openvino.opset1.ops import binary_convolution +from openvino.opset3.ops import broadcast +from openvino.opset3.ops import bucketize +from openvino.opset1.ops import ceiling +from openvino.opset1.ops import ceiling as ceil +from openvino.opset1.ops import clamp +from openvino.opset1.ops import concat +from openvino.opset1.ops import constant +from openvino.opset1.ops import convert +from openvino.opset1.ops import convert_like +from openvino.opset1.ops import convolution +from openvino.opset1.ops import convolution_backprop_data +from openvino.opset1.ops import cos +from openvino.opset1.ops import cosh +from openvino.opset1.ops import ctc_greedy_decoder +from openvino.opset6.ops import ctc_greedy_decoder_seq_len +from openvino.opset4.ops import ctc_loss +from openvino.opset3.ops import cum_sum +from openvino.opset3.ops import cum_sum as cumsum +from openvino.opset8.ops import deformable_convolution +from openvino.opset1.ops import deformable_psroi_pooling +from openvino.opset1.ops import depth_to_space +from openvino.opset8.ops import detection_output +from openvino.opset7.ops import dft +from openvino.opset1.ops import divide +from openvino.opset7.ops import einsum +from openvino.opset1.ops import elu +from openvino.opset3.ops import embedding_bag_offsets_sum +from openvino.opset3.ops import embedding_bag_packed_sum +from openvino.opset3.ops import embedding_segments_sum +from openvino.opset3.ops import extract_image_patches +from openvino.opset1.ops import equal +from openvino.opset1.ops import erf +from openvino.opset1.ops import exp +from openvino.opset9.ops import eye +from openvino.opset1.ops import fake_quantize +from openvino.opset1.ops import floor +from openvino.opset1.ops import floor_mod +from openvino.opset8.ops import gather +from openvino.opset6.ops import gather_elements +from openvino.opset8.ops import gather_nd +from openvino.opset1.ops import gather_tree +from openvino.opset7.ops import gelu +from openvino.opset9.ops import generate_proposals +from openvino.opset1.ops import greater +from openvino.opset1.ops import greater_equal +from openvino.opset9.ops import grid_sample +from openvino.opset1.ops import grn +from openvino.opset1.ops import group_convolution +from openvino.opset1.ops import group_convolution_backprop_data +from openvino.opset3.ops import gru_cell +from openvino.opset5.ops import gru_sequence +from openvino.opset1.ops import hard_sigmoid +from openvino.opset5.ops import hsigmoid +from openvino.opset4.ops import hswish +from openvino.opset7.ops import idft +from openvino.opset8.ops import if_op +from openvino.opset11.ops import interpolate +from openvino.opset9.ops import irdft +from openvino.opset10.ops import is_finite +from openvino.opset10.ops import is_inf +from openvino.opset10.ops import is_nan +from openvino.opset8.ops import i420_to_bgr +from openvino.opset8.ops import i420_to_rgb +from openvino.opset1.ops import less +from openvino.opset1.ops import less_equal +from openvino.opset1.ops import log +from openvino.opset1.ops import logical_and +from openvino.opset1.ops import logical_not +from openvino.opset1.ops import logical_or +from openvino.opset1.ops import logical_xor +from openvino.opset5.ops import log_softmax +from openvino.opset5.ops import loop +from openvino.opset1.ops import lrn +from openvino.opset4.ops import lstm_cell +from openvino.opset5.ops import lstm_sequence +from openvino.opset1.ops import matmul +from openvino.opset8.ops import matrix_nms +from openvino.opset8.ops import max_pool +from openvino.opset1.ops import maximum +from openvino.opset1.ops import minimum +from openvino.opset4.ops import mish +from openvino.opset1.ops import mod +from openvino.opset9.ops import multiclass_nms +from openvino.opset1.ops import multiply +from openvino.opset6.ops import mvn +from openvino.opset1.ops import negative +from openvino.opset9.ops import non_max_suppression +from openvino.opset3.ops import non_zero +from openvino.opset1.ops import normalize_l2 +from openvino.opset1.ops import not_equal +from openvino.opset8.ops import nv12_to_bgr +from openvino.opset8.ops import nv12_to_rgb +from openvino.opset1.ops import one_hot +from openvino.opset1.ops import pad +from openvino.opset1.ops import parameter +from openvino.opset1.ops import power +from openvino.opset1.ops import prelu +from openvino.opset8.ops import prior_box +from openvino.opset1.ops import prior_box_clustered +from openvino.opset1.ops import psroi_pooling +from openvino.opset4.ops import proposal +from openvino.opset1.ops import range +from openvino.opset8.ops import random_uniform +from openvino.opset9.ops import rdft +from openvino.opset6.ops import read_value +from openvino.opset4.ops import reduce_l1 +from openvino.opset4.ops import reduce_l2 +from openvino.opset1.ops import reduce_logical_and +from openvino.opset1.ops import reduce_logical_or +from openvino.opset1.ops import reduce_max +from openvino.opset1.ops import reduce_mean +from openvino.opset1.ops import reduce_min +from openvino.opset1.ops import reduce_prod +from openvino.opset1.ops import reduce_sum +from openvino.opset1.ops import region_yolo +from openvino.opset2.ops import reorg_yolo +from openvino.opset1.ops import relu +from openvino.opset1.ops import reshape +from openvino.opset1.ops import result +from openvino.opset1.ops import reverse_sequence +from openvino.opset3.ops import rnn_cell +from openvino.opset5.ops import rnn_sequence +from openvino.opset9.ops import roi_align +from openvino.opset2.ops import roi_pooling +from openvino.opset7.ops import roll +from openvino.opset5.ops import round +from openvino.opset3.ops import scatter_elements_update +from openvino.opset4.ops import scatter_nd_update +from openvino.opset3.ops import scatter_update +from openvino.opset1.ops import select +from openvino.opset1.ops import selu +from openvino.opset3.ops import shape_of +from openvino.opset3.ops import shuffle_channels +from openvino.opset1.ops import sigmoid +from openvino.opset1.ops import sign +from openvino.opset1.ops import sin +from openvino.opset1.ops import sinh +from openvino.opset8.ops import slice +from openvino.opset8.ops import softmax +from openvino.opset4.ops import softplus +from openvino.opset9.ops import softsign +from openvino.opset2.ops import space_to_batch +from openvino.opset1.ops import space_to_depth +from openvino.opset1.ops import split +from openvino.opset1.ops import sqrt +from openvino.opset1.ops import squared_difference +from openvino.opset1.ops import squeeze +from openvino.opset1.ops import strided_slice +from openvino.opset1.ops import subtract +from openvino.opset4.ops import swish +from openvino.opset1.ops import tan +from openvino.opset1.ops import tanh +from openvino.opset1.ops import tensor_iterator +from openvino.opset1.ops import tile +from openvino.opset11.ops import topk +from openvino.opset1.ops import transpose +from openvino.opset10.ops import unique +from openvino.opset1.ops import unsqueeze +from openvino.opset1.ops import variadic_split diff --git a/src/bindings/python/src/openvino/opsets/opset11/ops.py b/src/bindings/python/src/openvino/opset11/ops.py similarity index 98% rename from src/bindings/python/src/openvino/opsets/opset11/ops.py rename to src/bindings/python/src/openvino/opset11/ops.py index 7a18d34ade86f2..d3a882f9d40768 100644 --- a/src/bindings/python/src/openvino/opsets/opset11/ops.py +++ b/src/bindings/python/src/openvino/opset11/ops.py @@ -7,7 +7,7 @@ from typing import List, Optional from openvino._pyopenvino import Node -from openvino.opsets.opset_utils import _get_node_factory +from openvino.opset_utils import _get_node_factory from openvino.utils.decorators import nameable_op from openvino.utils.types import ( NodeInput, diff --git a/src/bindings/python/src/openvino/opset12/__init__.py b/src/bindings/python/src/openvino/opset12/__init__.py new file mode 100644 index 00000000000000..1187f2c83e6a05 --- /dev/null +++ b/src/bindings/python/src/openvino/opset12/__init__.py @@ -0,0 +1,180 @@ +# -*- coding: utf-8 -*- +# Copyright (C) 2018-2024 Intel Corporation +# SPDX-License-Identifier: Apache-2.0 + +from openvino.opset1.ops import absolute +from openvino.opset1.ops import absolute as abs +from openvino.opset1.ops import acos +from openvino.opset4.ops import acosh +from openvino.opset8.ops import adaptive_avg_pool +from openvino.opset8.ops import adaptive_max_pool +from openvino.opset1.ops import add +from openvino.opset1.ops import asin +from openvino.opset4.ops import asinh +from openvino.opset6.ops import assign +from openvino.opset1.ops import atan +from openvino.opset4.ops import atanh +from openvino.opset1.ops import avg_pool +from openvino.opset5.ops import batch_norm_inference +from openvino.opset2.ops import batch_to_space +from openvino.opset1.ops import binary_convolution +from openvino.opset3.ops import broadcast +from openvino.opset3.ops import bucketize +from openvino.opset1.ops import ceiling +from openvino.opset1.ops import ceiling as ceil +from openvino.opset1.ops import clamp +from openvino.opset1.ops import concat +from openvino.opset1.ops import constant +from openvino.opset1.ops import convert +from openvino.opset1.ops import convert_like +from openvino.opset1.ops import convolution +from openvino.opset1.ops import convolution_backprop_data +from openvino.opset1.ops import cos +from openvino.opset1.ops import cosh +from openvino.opset1.ops import ctc_greedy_decoder +from openvino.opset6.ops import ctc_greedy_decoder_seq_len +from openvino.opset4.ops import ctc_loss +from openvino.opset3.ops import cum_sum +from openvino.opset3.ops import cum_sum as cumsum +from openvino.opset8.ops import deformable_convolution +from openvino.opset1.ops import deformable_psroi_pooling +from openvino.opset1.ops import depth_to_space +from openvino.opset8.ops import detection_output +from openvino.opset7.ops import dft +from openvino.opset1.ops import divide +from openvino.opset7.ops import einsum +from openvino.opset1.ops import elu +from openvino.opset3.ops import embedding_bag_offsets_sum +from openvino.opset3.ops import embedding_bag_packed_sum +from openvino.opset3.ops import embedding_segments_sum +from openvino.opset3.ops import extract_image_patches +from openvino.opset1.ops import equal +from openvino.opset1.ops import erf +from openvino.opset1.ops import exp +from openvino.opset9.ops import eye +from openvino.opset1.ops import fake_quantize +from openvino.opset1.ops import floor +from openvino.opset1.ops import floor_mod +from openvino.opset8.ops import gather +from openvino.opset6.ops import gather_elements +from openvino.opset8.ops import gather_nd +from openvino.opset1.ops import gather_tree +from openvino.opset7.ops import gelu +from openvino.opset9.ops import generate_proposals +from openvino.opset1.ops import greater +from openvino.opset1.ops import greater_equal +from openvino.opset9.ops import grid_sample +from openvino.opset1.ops import grn +from openvino.opset1.ops import group_convolution +from openvino.opset1.ops import group_convolution_backprop_data +from openvino.opset12.ops import group_normalization +from openvino.opset3.ops import gru_cell +from openvino.opset5.ops import gru_sequence +from openvino.opset1.ops import hard_sigmoid +from openvino.opset5.ops import hsigmoid +from openvino.opset4.ops import hswish +from openvino.opset7.ops import idft +from openvino.opset8.ops import if_op +from openvino.opset11.ops import interpolate +from openvino.opset9.ops import irdft +from openvino.opset10.ops import is_finite +from openvino.opset10.ops import is_inf +from openvino.opset10.ops import is_nan +from openvino.opset8.ops import i420_to_bgr +from openvino.opset8.ops import i420_to_rgb +from openvino.opset1.ops import less +from openvino.opset1.ops import less_equal +from openvino.opset1.ops import log +from openvino.opset1.ops import logical_and +from openvino.opset1.ops import logical_not +from openvino.opset1.ops import logical_or +from openvino.opset1.ops import logical_xor +from openvino.opset5.ops import log_softmax +from openvino.opset5.ops import loop +from openvino.opset1.ops import lrn +from openvino.opset4.ops import lstm_cell +from openvino.opset5.ops import lstm_sequence +from openvino.opset1.ops import matmul +from openvino.opset8.ops import matrix_nms +from openvino.opset8.ops import max_pool +from openvino.opset1.ops import maximum +from openvino.opset1.ops import minimum +from openvino.opset4.ops import mish +from openvino.opset1.ops import mod +from openvino.opset9.ops import multiclass_nms +from openvino.opset1.ops import multiply +from openvino.opset6.ops import mvn +from openvino.opset1.ops import negative +from openvino.opset9.ops import non_max_suppression +from openvino.opset3.ops import non_zero +from openvino.opset1.ops import normalize_l2 +from openvino.opset1.ops import not_equal +from openvino.opset8.ops import nv12_to_bgr +from openvino.opset8.ops import nv12_to_rgb +from openvino.opset1.ops import one_hot +from openvino.opset12.ops import pad +from openvino.opset1.ops import parameter +from openvino.opset1.ops import power +from openvino.opset1.ops import prelu +from openvino.opset8.ops import prior_box +from openvino.opset1.ops import prior_box_clustered +from openvino.opset1.ops import psroi_pooling +from openvino.opset4.ops import proposal +from openvino.opset4.ops import range +from openvino.opset8.ops import random_uniform +from openvino.opset9.ops import rdft +from openvino.opset6.ops import read_value +from openvino.opset4.ops import reduce_l1 +from openvino.opset4.ops import reduce_l2 +from openvino.opset1.ops import reduce_logical_and +from openvino.opset1.ops import reduce_logical_or +from openvino.opset1.ops import reduce_max +from openvino.opset1.ops import reduce_mean +from openvino.opset1.ops import reduce_min +from openvino.opset1.ops import reduce_prod +from openvino.opset1.ops import reduce_sum +from openvino.opset1.ops import region_yolo +from openvino.opset2.ops import reorg_yolo +from openvino.opset1.ops import relu +from openvino.opset1.ops import reshape +from openvino.opset1.ops import result +from openvino.opset1.ops import reverse_sequence +from openvino.opset3.ops import rnn_cell +from openvino.opset5.ops import rnn_sequence +from openvino.opset9.ops import roi_align +from openvino.opset2.ops import roi_pooling +from openvino.opset7.ops import roll +from openvino.opset5.ops import round +from openvino.opset12.ops import scatter_elements_update +from openvino.opset4.ops import scatter_nd_update +from openvino.opset3.ops import scatter_update +from openvino.opset1.ops import select +from openvino.opset1.ops import selu +from openvino.opset3.ops import shape_of +from openvino.opset3.ops import shuffle_channels +from openvino.opset1.ops import sigmoid +from openvino.opset1.ops import sign +from openvino.opset1.ops import sin +from openvino.opset1.ops import sinh +from openvino.opset8.ops import slice +from openvino.opset8.ops import softmax +from openvino.opset4.ops import softplus +from openvino.opset9.ops import softsign +from openvino.opset2.ops import space_to_batch +from openvino.opset1.ops import space_to_depth +from openvino.opset1.ops import split +from openvino.opset1.ops import sqrt +from openvino.opset1.ops import squared_difference +from openvino.opset1.ops import squeeze +from openvino.opset1.ops import strided_slice +from openvino.opset1.ops import subtract +from openvino.opset4.ops import swish +from openvino.opset1.ops import tan +from openvino.opset1.ops import tanh +from openvino.opset1.ops import tensor_iterator +from openvino.opset1.ops import tile +from openvino.opset11.ops import topk +from openvino.opset1.ops import transpose +from openvino.opset10.ops import unique +from openvino.opset1.ops import unsqueeze +from openvino.opset1.ops import variadic_split diff --git a/src/bindings/python/src/openvino/opsets/opset12/ops.py b/src/bindings/python/src/openvino/opset12/ops.py similarity index 98% rename from src/bindings/python/src/openvino/opsets/opset12/ops.py rename to src/bindings/python/src/openvino/opset12/ops.py index 4372c7b4b1fee7..a37c6ca1e53617 100644 --- a/src/bindings/python/src/openvino/opsets/opset12/ops.py +++ b/src/bindings/python/src/openvino/opset12/ops.py @@ -7,7 +7,7 @@ from typing import Optional from openvino._pyopenvino import Node -from openvino.opsets.opset_utils import _get_node_factory +from openvino.opset_utils import _get_node_factory from openvino.utils.decorators import nameable_op from openvino.utils.types import ( NodeInput, diff --git a/src/bindings/python/src/openvino/opset13/__init__.py b/src/bindings/python/src/openvino/opset13/__init__.py new file mode 100644 index 00000000000000..ab3f541e8f831c --- /dev/null +++ b/src/bindings/python/src/openvino/opset13/__init__.py @@ -0,0 +1,188 @@ +# -*- coding: utf-8 -*- +# Copyright (C) 2018-2024 Intel Corporation +# SPDX-License-Identifier: Apache-2.0 + +from openvino.opset1.ops import absolute +from openvino.opset1.ops import absolute as abs +from openvino.opset1.ops import acos +from openvino.opset4.ops import acosh +from openvino.opset8.ops import adaptive_avg_pool +from openvino.opset8.ops import adaptive_max_pool +from openvino.opset1.ops import add +from openvino.opset1.ops import asin +from openvino.opset4.ops import asinh +from openvino.opset6.ops import assign +from openvino.opset1.ops import atan +from openvino.opset4.ops import atanh +from openvino.opset1.ops import avg_pool +from openvino.opset5.ops import batch_norm_inference +from openvino.opset2.ops import batch_to_space +from openvino.opset1.ops import binary_convolution +from openvino.opset13.ops import bitwise_and +from openvino.opset13.ops import bitwise_not +from openvino.opset13.ops import bitwise_or +from openvino.opset13.ops import bitwise_xor +from openvino.opset3.ops import broadcast +from openvino.opset3.ops import bucketize +from openvino.opset1.ops import ceiling +from openvino.opset1.ops import ceiling as ceil +from openvino.opset1.ops import clamp +from openvino.opset1.ops import concat +from openvino.opset13.ops import constant +from openvino.opset1.ops import convert +from openvino.opset1.ops import convert_like +from openvino.opset1.ops import convolution +from openvino.opset1.ops import convolution_backprop_data +from openvino.opset1.ops import cos +from openvino.opset1.ops import cosh +from openvino.opset1.ops import ctc_greedy_decoder +from openvino.opset6.ops import ctc_greedy_decoder_seq_len +from openvino.opset4.ops import ctc_loss +from openvino.opset3.ops import cum_sum +from openvino.opset3.ops import cum_sum as cumsum +from openvino.opset8.ops import deformable_convolution +from openvino.opset1.ops import deformable_psroi_pooling +from openvino.opset1.ops import depth_to_space +from openvino.opset8.ops import detection_output +from openvino.opset7.ops import dft +from openvino.opset1.ops import divide +from openvino.opset7.ops import einsum +from openvino.opset1.ops import elu +from openvino.opset3.ops import embedding_bag_offsets_sum +from openvino.opset3.ops import embedding_bag_packed_sum +from openvino.opset3.ops import embedding_segments_sum +from openvino.opset3.ops import extract_image_patches +from openvino.opset1.ops import equal +from openvino.opset1.ops import erf +from openvino.opset1.ops import exp +from openvino.opset9.ops import eye +from openvino.opset13.ops import fake_convert +from openvino.opset13.ops import fake_quantize +from openvino.opset1.ops import floor +from openvino.opset1.ops import floor_mod +from openvino.opset8.ops import gather +from openvino.opset6.ops import gather_elements +from openvino.opset8.ops import gather_nd +from openvino.opset1.ops import gather_tree +from openvino.opset7.ops import gelu +from openvino.opset9.ops import generate_proposals +from openvino.opset1.ops import greater +from openvino.opset1.ops import greater_equal +from openvino.opset9.ops import grid_sample +from openvino.opset1.ops import grn +from openvino.opset1.ops import group_convolution +from openvino.opset1.ops import group_convolution_backprop_data +from openvino.opset12.ops import group_normalization +from openvino.opset3.ops import gru_cell +from openvino.opset5.ops import gru_sequence +from openvino.opset1.ops import hard_sigmoid +from openvino.opset5.ops import hsigmoid +from openvino.opset4.ops import hswish +from openvino.opset7.ops import idft +from openvino.opset8.ops import if_op +from openvino.opset11.ops import interpolate +from openvino.opset9.ops import irdft +from openvino.opset10.ops import is_finite +from openvino.opset10.ops import is_inf +from openvino.opset10.ops import is_nan +from openvino.opset8.ops import i420_to_bgr +from openvino.opset8.ops import i420_to_rgb +from openvino.opset1.ops import less +from openvino.opset1.ops import less_equal +from openvino.opset1.ops import log +from openvino.opset1.ops import logical_and +from openvino.opset1.ops import logical_not +from openvino.opset1.ops import logical_or +from openvino.opset1.ops import logical_xor +from openvino.opset5.ops import log_softmax +from openvino.opset5.ops import loop +from openvino.opset1.ops import lrn +from openvino.opset4.ops import lstm_cell +from openvino.opset5.ops import lstm_sequence +from openvino.opset1.ops import matmul +from openvino.opset8.ops import matrix_nms +from openvino.opset8.ops import max_pool +from openvino.opset1.ops import maximum +from openvino.opset1.ops import minimum +from openvino.opset4.ops import mish +from openvino.opset1.ops import mod +from openvino.opset9.ops import multiclass_nms +from openvino.opset13.ops import multinomial +from openvino.opset1.ops import multiply +from openvino.opset6.ops import mvn +from openvino.opset1.ops import negative +from openvino.opset13.ops import nms_rotated +from openvino.opset9.ops import non_max_suppression +from openvino.opset3.ops import non_zero +from openvino.opset1.ops import normalize_l2 +from openvino.opset1.ops import not_equal +from openvino.opset8.ops import nv12_to_bgr +from openvino.opset8.ops import nv12_to_rgb +from openvino.opset1.ops import one_hot +from openvino.opset12.ops import pad +from openvino.opset1.ops import parameter +from openvino.opset1.ops import power +from openvino.opset1.ops import prelu +from openvino.opset8.ops import prior_box +from openvino.opset1.ops import prior_box_clustered +from openvino.opset1.ops import psroi_pooling +from openvino.opset4.ops import proposal +from openvino.opset4.ops import range +from openvino.opset8.ops import random_uniform +from openvino.opset9.ops import rdft +from openvino.opset6.ops import read_value +from openvino.opset4.ops import reduce_l1 +from openvino.opset4.ops import reduce_l2 +from openvino.opset1.ops import reduce_logical_and +from openvino.opset1.ops import reduce_logical_or +from openvino.opset1.ops import reduce_max +from openvino.opset1.ops import reduce_mean +from openvino.opset1.ops import reduce_min +from openvino.opset1.ops import reduce_prod +from openvino.opset1.ops import reduce_sum +from openvino.opset1.ops import region_yolo +from openvino.opset2.ops import reorg_yolo +from openvino.opset1.ops import relu +from openvino.opset1.ops import reshape +from openvino.opset13.ops import result +from openvino.opset1.ops import reverse_sequence +from openvino.opset3.ops import rnn_cell +from openvino.opset5.ops import rnn_sequence +from openvino.opset9.ops import roi_align +from openvino.opset2.ops import roi_pooling +from openvino.opset7.ops import roll +from openvino.opset5.ops import round +from openvino.opset13.ops import scaled_dot_product_attention +from openvino.opset12.ops import scatter_elements_update +from openvino.opset4.ops import scatter_nd_update +from openvino.opset3.ops import scatter_update +from openvino.opset1.ops import select +from openvino.opset1.ops import selu +from openvino.opset3.ops import shape_of +from openvino.opset3.ops import shuffle_channels +from openvino.opset1.ops import sigmoid +from openvino.opset1.ops import sign +from openvino.opset1.ops import sin +from openvino.opset1.ops import sinh +from openvino.opset8.ops import slice +from openvino.opset8.ops import softmax +from openvino.opset4.ops import softplus +from openvino.opset9.ops import softsign +from openvino.opset2.ops import space_to_batch +from openvino.opset1.ops import space_to_depth +from openvino.opset1.ops import split +from openvino.opset1.ops import sqrt +from openvino.opset1.ops import squared_difference +from openvino.opset1.ops import squeeze +from openvino.opset1.ops import strided_slice +from openvino.opset1.ops import subtract +from openvino.opset4.ops import swish +from openvino.opset1.ops import tan +from openvino.opset1.ops import tanh +from openvino.opset1.ops import tensor_iterator +from openvino.opset1.ops import tile +from openvino.opset11.ops import topk +from openvino.opset1.ops import transpose +from openvino.opset10.ops import unique +from openvino.opset1.ops import unsqueeze +from openvino.opset1.ops import variadic_split diff --git a/src/bindings/python/src/openvino/opsets/opset13/ops.py b/src/bindings/python/src/openvino/opset13/ops.py similarity index 99% rename from src/bindings/python/src/openvino/opsets/opset13/ops.py rename to src/bindings/python/src/openvino/opset13/ops.py index c738ebe61fa45d..ad8136c96e989c 100644 --- a/src/bindings/python/src/openvino/opsets/opset13/ops.py +++ b/src/bindings/python/src/openvino/opset13/ops.py @@ -12,9 +12,9 @@ log = logging.getLogger(__name__) from openvino._pyopenvino import Node, Shape, Type, Output, Tensor -from openvino.opsets.op import Constant, Result -from openvino.opsets.opset1 import convert_like -from openvino.opsets.opset_utils import _get_node_factory +from openvino.op import Constant, Result +from openvino.opset1 import convert_like +from openvino.opset_utils import _get_node_factory from openvino.utils.decorators import binary_op, nameable_op, unary_op, overloading from openvino.utils.types import ( NumericData, diff --git a/src/bindings/python/src/openvino/opset14/__init__.py b/src/bindings/python/src/openvino/opset14/__init__.py new file mode 100644 index 00000000000000..8a503a333bd3e1 --- /dev/null +++ b/src/bindings/python/src/openvino/opset14/__init__.py @@ -0,0 +1,190 @@ +# -*- coding: utf-8 -*- +# Copyright (C) 2018-2024 Intel Corporation +# SPDX-License-Identifier: Apache-2.0 + +from openvino.opset1.ops import absolute +from openvino.opset1.ops import absolute as abs +from openvino.opset1.ops import acos +from openvino.opset4.ops import acosh +from openvino.opset8.ops import adaptive_avg_pool +from openvino.opset8.ops import adaptive_max_pool +from openvino.opset1.ops import add +from openvino.opset1.ops import asin +from openvino.opset4.ops import asinh +from openvino.opset6.ops import assign +from openvino.opset1.ops import atan +from openvino.opset4.ops import atanh +from openvino.opset14.ops import avg_pool +from openvino.opset5.ops import batch_norm_inference +from openvino.opset2.ops import batch_to_space +from openvino.opset1.ops import binary_convolution +from openvino.opset13.ops import bitwise_and +from openvino.opset13.ops import bitwise_not +from openvino.opset13.ops import bitwise_or +from openvino.opset13.ops import bitwise_xor +from openvino.opset3.ops import broadcast +from openvino.opset3.ops import bucketize +from openvino.opset1.ops import ceiling +from openvino.opset1.ops import ceiling as ceil +from openvino.opset1.ops import clamp +from openvino.opset1.ops import concat +from openvino.opset13.ops import constant +from openvino.opset1.ops import convert +from openvino.opset1.ops import convert_like +from openvino.opset14.ops import convert_promote_types +from openvino.opset1.ops import convolution +from openvino.opset1.ops import convolution_backprop_data +from openvino.opset1.ops import cos +from openvino.opset1.ops import cosh +from openvino.opset1.ops import ctc_greedy_decoder +from openvino.opset6.ops import ctc_greedy_decoder_seq_len +from openvino.opset4.ops import ctc_loss +from openvino.opset3.ops import cum_sum +from openvino.opset3.ops import cum_sum as cumsum +from openvino.opset8.ops import deformable_convolution +from openvino.opset1.ops import deformable_psroi_pooling +from openvino.opset1.ops import depth_to_space +from openvino.opset8.ops import detection_output +from openvino.opset7.ops import dft +from openvino.opset1.ops import divide +from openvino.opset7.ops import einsum +from openvino.opset1.ops import elu +from openvino.opset3.ops import embedding_bag_offsets_sum +from openvino.opset3.ops import embedding_bag_packed_sum +from openvino.opset3.ops import embedding_segments_sum +from openvino.opset3.ops import extract_image_patches +from openvino.opset1.ops import equal +from openvino.opset1.ops import erf +from openvino.opset1.ops import exp +from openvino.opset9.ops import eye +from openvino.opset13.ops import fake_convert +from openvino.opset13.ops import fake_quantize +from openvino.opset1.ops import floor +from openvino.opset1.ops import floor_mod +from openvino.opset8.ops import gather +from openvino.opset6.ops import gather_elements +from openvino.opset8.ops import gather_nd +from openvino.opset1.ops import gather_tree +from openvino.opset7.ops import gelu +from openvino.opset9.ops import generate_proposals +from openvino.opset1.ops import greater +from openvino.opset1.ops import greater_equal +from openvino.opset9.ops import grid_sample +from openvino.opset1.ops import grn +from openvino.opset1.ops import group_convolution +from openvino.opset1.ops import group_convolution_backprop_data +from openvino.opset12.ops import group_normalization +from openvino.opset3.ops import gru_cell +from openvino.opset5.ops import gru_sequence +from openvino.opset1.ops import hard_sigmoid +from openvino.opset5.ops import hsigmoid +from openvino.opset4.ops import hswish +from openvino.opset7.ops import idft +from openvino.opset8.ops import if_op +from openvino.opset11.ops import interpolate +from openvino.opset14.ops import inverse +from openvino.opset9.ops import irdft +from openvino.opset10.ops import is_finite +from openvino.opset10.ops import is_inf +from openvino.opset10.ops import is_nan +from openvino.opset8.ops import i420_to_bgr +from openvino.opset8.ops import i420_to_rgb +from openvino.opset1.ops import less +from openvino.opset1.ops import less_equal +from openvino.opset1.ops import log +from openvino.opset1.ops import logical_and +from openvino.opset1.ops import logical_not +from openvino.opset1.ops import logical_or +from openvino.opset1.ops import logical_xor +from openvino.opset5.ops import log_softmax +from openvino.opset5.ops import loop +from openvino.opset1.ops import lrn +from openvino.opset4.ops import lstm_cell +from openvino.opset5.ops import lstm_sequence +from openvino.opset1.ops import matmul +from openvino.opset8.ops import matrix_nms +from openvino.opset14.ops import max_pool +from openvino.opset1.ops import maximum +from openvino.opset1.ops import minimum +from openvino.opset4.ops import mish +from openvino.opset1.ops import mod +from openvino.opset9.ops import multiclass_nms +from openvino.opset13.ops import multinomial +from openvino.opset1.ops import multiply +from openvino.opset6.ops import mvn +from openvino.opset1.ops import negative +from openvino.opset13.ops import nms_rotated +from openvino.opset9.ops import non_max_suppression +from openvino.opset3.ops import non_zero +from openvino.opset1.ops import normalize_l2 +from openvino.opset1.ops import not_equal +from openvino.opset8.ops import nv12_to_bgr +from openvino.opset8.ops import nv12_to_rgb +from openvino.opset1.ops import one_hot +from openvino.opset12.ops import pad +from openvino.opset1.ops import parameter +from openvino.opset1.ops import power +from openvino.opset1.ops import prelu +from openvino.opset8.ops import prior_box +from openvino.opset1.ops import prior_box_clustered +from openvino.opset1.ops import psroi_pooling +from openvino.opset4.ops import proposal +from openvino.opset4.ops import range +from openvino.opset8.ops import random_uniform +from openvino.opset9.ops import rdft +from openvino.opset6.ops import read_value +from openvino.opset4.ops import reduce_l1 +from openvino.opset4.ops import reduce_l2 +from openvino.opset1.ops import reduce_logical_and +from openvino.opset1.ops import reduce_logical_or +from openvino.opset1.ops import reduce_max +from openvino.opset1.ops import reduce_mean +from openvino.opset1.ops import reduce_min +from openvino.opset1.ops import reduce_prod +from openvino.opset1.ops import reduce_sum +from openvino.opset1.ops import region_yolo +from openvino.opset2.ops import reorg_yolo +from openvino.opset1.ops import relu +from openvino.opset1.ops import reshape +from openvino.opset13.ops import result +from openvino.opset1.ops import reverse_sequence +from openvino.opset3.ops import rnn_cell +from openvino.opset5.ops import rnn_sequence +from openvino.opset9.ops import roi_align +from openvino.opset2.ops import roi_pooling +from openvino.opset7.ops import roll +from openvino.opset5.ops import round +from openvino.opset13.ops import scaled_dot_product_attention +from openvino.opset12.ops import scatter_elements_update +from openvino.opset4.ops import scatter_nd_update +from openvino.opset3.ops import scatter_update +from openvino.opset1.ops import select +from openvino.opset1.ops import selu +from openvino.opset3.ops import shape_of +from openvino.opset3.ops import shuffle_channels +from openvino.opset1.ops import sigmoid +from openvino.opset1.ops import sign +from openvino.opset1.ops import sin +from openvino.opset1.ops import sinh +from openvino.opset8.ops import slice +from openvino.opset8.ops import softmax +from openvino.opset4.ops import softplus +from openvino.opset9.ops import softsign +from openvino.opset2.ops import space_to_batch +from openvino.opset1.ops import space_to_depth +from openvino.opset1.ops import split +from openvino.opset1.ops import sqrt +from openvino.opset1.ops import squared_difference +from openvino.opset1.ops import squeeze +from openvino.opset1.ops import strided_slice +from openvino.opset1.ops import subtract +from openvino.opset4.ops import swish +from openvino.opset1.ops import tan +from openvino.opset1.ops import tanh +from openvino.opset1.ops import tensor_iterator +from openvino.opset1.ops import tile +from openvino.opset11.ops import topk +from openvino.opset1.ops import transpose +from openvino.opset10.ops import unique +from openvino.opset1.ops import unsqueeze +from openvino.opset1.ops import variadic_split diff --git a/src/bindings/python/src/openvino/opsets/opset14/ops.py b/src/bindings/python/src/openvino/opset14/ops.py similarity index 99% rename from src/bindings/python/src/openvino/opsets/opset14/ops.py rename to src/bindings/python/src/openvino/opset14/ops.py index 6bcd43800b1b79..ed672370409a5f 100644 --- a/src/bindings/python/src/openvino/opsets/opset14/ops.py +++ b/src/bindings/python/src/openvino/opset14/ops.py @@ -8,7 +8,7 @@ from typing import Union, Optional, List from openvino._pyopenvino import Node, Type -from openvino.opsets.opset_utils import _get_node_factory +from openvino.opset_utils import _get_node_factory from openvino.utils.types import TensorShape from openvino.utils.decorators import nameable_op from openvino.utils.types import NodeInput, as_node, as_nodes diff --git a/src/bindings/python/src/openvino/opset15/__init__.py b/src/bindings/python/src/openvino/opset15/__init__.py new file mode 100644 index 00000000000000..d5b93924a69e6e --- /dev/null +++ b/src/bindings/python/src/openvino/opset15/__init__.py @@ -0,0 +1,204 @@ +# -*- coding: utf-8 -*- +# Copyright (C) 2018-2024 Intel Corporation +# SPDX-License-Identifier: Apache-2.0 + +# New operations added in Opset15 +from openvino.opset15.ops import col2im +from openvino.opset15.ops import embedding_bag_offsets +from openvino.opset15.ops import embedding_bag_packed +from openvino.opset15.ops import scatter_nd_update +from openvino.opset15.ops import roi_align_rotated +from openvino.opset15.ops import string_tensor_pack +from openvino.opset15.ops import string_tensor_unpack +from openvino.opset15.ops import bitwise_left_shift +from openvino.opset15.ops import bitwise_right_shift +from openvino.opset15.ops import slice_scatter + +# Operators from previous opsets +from openvino.opset1.ops import absolute +from openvino.opset1.ops import absolute as abs +from openvino.opset1.ops import acos +from openvino.opset4.ops import acosh +from openvino.opset8.ops import adaptive_avg_pool +from openvino.opset8.ops import adaptive_max_pool +from openvino.opset1.ops import add +from openvino.opset1.ops import asin +from openvino.opset4.ops import asinh +from openvino.opset6.ops import assign +from openvino.opset1.ops import atan +from openvino.opset4.ops import atanh +from openvino.opset14.ops import avg_pool +from openvino.opset5.ops import batch_norm_inference +from openvino.opset2.ops import batch_to_space +from openvino.opset1.ops import binary_convolution +from openvino.opset13.ops import bitwise_and +from openvino.opset13.ops import bitwise_not +from openvino.opset13.ops import bitwise_or +from openvino.opset13.ops import bitwise_xor +from openvino.opset3.ops import broadcast +from openvino.opset3.ops import bucketize +from openvino.opset1.ops import ceiling +from openvino.opset1.ops import ceiling as ceil +from openvino.opset1.ops import clamp +from openvino.opset1.ops import concat +from openvino.opset13.ops import constant +from openvino.opset1.ops import convert +from openvino.opset1.ops import convert_like +from openvino.opset14.ops import convert_promote_types +from openvino.opset1.ops import convolution +from openvino.opset1.ops import convolution_backprop_data +from openvino.opset1.ops import cos +from openvino.opset1.ops import cosh +from openvino.opset1.ops import ctc_greedy_decoder +from openvino.opset6.ops import ctc_greedy_decoder_seq_len +from openvino.opset4.ops import ctc_loss +from openvino.opset3.ops import cum_sum +from openvino.opset3.ops import cum_sum as cumsum +from openvino.opset8.ops import deformable_convolution +from openvino.opset1.ops import deformable_psroi_pooling +from openvino.opset1.ops import depth_to_space +from openvino.opset8.ops import detection_output +from openvino.opset7.ops import dft +from openvino.opset1.ops import divide +from openvino.opset7.ops import einsum +from openvino.opset1.ops import elu +from openvino.opset3.ops import embedding_bag_offsets_sum +from openvino.opset3.ops import embedding_bag_packed_sum +from openvino.opset3.ops import embedding_segments_sum +from openvino.opset3.ops import extract_image_patches +from openvino.opset1.ops import equal +from openvino.opset1.ops import erf +from openvino.opset1.ops import exp +from openvino.opset9.ops import eye +from openvino.opset13.ops import fake_convert +from openvino.opset13.ops import fake_quantize +from openvino.opset1.ops import floor +from openvino.opset1.ops import floor_mod +from openvino.opset8.ops import gather +from openvino.opset6.ops import gather_elements +from openvino.opset8.ops import gather_nd +from openvino.opset1.ops import gather_tree +from openvino.opset7.ops import gelu +from openvino.opset9.ops import generate_proposals +from openvino.opset1.ops import greater +from openvino.opset1.ops import greater_equal +from openvino.opset9.ops import grid_sample +from openvino.opset1.ops import grn +from openvino.opset1.ops import group_convolution +from openvino.opset1.ops import group_convolution_backprop_data +from openvino.opset12.ops import group_normalization +from openvino.opset3.ops import gru_cell +from openvino.opset5.ops import gru_sequence +from openvino.opset1.ops import hard_sigmoid +from openvino.opset5.ops import hsigmoid +from openvino.opset4.ops import hswish +from openvino.opset7.ops import idft +from openvino.opset8.ops import if_op +from openvino.opset11.ops import interpolate +from openvino.opset14.ops import inverse +from openvino.opset9.ops import irdft +from openvino.opset10.ops import is_finite +from openvino.opset10.ops import is_inf +from openvino.opset10.ops import is_nan +from openvino.opset8.ops import i420_to_bgr +from openvino.opset8.ops import i420_to_rgb +from openvino.opset1.ops import less +from openvino.opset1.ops import less_equal +from openvino.opset1.ops import log +from openvino.opset1.ops import logical_and +from openvino.opset1.ops import logical_not +from openvino.opset1.ops import logical_or +from openvino.opset1.ops import logical_xor +from openvino.opset5.ops import log_softmax +from openvino.opset5.ops import loop +from openvino.opset1.ops import lrn +from openvino.opset4.ops import lstm_cell +from openvino.opset5.ops import lstm_sequence +from openvino.opset1.ops import matmul +from openvino.opset8.ops import matrix_nms +from openvino.opset14.ops import max_pool +from openvino.opset1.ops import maximum +from openvino.opset1.ops import minimum +from openvino.opset4.ops import mish +from openvino.opset1.ops import mod +from openvino.opset9.ops import multiclass_nms +from openvino.opset13.ops import multinomial +from openvino.opset1.ops import multiply +from openvino.opset6.ops import mvn +from openvino.opset1.ops import negative +from openvino.opset13.ops import nms_rotated +from openvino.opset9.ops import non_max_suppression +from openvino.opset3.ops import non_zero +from openvino.opset1.ops import normalize_l2 +from openvino.opset1.ops import not_equal +from openvino.opset8.ops import nv12_to_bgr +from openvino.opset8.ops import nv12_to_rgb +from openvino.opset1.ops import one_hot +from openvino.opset12.ops import pad +from openvino.opset1.ops import parameter +from openvino.opset1.ops import power +from openvino.opset1.ops import prelu +from openvino.opset8.ops import prior_box +from openvino.opset1.ops import prior_box_clustered +from openvino.opset1.ops import psroi_pooling +from openvino.opset4.ops import proposal +from openvino.opset4.ops import range +from openvino.opset8.ops import random_uniform +from openvino.opset9.ops import rdft +from openvino.opset6.ops import read_value +from openvino.opset4.ops import reduce_l1 +from openvino.opset4.ops import reduce_l2 +from openvino.opset1.ops import reduce_logical_and +from openvino.opset1.ops import reduce_logical_or +from openvino.opset1.ops import reduce_max +from openvino.opset1.ops import reduce_mean +from openvino.opset1.ops import reduce_min +from openvino.opset1.ops import reduce_prod +from openvino.opset1.ops import reduce_sum +from openvino.opset1.ops import region_yolo +from openvino.opset2.ops import reorg_yolo +from openvino.opset1.ops import relu +from openvino.opset1.ops import reshape +from openvino.opset13.ops import result +from openvino.opset1.ops import reverse_sequence +from openvino.opset3.ops import rnn_cell +from openvino.opset5.ops import rnn_sequence +from openvino.opset9.ops import roi_align +from openvino.opset2.ops import roi_pooling +from openvino.opset7.ops import roll +from openvino.opset5.ops import round +from openvino.opset13.ops import scaled_dot_product_attention +from openvino.opset12.ops import scatter_elements_update +from openvino.opset3.ops import scatter_update +from openvino.opset15.ops import search_sorted +from openvino.opset1.ops import select +from openvino.opset1.ops import selu +from openvino.opset3.ops import shape_of +from openvino.opset3.ops import shuffle_channels +from openvino.opset1.ops import sigmoid +from openvino.opset1.ops import sign +from openvino.opset1.ops import sin +from openvino.opset1.ops import sinh +from openvino.opset8.ops import slice +from openvino.opset8.ops import softmax +from openvino.opset4.ops import softplus +from openvino.opset9.ops import softsign +from openvino.opset2.ops import space_to_batch +from openvino.opset1.ops import space_to_depth +from openvino.opset1.ops import split +from openvino.opset1.ops import sqrt +from openvino.opset1.ops import squared_difference +from openvino.opset15.ops import squeeze +from openvino.opset15.ops import stft +from openvino.opset1.ops import strided_slice +from openvino.opset1.ops import subtract +from openvino.opset4.ops import swish +from openvino.opset1.ops import tan +from openvino.opset1.ops import tanh +from openvino.opset1.ops import tensor_iterator +from openvino.opset1.ops import tile +from openvino.opset11.ops import topk +from openvino.opset1.ops import transpose +from openvino.opset10.ops import unique +from openvino.opset1.ops import unsqueeze +from openvino.opset1.ops import variadic_split diff --git a/src/bindings/python/src/openvino/opsets/opset15/ops.py b/src/bindings/python/src/openvino/opset15/ops.py similarity index 98% rename from src/bindings/python/src/openvino/opsets/opset15/ops.py rename to src/bindings/python/src/openvino/opset15/ops.py index 6f8bb4dfe6ee2f..00bc63d9d2e89f 100644 --- a/src/bindings/python/src/openvino/opsets/opset15/ops.py +++ b/src/bindings/python/src/openvino/opset15/ops.py @@ -8,9 +8,9 @@ import numpy as np from openvino._pyopenvino import Node, Type -from openvino.opsets.opset1 import convert_like -from openvino.opsets.opset14 import constant -from openvino.opsets.opset_utils import _get_node_factory +from openvino.opset1 import convert_like +from openvino.opset14 import constant +from openvino.opset_utils import _get_node_factory from openvino.utils.decorators import binary_op, nameable_op from openvino.utils.types import NodeInput, as_nodes diff --git a/src/bindings/python/src/openvino/opset2/__init__.py b/src/bindings/python/src/openvino/opset2/__init__.py new file mode 100644 index 00000000000000..0c9a9fe24db987 --- /dev/null +++ b/src/bindings/python/src/openvino/opset2/__init__.py @@ -0,0 +1,118 @@ +# -*- coding: utf-8 -*- +# Copyright (C) 2018-2024 Intel Corporation +# SPDX-License-Identifier: Apache-2.0 + +from openvino.opset1.ops import absolute +from openvino.opset1.ops import absolute as abs +from openvino.opset1.ops import acos +from openvino.opset1.ops import add +from openvino.opset1.ops import asin +from openvino.opset1.ops import atan +from openvino.opset1.ops import avg_pool +from openvino.opset1.ops import batch_norm_inference +from openvino.opset2.ops import batch_to_space +from openvino.opset1.ops import binary_convolution +from openvino.opset1.ops import broadcast +from openvino.opset1.ops import ceiling +from openvino.opset1.ops import ceiling as ceil +from openvino.opset1.ops import clamp +from openvino.opset1.ops import concat +from openvino.opset1.ops import constant +from openvino.opset1.ops import convert +from openvino.opset1.ops import convert_like +from openvino.opset1.ops import convolution +from openvino.opset1.ops import convolution_backprop_data +from openvino.opset1.ops import cos +from openvino.opset1.ops import cosh +from openvino.opset1.ops import ctc_greedy_decoder +from openvino.opset1.ops import deformable_convolution +from openvino.opset1.ops import deformable_psroi_pooling +from openvino.opset1.ops import depth_to_space +from openvino.opset1.ops import detection_output +from openvino.opset1.ops import divide +from openvino.opset1.ops import elu +from openvino.opset1.ops import equal +from openvino.opset1.ops import erf +from openvino.opset1.ops import exp +from openvino.opset1.ops import fake_quantize +from openvino.opset1.ops import floor +from openvino.opset1.ops import floor_mod +from openvino.opset1.ops import gather +from openvino.opset1.ops import gather_tree +from openvino.opset2.ops import gelu +from openvino.opset1.ops import greater +from openvino.opset1.ops import greater_equal +from openvino.opset1.ops import grn +from openvino.opset1.ops import group_convolution +from openvino.opset1.ops import group_convolution_backprop_data +from openvino.opset1.ops import hard_sigmoid +from openvino.opset1.ops import interpolate +from openvino.opset1.ops import less +from openvino.opset1.ops import less_equal +from openvino.opset1.ops import log +from openvino.opset1.ops import logical_and +from openvino.opset1.ops import logical_not +from openvino.opset1.ops import logical_or +from openvino.opset1.ops import logical_xor +from openvino.opset1.ops import lrn +from openvino.opset1.ops import lstm_cell +from openvino.opset1.ops import lstm_sequence +from openvino.opset1.ops import matmul +from openvino.opset1.ops import max_pool +from openvino.opset1.ops import maximum +from openvino.opset1.ops import minimum +from openvino.opset1.ops import mod +from openvino.opset1.ops import multiply +from openvino.opset2.ops import mvn +from openvino.opset1.ops import negative +from openvino.opset1.ops import non_max_suppression +from openvino.opset1.ops import normalize_l2 +from openvino.opset1.ops import not_equal +from openvino.opset1.ops import one_hot +from openvino.opset1.ops import pad +from openvino.opset1.ops import parameter +from openvino.opset1.ops import power +from openvino.opset1.ops import prelu +from openvino.opset1.ops import prior_box +from openvino.opset1.ops import prior_box_clustered +from openvino.opset1.ops import psroi_pooling +from openvino.opset1.ops import proposal +from openvino.opset1.ops import range +from openvino.opset1.ops import reduce_logical_and +from openvino.opset1.ops import reduce_logical_or +from openvino.opset1.ops import reduce_max +from openvino.opset1.ops import reduce_mean +from openvino.opset1.ops import reduce_min +from openvino.opset1.ops import reduce_prod +from openvino.opset1.ops import reduce_sum +from openvino.opset1.ops import region_yolo +from openvino.opset2.ops import reorg_yolo +from openvino.opset1.ops import relu +from openvino.opset1.ops import reshape +from openvino.opset1.ops import result +from openvino.opset1.ops import reverse_sequence +from openvino.opset2.ops import roi_pooling +from openvino.opset1.ops import select +from openvino.opset1.ops import selu +from openvino.opset1.ops import shape_of +from openvino.opset1.ops import sigmoid +from openvino.opset1.ops import sign +from openvino.opset1.ops import sin +from openvino.opset1.ops import sinh +from openvino.opset1.ops import softmax +from openvino.opset2.ops import space_to_batch +from openvino.opset1.ops import space_to_depth +from openvino.opset1.ops import split +from openvino.opset1.ops import sqrt +from openvino.opset1.ops import squared_difference +from openvino.opset1.ops import squeeze +from openvino.opset1.ops import strided_slice +from openvino.opset1.ops import subtract +from openvino.opset1.ops import tan +from openvino.opset1.ops import tanh +from openvino.opset1.ops import tensor_iterator +from openvino.opset1.ops import tile +from openvino.opset1.ops import topk +from openvino.opset1.ops import transpose +from openvino.opset1.ops import unsqueeze +from openvino.opset1.ops import variadic_split diff --git a/src/bindings/python/src/openvino/opsets/opset2/ops.py b/src/bindings/python/src/openvino/opset2/ops.py similarity index 98% rename from src/bindings/python/src/openvino/opsets/opset2/ops.py rename to src/bindings/python/src/openvino/opset2/ops.py index 16d5c3db6650a0..74a9c058195b7e 100644 --- a/src/bindings/python/src/openvino/opsets/opset2/ops.py +++ b/src/bindings/python/src/openvino/opset2/ops.py @@ -10,8 +10,8 @@ import warnings from openvino._pyopenvino import Node, Shape -from openvino.opsets.op import Constant, Parameter -from openvino.opsets.opset_utils import _get_node_factory +from openvino.op import Constant, Parameter +from openvino.opset_utils import _get_node_factory from openvino.utils.decorators import binary_op, nameable_op, unary_op from openvino.utils.input_validation import ( assert_list_of_ints, diff --git a/src/bindings/python/src/openvino/opset3/__init__.py b/src/bindings/python/src/openvino/opset3/__init__.py new file mode 100644 index 00000000000000..f6a7585b7efb09 --- /dev/null +++ b/src/bindings/python/src/openvino/opset3/__init__.py @@ -0,0 +1,134 @@ +# -*- coding: utf-8 -*- +# Copyright (C) 2018-2024 Intel Corporation +# SPDX-License-Identifier: Apache-2.0 + +from openvino.opset1.ops import absolute +from openvino.opset1.ops import absolute as abs +from openvino.opset1.ops import acos +from openvino.opset1.ops import add +from openvino.opset1.ops import asin +from openvino.opset3.ops import assign +from openvino.opset1.ops import atan +from openvino.opset1.ops import avg_pool +from openvino.opset1.ops import batch_norm_inference +from openvino.opset2.ops import batch_to_space +from openvino.opset1.ops import binary_convolution +from openvino.opset3.ops import broadcast +from openvino.opset3.ops import bucketize +from openvino.opset1.ops import ceiling +from openvino.opset1.ops import ceiling as ceil +from openvino.opset1.ops import clamp +from openvino.opset1.ops import concat +from openvino.opset1.ops import constant +from openvino.opset1.ops import convert +from openvino.opset1.ops import convert_like +from openvino.opset1.ops import convolution +from openvino.opset1.ops import convolution_backprop_data +from openvino.opset1.ops import cos +from openvino.opset1.ops import cosh +from openvino.opset1.ops import ctc_greedy_decoder +from openvino.opset3.ops import cum_sum +from openvino.opset3.ops import cum_sum as cumsum +from openvino.opset1.ops import deformable_convolution +from openvino.opset1.ops import deformable_psroi_pooling +from openvino.opset1.ops import depth_to_space +from openvino.opset1.ops import detection_output +from openvino.opset1.ops import divide +from openvino.opset1.ops import elu +from openvino.opset3.ops import embedding_bag_offsets_sum +from openvino.opset3.ops import embedding_bag_packed_sum +from openvino.opset3.ops import embedding_segments_sum +from openvino.opset3.ops import extract_image_patches +from openvino.opset1.ops import equal +from openvino.opset1.ops import erf +from openvino.opset1.ops import exp +from openvino.opset1.ops import fake_quantize +from openvino.opset1.ops import floor +from openvino.opset1.ops import floor_mod +from openvino.opset1.ops import gather +from openvino.opset1.ops import gather_tree +from openvino.opset2.ops import gelu +from openvino.opset1.ops import greater +from openvino.opset1.ops import greater_equal +from openvino.opset1.ops import grn +from openvino.opset1.ops import group_convolution +from openvino.opset1.ops import group_convolution_backprop_data +from openvino.opset3.ops import gru_cell +from openvino.opset1.ops import hard_sigmoid +from openvino.opset1.ops import interpolate +from openvino.opset1.ops import less +from openvino.opset1.ops import less_equal +from openvino.opset1.ops import log +from openvino.opset1.ops import logical_and +from openvino.opset1.ops import logical_not +from openvino.opset1.ops import logical_or +from openvino.opset1.ops import logical_xor +from openvino.opset1.ops import lrn +from openvino.opset1.ops import lstm_cell +from openvino.opset1.ops import lstm_sequence +from openvino.opset1.ops import matmul +from openvino.opset1.ops import max_pool +from openvino.opset1.ops import maximum +from openvino.opset1.ops import minimum +from openvino.opset1.ops import mod +from openvino.opset1.ops import multiply +from openvino.opset2.ops import mvn +from openvino.opset1.ops import negative +from openvino.opset3.ops import non_max_suppression +from openvino.opset3.ops import non_zero +from openvino.opset1.ops import normalize_l2 +from openvino.opset1.ops import not_equal +from openvino.opset1.ops import one_hot +from openvino.opset1.ops import pad +from openvino.opset1.ops import parameter +from openvino.opset1.ops import power +from openvino.opset1.ops import prelu +from openvino.opset1.ops import prior_box +from openvino.opset1.ops import prior_box_clustered +from openvino.opset1.ops import psroi_pooling +from openvino.opset1.ops import proposal +from openvino.opset1.ops import range +from openvino.opset3.ops import read_value +from openvino.opset1.ops import reduce_logical_and +from openvino.opset1.ops import reduce_logical_or +from openvino.opset1.ops import reduce_max +from openvino.opset1.ops import reduce_mean +from openvino.opset1.ops import reduce_min +from openvino.opset1.ops import reduce_prod +from openvino.opset1.ops import reduce_sum +from openvino.opset1.ops import region_yolo +from openvino.opset2.ops import reorg_yolo +from openvino.opset1.ops import relu +from openvino.opset1.ops import reshape +from openvino.opset1.ops import result +from openvino.opset1.ops import reverse_sequence +from openvino.opset3.ops import rnn_cell +from openvino.opset3.ops import roi_align +from openvino.opset2.ops import roi_pooling +from openvino.opset3.ops import scatter_elements_update +from openvino.opset3.ops import scatter_update +from openvino.opset1.ops import select +from openvino.opset1.ops import selu +from openvino.opset3.ops import shape_of +from openvino.opset3.ops import shuffle_channels +from openvino.opset1.ops import sigmoid +from openvino.opset1.ops import sign +from openvino.opset1.ops import sin +from openvino.opset1.ops import sinh +from openvino.opset1.ops import softmax +from openvino.opset2.ops import space_to_batch +from openvino.opset1.ops import space_to_depth +from openvino.opset1.ops import split +from openvino.opset1.ops import sqrt +from openvino.opset1.ops import squared_difference +from openvino.opset1.ops import squeeze +from openvino.opset1.ops import strided_slice +from openvino.opset1.ops import subtract +from openvino.opset1.ops import tan +from openvino.opset1.ops import tanh +from openvino.opset1.ops import tensor_iterator +from openvino.opset1.ops import tile +from openvino.opset3.ops import topk +from openvino.opset1.ops import transpose +from openvino.opset1.ops import unsqueeze +from openvino.opset1.ops import variadic_split diff --git a/src/bindings/python/src/openvino/opsets/opset3/ops.py b/src/bindings/python/src/openvino/opset3/ops.py similarity index 99% rename from src/bindings/python/src/openvino/opsets/opset3/ops.py rename to src/bindings/python/src/openvino/opset3/ops.py index dfb7ab8da45bb0..8b25f1f50e0a7b 100644 --- a/src/bindings/python/src/openvino/opsets/opset3/ops.py +++ b/src/bindings/python/src/openvino/opset3/ops.py @@ -9,8 +9,8 @@ from functools import partial from openvino._pyopenvino import Node, Shape -from openvino.opsets.op import Constant, Parameter -from openvino.opsets.opset_utils import _get_node_factory +from openvino.op import Constant, Parameter +from openvino.opset_utils import _get_node_factory from openvino.utils.decorators import binary_op, nameable_op, unary_op from openvino.utils.input_validation import ( assert_list_of_ints, diff --git a/src/bindings/python/src/openvino/opset4/__init__.py b/src/bindings/python/src/openvino/opset4/__init__.py new file mode 100644 index 00000000000000..943367d493ceda --- /dev/null +++ b/src/bindings/python/src/openvino/opset4/__init__.py @@ -0,0 +1,145 @@ +# -*- coding: utf-8 -*- +# Copyright (C) 2018-2024 Intel Corporation +# SPDX-License-Identifier: Apache-2.0 + +from openvino.opset1.ops import absolute +from openvino.opset1.ops import absolute as abs +from openvino.opset1.ops import acos +from openvino.opset4.ops import acosh +from openvino.opset1.ops import add +from openvino.opset1.ops import asin +from openvino.opset4.ops import asinh +from openvino.opset3.ops import assign +from openvino.opset1.ops import atan +from openvino.opset4.ops import atanh +from openvino.opset1.ops import avg_pool +from openvino.opset1.ops import batch_norm_inference +from openvino.opset2.ops import batch_to_space +from openvino.opset1.ops import binary_convolution +from openvino.opset3.ops import broadcast +from openvino.opset3.ops import bucketize +from openvino.opset1.ops import ceiling +from openvino.opset1.ops import ceiling as ceil +from openvino.opset1.ops import clamp +from openvino.opset1.ops import concat +from openvino.opset1.ops import constant +from openvino.opset1.ops import convert +from openvino.opset1.ops import convert_like +from openvino.opset1.ops import convolution +from openvino.opset1.ops import convolution_backprop_data +from openvino.opset1.ops import cos +from openvino.opset1.ops import cosh +from openvino.opset1.ops import ctc_greedy_decoder +from openvino.opset4.ops import ctc_loss +from openvino.opset3.ops import cum_sum +from openvino.opset3.ops import cum_sum as cumsum +from openvino.opset1.ops import deformable_convolution +from openvino.opset1.ops import deformable_psroi_pooling +from openvino.opset1.ops import depth_to_space +from openvino.opset1.ops import detection_output +from openvino.opset1.ops import divide +from openvino.opset1.ops import elu +from openvino.opset3.ops import embedding_bag_offsets_sum +from openvino.opset3.ops import embedding_bag_packed_sum +from openvino.opset3.ops import embedding_segments_sum +from openvino.opset3.ops import extract_image_patches +from openvino.opset1.ops import equal +from openvino.opset1.ops import erf +from openvino.opset1.ops import exp +from openvino.opset1.ops import fake_quantize +from openvino.opset1.ops import floor +from openvino.opset1.ops import floor_mod +from openvino.opset1.ops import gather +from openvino.opset1.ops import gather_tree +from openvino.opset2.ops import gelu +from openvino.opset1.ops import greater +from openvino.opset1.ops import greater_equal +from openvino.opset1.ops import grn +from openvino.opset1.ops import group_convolution +from openvino.opset1.ops import group_convolution_backprop_data +from openvino.opset3.ops import gru_cell +from openvino.opset1.ops import hard_sigmoid +from openvino.opset4.ops import hswish +from openvino.opset1.ops import interpolate +from openvino.opset1.ops import less +from openvino.opset1.ops import less_equal +from openvino.opset1.ops import log +from openvino.opset1.ops import logical_and +from openvino.opset1.ops import logical_not +from openvino.opset1.ops import logical_or +from openvino.opset1.ops import logical_xor +from openvino.opset1.ops import lrn +from openvino.opset4.ops import lstm_cell +from openvino.opset1.ops import lstm_sequence +from openvino.opset1.ops import matmul +from openvino.opset1.ops import max_pool +from openvino.opset1.ops import maximum +from openvino.opset1.ops import minimum +from openvino.opset4.ops import mish +from openvino.opset1.ops import mod +from openvino.opset1.ops import multiply +from openvino.opset2.ops import mvn +from openvino.opset1.ops import negative +from openvino.opset4.ops import non_max_suppression +from openvino.opset3.ops import non_zero +from openvino.opset1.ops import normalize_l2 +from openvino.opset1.ops import not_equal +from openvino.opset1.ops import one_hot +from openvino.opset1.ops import pad +from openvino.opset1.ops import parameter +from openvino.opset1.ops import power +from openvino.opset1.ops import prelu +from openvino.opset1.ops import prior_box +from openvino.opset1.ops import prior_box_clustered +from openvino.opset1.ops import psroi_pooling +from openvino.opset4.ops import proposal +from openvino.opset1.ops import range +from openvino.opset3.ops import read_value +from openvino.opset4.ops import reduce_l1 +from openvino.opset4.ops import reduce_l2 +from openvino.opset1.ops import reduce_logical_and +from openvino.opset1.ops import reduce_logical_or +from openvino.opset1.ops import reduce_max +from openvino.opset1.ops import reduce_mean +from openvino.opset1.ops import reduce_min +from openvino.opset1.ops import reduce_prod +from openvino.opset1.ops import reduce_sum +from openvino.opset1.ops import region_yolo +from openvino.opset2.ops import reorg_yolo +from openvino.opset1.ops import relu +from openvino.opset1.ops import reshape +from openvino.opset1.ops import result +from openvino.opset1.ops import reverse_sequence +from openvino.opset3.ops import rnn_cell +from openvino.opset3.ops import roi_align +from openvino.opset2.ops import roi_pooling +from openvino.opset3.ops import scatter_elements_update +from openvino.opset4.ops import scatter_nd_update +from openvino.opset3.ops import scatter_update +from openvino.opset1.ops import select +from openvino.opset1.ops import selu +from openvino.opset3.ops import shape_of +from openvino.opset3.ops import shuffle_channels +from openvino.opset1.ops import sigmoid +from openvino.opset1.ops import sign +from openvino.opset1.ops import sin +from openvino.opset1.ops import sinh +from openvino.opset1.ops import softmax +from openvino.opset4.ops import softplus +from openvino.opset2.ops import space_to_batch +from openvino.opset1.ops import space_to_depth +from openvino.opset1.ops import split +from openvino.opset1.ops import sqrt +from openvino.opset1.ops import squared_difference +from openvino.opset1.ops import squeeze +from openvino.opset1.ops import strided_slice +from openvino.opset1.ops import subtract +from openvino.opset4.ops import swish +from openvino.opset1.ops import tan +from openvino.opset1.ops import tanh +from openvino.opset1.ops import tensor_iterator +from openvino.opset1.ops import tile +from openvino.opset3.ops import topk +from openvino.opset1.ops import transpose +from openvino.opset1.ops import unsqueeze +from openvino.opset1.ops import variadic_split diff --git a/src/bindings/python/src/openvino/opsets/opset4/ops.py b/src/bindings/python/src/openvino/opset4/ops.py similarity index 99% rename from src/bindings/python/src/openvino/opsets/opset4/ops.py rename to src/bindings/python/src/openvino/opset4/ops.py index 1685f39cd85771..6a322615033582 100644 --- a/src/bindings/python/src/openvino/opsets/opset4/ops.py +++ b/src/bindings/python/src/openvino/opset4/ops.py @@ -9,8 +9,8 @@ from functools import partial from openvino._pyopenvino import Node, Shape -from openvino.opsets.op import Constant, Parameter -from openvino.opsets.opset_utils import _get_node_factory +from openvino.op import Constant, Parameter +from openvino.opset_utils import _get_node_factory from openvino.utils.decorators import binary_op, nameable_op, unary_op from openvino.utils.input_validation import ( assert_list_of_ints, diff --git a/src/bindings/python/src/openvino/opset5/__init__.py b/src/bindings/python/src/openvino/opset5/__init__.py new file mode 100644 index 00000000000000..202b8137093f57 --- /dev/null +++ b/src/bindings/python/src/openvino/opset5/__init__.py @@ -0,0 +1,152 @@ +# -*- coding: utf-8 -*- +# Copyright (C) 2018-2024 Intel Corporation +# SPDX-License-Identifier: Apache-2.0 + +from openvino.opset1.ops import absolute +from openvino.opset1.ops import absolute as abs +from openvino.opset1.ops import acos +from openvino.opset4.ops import acosh +from openvino.opset1.ops import add +from openvino.opset1.ops import asin +from openvino.opset4.ops import asinh +from openvino.opset3.ops import assign +from openvino.opset1.ops import atan +from openvino.opset4.ops import atanh +from openvino.opset1.ops import avg_pool +from openvino.opset5.ops import batch_norm_inference +from openvino.opset2.ops import batch_to_space +from openvino.opset1.ops import binary_convolution +from openvino.opset3.ops import broadcast +from openvino.opset3.ops import bucketize +from openvino.opset1.ops import ceiling +from openvino.opset1.ops import ceiling as ceil +from openvino.opset1.ops import clamp +from openvino.opset1.ops import concat +from openvino.opset1.ops import constant +from openvino.opset1.ops import convert +from openvino.opset1.ops import convert_like +from openvino.opset1.ops import convolution +from openvino.opset1.ops import convolution_backprop_data +from openvino.opset1.ops import cos +from openvino.opset1.ops import cosh +from openvino.opset1.ops import ctc_greedy_decoder +from openvino.opset4.ops import ctc_loss +from openvino.opset3.ops import cum_sum +from openvino.opset3.ops import cum_sum as cumsum +from openvino.opset1.ops import deformable_convolution +from openvino.opset1.ops import deformable_psroi_pooling +from openvino.opset1.ops import depth_to_space +from openvino.opset1.ops import detection_output +from openvino.opset1.ops import divide +from openvino.opset1.ops import elu +from openvino.opset3.ops import embedding_bag_offsets_sum +from openvino.opset3.ops import embedding_bag_packed_sum +from openvino.opset3.ops import embedding_segments_sum +from openvino.opset3.ops import extract_image_patches +from openvino.opset1.ops import equal +from openvino.opset1.ops import erf +from openvino.opset1.ops import exp +from openvino.opset1.ops import fake_quantize +from openvino.opset1.ops import floor +from openvino.opset1.ops import floor_mod +from openvino.opset1.ops import gather +from openvino.opset5.ops import gather_nd +from openvino.opset1.ops import gather_tree +from openvino.opset2.ops import gelu +from openvino.opset1.ops import greater +from openvino.opset1.ops import greater_equal +from openvino.opset1.ops import grn +from openvino.opset1.ops import group_convolution +from openvino.opset1.ops import group_convolution_backprop_data +from openvino.opset3.ops import gru_cell +from openvino.opset5.ops import gru_sequence +from openvino.opset1.ops import hard_sigmoid +from openvino.opset5.ops import hsigmoid +from openvino.opset4.ops import hswish +from openvino.opset1.ops import interpolate +from openvino.opset1.ops import less +from openvino.opset1.ops import less_equal +from openvino.opset1.ops import log +from openvino.opset1.ops import logical_and +from openvino.opset1.ops import logical_not +from openvino.opset1.ops import logical_or +from openvino.opset1.ops import logical_xor +from openvino.opset5.ops import log_softmax +from openvino.opset5.ops import loop +from openvino.opset1.ops import lrn +from openvino.opset4.ops import lstm_cell +from openvino.opset5.ops import lstm_sequence +from openvino.opset1.ops import matmul +from openvino.opset1.ops import max_pool +from openvino.opset1.ops import maximum +from openvino.opset1.ops import minimum +from openvino.opset4.ops import mish +from openvino.opset1.ops import mod +from openvino.opset1.ops import multiply +from openvino.opset2.ops import mvn +from openvino.opset1.ops import negative +from openvino.opset5.ops import non_max_suppression +from openvino.opset3.ops import non_zero +from openvino.opset1.ops import normalize_l2 +from openvino.opset1.ops import not_equal +from openvino.opset1.ops import one_hot +from openvino.opset1.ops import pad +from openvino.opset1.ops import parameter +from openvino.opset1.ops import power +from openvino.opset1.ops import prelu +from openvino.opset1.ops import prior_box +from openvino.opset1.ops import prior_box_clustered +from openvino.opset1.ops import psroi_pooling +from openvino.opset4.ops import proposal +from openvino.opset1.ops import range +from openvino.opset3.ops import read_value +from openvino.opset4.ops import reduce_l1 +from openvino.opset4.ops import reduce_l2 +from openvino.opset1.ops import reduce_logical_and +from openvino.opset1.ops import reduce_logical_or +from openvino.opset1.ops import reduce_max +from openvino.opset1.ops import reduce_mean +from openvino.opset1.ops import reduce_min +from openvino.opset1.ops import reduce_prod +from openvino.opset1.ops import reduce_sum +from openvino.opset1.ops import region_yolo +from openvino.opset2.ops import reorg_yolo +from openvino.opset1.ops import relu +from openvino.opset1.ops import reshape +from openvino.opset1.ops import result +from openvino.opset1.ops import reverse_sequence +from openvino.opset3.ops import rnn_cell +from openvino.opset5.ops import rnn_sequence +from openvino.opset3.ops import roi_align +from openvino.opset2.ops import roi_pooling +from openvino.opset5.ops import round +from openvino.opset3.ops import scatter_elements_update +from openvino.opset4.ops import scatter_nd_update +from openvino.opset3.ops import scatter_update +from openvino.opset1.ops import select +from openvino.opset1.ops import selu +from openvino.opset3.ops import shape_of +from openvino.opset3.ops import shuffle_channels +from openvino.opset1.ops import sigmoid +from openvino.opset1.ops import sign +from openvino.opset1.ops import sin +from openvino.opset1.ops import sinh +from openvino.opset1.ops import softmax +from openvino.opset4.ops import softplus +from openvino.opset2.ops import space_to_batch +from openvino.opset1.ops import space_to_depth +from openvino.opset1.ops import split +from openvino.opset1.ops import sqrt +from openvino.opset1.ops import squared_difference +from openvino.opset1.ops import squeeze +from openvino.opset1.ops import strided_slice +from openvino.opset1.ops import subtract +from openvino.opset4.ops import swish +from openvino.opset1.ops import tan +from openvino.opset1.ops import tanh +from openvino.opset1.ops import tensor_iterator +from openvino.opset1.ops import tile +from openvino.opset3.ops import topk +from openvino.opset1.ops import transpose +from openvino.opset1.ops import unsqueeze +from openvino.opset1.ops import variadic_split diff --git a/src/bindings/python/src/openvino/opsets/opset5/ops.py b/src/bindings/python/src/openvino/opset5/ops.py similarity index 99% rename from src/bindings/python/src/openvino/opsets/opset5/ops.py rename to src/bindings/python/src/openvino/opset5/ops.py index ff1276586dbbb3..1082fcd113cea8 100644 --- a/src/bindings/python/src/openvino/opsets/opset5/ops.py +++ b/src/bindings/python/src/openvino/opset5/ops.py @@ -9,8 +9,8 @@ from functools import partial from openvino._pyopenvino import Node, Shape -from openvino.opsets.op import Constant, Parameter, loop -from openvino.opsets.opset_utils import _get_node_factory +from openvino.op import Constant, Parameter, loop +from openvino.opset_utils import _get_node_factory from openvino.utils.decorators import binary_op, nameable_op, unary_op from openvino.utils.input_validation import ( assert_list_of_ints, diff --git a/src/bindings/python/src/openvino/opset6/__init__.py b/src/bindings/python/src/openvino/opset6/__init__.py new file mode 100644 index 00000000000000..315d80bc025a38 --- /dev/null +++ b/src/bindings/python/src/openvino/opset6/__init__.py @@ -0,0 +1,154 @@ +# -*- coding: utf-8 -*- +# Copyright (C) 2018-2024 Intel Corporation +# SPDX-License-Identifier: Apache-2.0 + +from openvino.opset1.ops import absolute +from openvino.opset1.ops import absolute as abs +from openvino.opset1.ops import acos +from openvino.opset4.ops import acosh +from openvino.opset1.ops import add +from openvino.opset1.ops import asin +from openvino.opset4.ops import asinh +from openvino.opset6.ops import assign +from openvino.opset1.ops import atan +from openvino.opset4.ops import atanh +from openvino.opset1.ops import avg_pool +from openvino.opset5.ops import batch_norm_inference +from openvino.opset2.ops import batch_to_space +from openvino.opset1.ops import binary_convolution +from openvino.opset3.ops import broadcast +from openvino.opset3.ops import bucketize +from openvino.opset1.ops import ceiling +from openvino.opset1.ops import ceiling as ceil +from openvino.opset1.ops import clamp +from openvino.opset1.ops import concat +from openvino.opset1.ops import constant +from openvino.opset1.ops import convert +from openvino.opset1.ops import convert_like +from openvino.opset1.ops import convolution +from openvino.opset1.ops import convolution_backprop_data +from openvino.opset1.ops import cos +from openvino.opset1.ops import cosh +from openvino.opset1.ops import ctc_greedy_decoder +from openvino.opset6.ops import ctc_greedy_decoder_seq_len +from openvino.opset4.ops import ctc_loss +from openvino.opset3.ops import cum_sum +from openvino.opset3.ops import cum_sum as cumsum +from openvino.opset1.ops import deformable_convolution +from openvino.opset1.ops import deformable_psroi_pooling +from openvino.opset1.ops import depth_to_space +from openvino.opset1.ops import detection_output +from openvino.opset1.ops import divide +from openvino.opset1.ops import elu +from openvino.opset3.ops import embedding_bag_offsets_sum +from openvino.opset3.ops import embedding_bag_packed_sum +from openvino.opset3.ops import embedding_segments_sum +from openvino.opset3.ops import extract_image_patches +from openvino.opset1.ops import equal +from openvino.opset1.ops import erf +from openvino.opset1.ops import exp +from openvino.opset1.ops import fake_quantize +from openvino.opset1.ops import floor +from openvino.opset1.ops import floor_mod +from openvino.opset1.ops import gather +from openvino.opset6.ops import gather_elements +from openvino.opset5.ops import gather_nd +from openvino.opset1.ops import gather_tree +from openvino.opset2.ops import gelu +from openvino.opset1.ops import greater +from openvino.opset1.ops import greater_equal +from openvino.opset1.ops import grn +from openvino.opset1.ops import group_convolution +from openvino.opset1.ops import group_convolution_backprop_data +from openvino.opset3.ops import gru_cell +from openvino.opset5.ops import gru_sequence +from openvino.opset1.ops import hard_sigmoid +from openvino.opset5.ops import hsigmoid +from openvino.opset4.ops import hswish +from openvino.opset1.ops import interpolate +from openvino.opset1.ops import less +from openvino.opset1.ops import less_equal +from openvino.opset1.ops import log +from openvino.opset1.ops import logical_and +from openvino.opset1.ops import logical_not +from openvino.opset1.ops import logical_or +from openvino.opset1.ops import logical_xor +from openvino.opset5.ops import log_softmax +from openvino.opset5.ops import loop +from openvino.opset1.ops import lrn +from openvino.opset4.ops import lstm_cell +from openvino.opset5.ops import lstm_sequence +from openvino.opset1.ops import matmul +from openvino.opset1.ops import max_pool +from openvino.opset1.ops import maximum +from openvino.opset1.ops import minimum +from openvino.opset4.ops import mish +from openvino.opset1.ops import mod +from openvino.opset1.ops import multiply +from openvino.opset6.ops import mvn +from openvino.opset1.ops import negative +from openvino.opset5.ops import non_max_suppression +from openvino.opset3.ops import non_zero +from openvino.opset1.ops import normalize_l2 +from openvino.opset1.ops import not_equal +from openvino.opset1.ops import one_hot +from openvino.opset1.ops import pad +from openvino.opset1.ops import parameter +from openvino.opset1.ops import power +from openvino.opset1.ops import prelu +from openvino.opset1.ops import prior_box +from openvino.opset1.ops import prior_box_clustered +from openvino.opset1.ops import psroi_pooling +from openvino.opset4.ops import proposal +from openvino.opset1.ops import range +from openvino.opset6.ops import read_value +from openvino.opset4.ops import reduce_l1 +from openvino.opset4.ops import reduce_l2 +from openvino.opset1.ops import reduce_logical_and +from openvino.opset1.ops import reduce_logical_or +from openvino.opset1.ops import reduce_max +from openvino.opset1.ops import reduce_mean +from openvino.opset1.ops import reduce_min +from openvino.opset1.ops import reduce_prod +from openvino.opset1.ops import reduce_sum +from openvino.opset1.ops import region_yolo +from openvino.opset2.ops import reorg_yolo +from openvino.opset1.ops import relu +from openvino.opset1.ops import reshape +from openvino.opset1.ops import result +from openvino.opset1.ops import reverse_sequence +from openvino.opset3.ops import rnn_cell +from openvino.opset5.ops import rnn_sequence +from openvino.opset3.ops import roi_align +from openvino.opset2.ops import roi_pooling +from openvino.opset5.ops import round +from openvino.opset3.ops import scatter_elements_update +from openvino.opset4.ops import scatter_nd_update +from openvino.opset3.ops import scatter_update +from openvino.opset1.ops import select +from openvino.opset1.ops import selu +from openvino.opset3.ops import shape_of +from openvino.opset3.ops import shuffle_channels +from openvino.opset1.ops import sigmoid +from openvino.opset1.ops import sign +from openvino.opset1.ops import sin +from openvino.opset1.ops import sinh +from openvino.opset1.ops import softmax +from openvino.opset4.ops import softplus +from openvino.opset2.ops import space_to_batch +from openvino.opset1.ops import space_to_depth +from openvino.opset1.ops import split +from openvino.opset1.ops import sqrt +from openvino.opset1.ops import squared_difference +from openvino.opset1.ops import squeeze +from openvino.opset1.ops import strided_slice +from openvino.opset1.ops import subtract +from openvino.opset4.ops import swish +from openvino.opset1.ops import tan +from openvino.opset1.ops import tanh +from openvino.opset1.ops import tensor_iterator +from openvino.opset1.ops import tile +from openvino.opset3.ops import topk +from openvino.opset1.ops import transpose +from openvino.opset1.ops import unsqueeze +from openvino.opset1.ops import variadic_split diff --git a/src/bindings/python/src/openvino/opsets/opset6/ops.py b/src/bindings/python/src/openvino/opset6/ops.py similarity index 97% rename from src/bindings/python/src/openvino/opsets/opset6/ops.py rename to src/bindings/python/src/openvino/opset6/ops.py index 2dcb29b145f2b2..2b75dc2d79cc42 100644 --- a/src/bindings/python/src/openvino/opsets/opset6/ops.py +++ b/src/bindings/python/src/openvino/opset6/ops.py @@ -10,10 +10,10 @@ from functools import partial, singledispatch from openvino._pyopenvino import Node, Type, PartialShape, Output, Shape -from openvino.opsets.op import assign, Constant, Parameter -from openvino.opsets.op import read_value as _read_value -from openvino.opsets.op.util import VariableInfo, Variable -from openvino.opsets.opset_utils import _get_node_factory +from openvino.op import assign, Constant, Parameter +from openvino.op import read_value as _read_value +from openvino.op.util import VariableInfo, Variable +from openvino.opset_utils import _get_node_factory from openvino.utils.decorators import nameable_op, overloading from openvino.utils.types import ( NodeInput, diff --git a/src/bindings/python/src/openvino/opset7/__init__.py b/src/bindings/python/src/openvino/opset7/__init__.py new file mode 100644 index 00000000000000..16703072285487 --- /dev/null +++ b/src/bindings/python/src/openvino/opset7/__init__.py @@ -0,0 +1,158 @@ +# -*- coding: utf-8 -*- +# Copyright (C) 2018-2024 Intel Corporation +# SPDX-License-Identifier: Apache-2.0 + +from openvino.opset1.ops import absolute +from openvino.opset1.ops import absolute as abs +from openvino.opset1.ops import acos +from openvino.opset4.ops import acosh +from openvino.opset1.ops import add +from openvino.opset1.ops import asin +from openvino.opset4.ops import asinh +from openvino.opset6.ops import assign +from openvino.opset1.ops import atan +from openvino.opset4.ops import atanh +from openvino.opset1.ops import avg_pool +from openvino.opset5.ops import batch_norm_inference +from openvino.opset2.ops import batch_to_space +from openvino.opset1.ops import binary_convolution +from openvino.opset3.ops import broadcast +from openvino.opset3.ops import bucketize +from openvino.opset1.ops import ceiling +from openvino.opset1.ops import ceiling as ceil +from openvino.opset1.ops import clamp +from openvino.opset1.ops import concat +from openvino.opset1.ops import constant +from openvino.opset1.ops import convert +from openvino.opset1.ops import convert_like +from openvino.opset1.ops import convolution +from openvino.opset1.ops import convolution_backprop_data +from openvino.opset1.ops import cos +from openvino.opset1.ops import cosh +from openvino.opset1.ops import ctc_greedy_decoder +from openvino.opset6.ops import ctc_greedy_decoder_seq_len +from openvino.opset4.ops import ctc_loss +from openvino.opset3.ops import cum_sum +from openvino.opset3.ops import cum_sum as cumsum +from openvino.opset1.ops import deformable_convolution +from openvino.opset1.ops import deformable_psroi_pooling +from openvino.opset1.ops import depth_to_space +from openvino.opset1.ops import detection_output +from openvino.opset7.ops import dft +from openvino.opset1.ops import divide +from openvino.opset7.ops import einsum +from openvino.opset1.ops import elu +from openvino.opset3.ops import embedding_bag_offsets_sum +from openvino.opset3.ops import embedding_bag_packed_sum +from openvino.opset3.ops import embedding_segments_sum +from openvino.opset3.ops import extract_image_patches +from openvino.opset1.ops import equal +from openvino.opset1.ops import erf +from openvino.opset1.ops import exp +from openvino.opset1.ops import fake_quantize +from openvino.opset1.ops import floor +from openvino.opset1.ops import floor_mod +from openvino.opset7.ops import gather +from openvino.opset6.ops import gather_elements +from openvino.opset5.ops import gather_nd +from openvino.opset1.ops import gather_tree +from openvino.opset7.ops import gelu +from openvino.opset1.ops import greater +from openvino.opset1.ops import greater_equal +from openvino.opset1.ops import grn +from openvino.opset1.ops import group_convolution +from openvino.opset1.ops import group_convolution_backprop_data +from openvino.opset3.ops import gru_cell +from openvino.opset5.ops import gru_sequence +from openvino.opset1.ops import hard_sigmoid +from openvino.opset5.ops import hsigmoid +from openvino.opset4.ops import hswish +from openvino.opset7.ops import idft +from openvino.opset1.ops import interpolate +from openvino.opset1.ops import less +from openvino.opset1.ops import less_equal +from openvino.opset1.ops import log +from openvino.opset1.ops import logical_and +from openvino.opset1.ops import logical_not +from openvino.opset1.ops import logical_or +from openvino.opset1.ops import logical_xor +from openvino.opset5.ops import log_softmax +from openvino.opset5.ops import loop +from openvino.opset1.ops import lrn +from openvino.opset4.ops import lstm_cell +from openvino.opset5.ops import lstm_sequence +from openvino.opset1.ops import matmul +from openvino.opset1.ops import max_pool +from openvino.opset1.ops import maximum +from openvino.opset1.ops import minimum +from openvino.opset4.ops import mish +from openvino.opset1.ops import mod +from openvino.opset1.ops import multiply +from openvino.opset6.ops import mvn +from openvino.opset1.ops import negative +from openvino.opset5.ops import non_max_suppression +from openvino.opset3.ops import non_zero +from openvino.opset1.ops import normalize_l2 +from openvino.opset1.ops import not_equal +from openvino.opset1.ops import one_hot +from openvino.opset1.ops import pad +from openvino.opset1.ops import parameter +from openvino.opset1.ops import power +from openvino.opset1.ops import prelu +from openvino.opset1.ops import prior_box +from openvino.opset1.ops import prior_box_clustered +from openvino.opset1.ops import psroi_pooling +from openvino.opset4.ops import proposal +from openvino.opset1.ops import range +from openvino.opset6.ops import read_value +from openvino.opset4.ops import reduce_l1 +from openvino.opset4.ops import reduce_l2 +from openvino.opset1.ops import reduce_logical_and +from openvino.opset1.ops import reduce_logical_or +from openvino.opset1.ops import reduce_max +from openvino.opset1.ops import reduce_mean +from openvino.opset1.ops import reduce_min +from openvino.opset1.ops import reduce_prod +from openvino.opset1.ops import reduce_sum +from openvino.opset1.ops import region_yolo +from openvino.opset2.ops import reorg_yolo +from openvino.opset1.ops import relu +from openvino.opset1.ops import reshape +from openvino.opset1.ops import result +from openvino.opset1.ops import reverse_sequence +from openvino.opset3.ops import rnn_cell +from openvino.opset5.ops import rnn_sequence +from openvino.opset3.ops import roi_align +from openvino.opset2.ops import roi_pooling +from openvino.opset7.ops import roll +from openvino.opset5.ops import round +from openvino.opset3.ops import scatter_elements_update +from openvino.opset4.ops import scatter_nd_update +from openvino.opset3.ops import scatter_update +from openvino.opset1.ops import select +from openvino.opset1.ops import selu +from openvino.opset3.ops import shape_of +from openvino.opset3.ops import shuffle_channels +from openvino.opset1.ops import sigmoid +from openvino.opset1.ops import sign +from openvino.opset1.ops import sin +from openvino.opset1.ops import sinh +from openvino.opset1.ops import softmax +from openvino.opset4.ops import softplus +from openvino.opset2.ops import space_to_batch +from openvino.opset1.ops import space_to_depth +from openvino.opset1.ops import split +from openvino.opset1.ops import sqrt +from openvino.opset1.ops import squared_difference +from openvino.opset1.ops import squeeze +from openvino.opset1.ops import strided_slice +from openvino.opset1.ops import subtract +from openvino.opset4.ops import swish +from openvino.opset1.ops import tan +from openvino.opset1.ops import tanh +from openvino.opset1.ops import tensor_iterator +from openvino.opset1.ops import tile +from openvino.opset3.ops import topk +from openvino.opset1.ops import transpose +from openvino.opset1.ops import unsqueeze +from openvino.opset1.ops import variadic_split diff --git a/src/bindings/python/src/openvino/opsets/opset7/ops.py b/src/bindings/python/src/openvino/opset7/ops.py similarity index 97% rename from src/bindings/python/src/openvino/opsets/opset7/ops.py rename to src/bindings/python/src/openvino/opset7/ops.py index 082c92578c21a1..584a9e28f6cd35 100644 --- a/src/bindings/python/src/openvino/opsets/opset7/ops.py +++ b/src/bindings/python/src/openvino/opset7/ops.py @@ -8,8 +8,8 @@ import numpy as np from openvino._pyopenvino import Node, Shape -from openvino.opsets.op import Constant, Parameter -from openvino.opsets.opset_utils import _get_node_factory +from openvino.op import Constant, Parameter +from openvino.opset_utils import _get_node_factory from openvino.utils.decorators import binary_op, nameable_op, unary_op from openvino.utils.input_validation import ( assert_list_of_ints, diff --git a/src/bindings/python/src/openvino/opset8/__init__.py b/src/bindings/python/src/openvino/opset8/__init__.py new file mode 100644 index 00000000000000..e45c37863b193b --- /dev/null +++ b/src/bindings/python/src/openvino/opset8/__init__.py @@ -0,0 +1,169 @@ +# -*- coding: utf-8 -*- +# Copyright (C) 2018-2024 Intel Corporation +# SPDX-License-Identifier: Apache-2.0 + +from openvino.opset1.ops import absolute +from openvino.opset1.ops import absolute as abs +from openvino.opset1.ops import acos +from openvino.opset4.ops import acosh +from openvino.opset8.ops import adaptive_avg_pool +from openvino.opset8.ops import adaptive_max_pool +from openvino.opset1.ops import add +from openvino.opset1.ops import asin +from openvino.opset4.ops import asinh +from openvino.opset6.ops import assign +from openvino.opset1.ops import atan +from openvino.opset4.ops import atanh +from openvino.opset1.ops import avg_pool +from openvino.opset5.ops import batch_norm_inference +from openvino.opset2.ops import batch_to_space +from openvino.opset1.ops import binary_convolution +from openvino.opset3.ops import broadcast +from openvino.opset3.ops import bucketize +from openvino.opset1.ops import ceiling +from openvino.opset1.ops import ceiling as ceil +from openvino.opset1.ops import clamp +from openvino.opset1.ops import concat +from openvino.opset1.ops import constant +from openvino.opset1.ops import convert +from openvino.opset1.ops import convert_like +from openvino.opset1.ops import convolution +from openvino.opset1.ops import convolution_backprop_data +from openvino.opset1.ops import cos +from openvino.opset1.ops import cosh +from openvino.opset1.ops import ctc_greedy_decoder +from openvino.opset6.ops import ctc_greedy_decoder_seq_len +from openvino.opset4.ops import ctc_loss +from openvino.opset3.ops import cum_sum +from openvino.opset3.ops import cum_sum as cumsum +from openvino.opset8.ops import deformable_convolution +from openvino.opset1.ops import deformable_psroi_pooling +from openvino.opset1.ops import depth_to_space +from openvino.opset8.ops import detection_output +from openvino.opset7.ops import dft +from openvino.opset1.ops import divide +from openvino.opset7.ops import einsum +from openvino.opset1.ops import elu +from openvino.opset3.ops import embedding_bag_offsets_sum +from openvino.opset3.ops import embedding_bag_packed_sum +from openvino.opset3.ops import embedding_segments_sum +from openvino.opset3.ops import extract_image_patches +from openvino.opset1.ops import equal +from openvino.opset1.ops import erf +from openvino.opset1.ops import exp +from openvino.opset1.ops import fake_quantize +from openvino.opset1.ops import floor +from openvino.opset1.ops import floor_mod +from openvino.opset8.ops import gather +from openvino.opset6.ops import gather_elements +from openvino.opset8.ops import gather_nd +from openvino.opset1.ops import gather_tree +from openvino.opset7.ops import gelu +from openvino.opset1.ops import greater +from openvino.opset1.ops import greater_equal +from openvino.opset1.ops import grn +from openvino.opset1.ops import group_convolution +from openvino.opset1.ops import group_convolution_backprop_data +from openvino.opset3.ops import gru_cell +from openvino.opset5.ops import gru_sequence +from openvino.opset1.ops import hard_sigmoid +from openvino.opset5.ops import hsigmoid +from openvino.opset4.ops import hswish +from openvino.opset7.ops import idft +from openvino.opset8.ops import if_op +from openvino.opset1.ops import interpolate +from openvino.opset8.ops import i420_to_bgr +from openvino.opset8.ops import i420_to_rgb +from openvino.opset1.ops import less +from openvino.opset1.ops import less_equal +from openvino.opset1.ops import log +from openvino.opset1.ops import logical_and +from openvino.opset1.ops import logical_not +from openvino.opset1.ops import logical_or +from openvino.opset1.ops import logical_xor +from openvino.opset5.ops import log_softmax +from openvino.opset5.ops import loop +from openvino.opset1.ops import lrn +from openvino.opset4.ops import lstm_cell +from openvino.opset5.ops import lstm_sequence +from openvino.opset1.ops import matmul +from openvino.opset8.ops import matrix_nms +from openvino.opset8.ops import max_pool +from openvino.opset1.ops import maximum +from openvino.opset1.ops import minimum +from openvino.opset4.ops import mish +from openvino.opset1.ops import mod +from openvino.opset8.ops import multiclass_nms +from openvino.opset1.ops import multiply +from openvino.opset6.ops import mvn +from openvino.opset1.ops import negative +from openvino.opset5.ops import non_max_suppression +from openvino.opset3.ops import non_zero +from openvino.opset1.ops import normalize_l2 +from openvino.opset1.ops import not_equal +from openvino.opset8.ops import nv12_to_bgr +from openvino.opset8.ops import nv12_to_rgb +from openvino.opset1.ops import one_hot +from openvino.opset1.ops import pad +from openvino.opset1.ops import parameter +from openvino.opset1.ops import power +from openvino.opset1.ops import prelu +from openvino.opset8.ops import prior_box +from openvino.opset1.ops import prior_box_clustered +from openvino.opset1.ops import psroi_pooling +from openvino.opset4.ops import proposal +from openvino.opset1.ops import range +from openvino.opset8.ops import random_uniform +from openvino.opset6.ops import read_value +from openvino.opset4.ops import reduce_l1 +from openvino.opset4.ops import reduce_l2 +from openvino.opset1.ops import reduce_logical_and +from openvino.opset1.ops import reduce_logical_or +from openvino.opset1.ops import reduce_max +from openvino.opset1.ops import reduce_mean +from openvino.opset1.ops import reduce_min +from openvino.opset1.ops import reduce_prod +from openvino.opset1.ops import reduce_sum +from openvino.opset1.ops import region_yolo +from openvino.opset2.ops import reorg_yolo +from openvino.opset1.ops import relu +from openvino.opset1.ops import reshape +from openvino.opset1.ops import result +from openvino.opset1.ops import reverse_sequence +from openvino.opset3.ops import rnn_cell +from openvino.opset5.ops import rnn_sequence +from openvino.opset3.ops import roi_align +from openvino.opset2.ops import roi_pooling +from openvino.opset7.ops import roll +from openvino.opset5.ops import round +from openvino.opset3.ops import scatter_elements_update +from openvino.opset4.ops import scatter_nd_update +from openvino.opset3.ops import scatter_update +from openvino.opset1.ops import select +from openvino.opset1.ops import selu +from openvino.opset3.ops import shape_of +from openvino.opset3.ops import shuffle_channels +from openvino.opset1.ops import sigmoid +from openvino.opset1.ops import sign +from openvino.opset1.ops import sin +from openvino.opset1.ops import sinh +from openvino.opset8.ops import slice +from openvino.opset8.ops import softmax +from openvino.opset4.ops import softplus +from openvino.opset2.ops import space_to_batch +from openvino.opset1.ops import space_to_depth +from openvino.opset1.ops import split +from openvino.opset1.ops import sqrt +from openvino.opset1.ops import squared_difference +from openvino.opset1.ops import squeeze +from openvino.opset1.ops import strided_slice +from openvino.opset1.ops import subtract +from openvino.opset4.ops import swish +from openvino.opset1.ops import tan +from openvino.opset1.ops import tanh +from openvino.opset1.ops import tensor_iterator +from openvino.opset1.ops import tile +from openvino.opset3.ops import topk +from openvino.opset1.ops import transpose +from openvino.opset1.ops import unsqueeze +from openvino.opset1.ops import variadic_split diff --git a/src/bindings/python/src/openvino/opsets/opset8/ops.py b/src/bindings/python/src/openvino/opset8/ops.py similarity index 99% rename from src/bindings/python/src/openvino/opsets/opset8/ops.py rename to src/bindings/python/src/openvino/opset8/ops.py index f11aa763cf2214..5a04bb2dbdb904 100644 --- a/src/bindings/python/src/openvino/opsets/opset8/ops.py +++ b/src/bindings/python/src/openvino/opset8/ops.py @@ -8,9 +8,9 @@ import numpy as np from openvino.exceptions import UserInputError -from openvino.opsets.op import Constant, Parameter, if_op +from openvino.op import Constant, Parameter, if_op from openvino._pyopenvino import Node -from openvino.opsets.opset_utils import _get_node_factory +from openvino.opset_utils import _get_node_factory from openvino.utils.decorators import nameable_op from openvino.utils.input_validation import ( check_valid_attributes, diff --git a/src/bindings/python/src/openvino/opset9/__init__.py b/src/bindings/python/src/openvino/opset9/__init__.py new file mode 100644 index 00000000000000..03051d46b58759 --- /dev/null +++ b/src/bindings/python/src/openvino/opset9/__init__.py @@ -0,0 +1,175 @@ +# -*- coding: utf-8 -*- +# Copyright (C) 2018-2024 Intel Corporation +# SPDX-License-Identifier: Apache-2.0 + +from openvino.opset1.ops import absolute +from openvino.opset1.ops import absolute as abs +from openvino.opset1.ops import acos +from openvino.opset4.ops import acosh +from openvino.opset8.ops import adaptive_avg_pool +from openvino.opset8.ops import adaptive_max_pool +from openvino.opset1.ops import add +from openvino.opset1.ops import asin +from openvino.opset4.ops import asinh +from openvino.opset6.ops import assign +from openvino.opset1.ops import atan +from openvino.opset4.ops import atanh +from openvino.opset1.ops import avg_pool +from openvino.opset5.ops import batch_norm_inference +from openvino.opset2.ops import batch_to_space +from openvino.opset1.ops import binary_convolution +from openvino.opset3.ops import broadcast +from openvino.opset3.ops import bucketize +from openvino.opset1.ops import ceiling +from openvino.opset1.ops import ceiling as ceil +from openvino.opset1.ops import clamp +from openvino.opset1.ops import concat +from openvino.opset1.ops import constant +from openvino.opset1.ops import convert +from openvino.opset1.ops import convert_like +from openvino.opset1.ops import convolution +from openvino.opset1.ops import convolution_backprop_data +from openvino.opset1.ops import cos +from openvino.opset1.ops import cosh +from openvino.opset1.ops import ctc_greedy_decoder +from openvino.opset6.ops import ctc_greedy_decoder_seq_len +from openvino.opset4.ops import ctc_loss +from openvino.opset3.ops import cum_sum +from openvino.opset3.ops import cum_sum as cumsum +from openvino.opset8.ops import deformable_convolution +from openvino.opset1.ops import deformable_psroi_pooling +from openvino.opset1.ops import depth_to_space +from openvino.opset8.ops import detection_output +from openvino.opset7.ops import dft +from openvino.opset1.ops import divide +from openvino.opset7.ops import einsum +from openvino.opset1.ops import elu +from openvino.opset3.ops import embedding_bag_offsets_sum +from openvino.opset3.ops import embedding_bag_packed_sum +from openvino.opset3.ops import embedding_segments_sum +from openvino.opset3.ops import extract_image_patches +from openvino.opset1.ops import equal +from openvino.opset1.ops import erf +from openvino.opset1.ops import exp +from openvino.opset9.ops import eye +from openvino.opset1.ops import fake_quantize +from openvino.opset1.ops import floor +from openvino.opset1.ops import floor_mod +from openvino.opset8.ops import gather +from openvino.opset6.ops import gather_elements +from openvino.opset8.ops import gather_nd +from openvino.opset1.ops import gather_tree +from openvino.opset7.ops import gelu +from openvino.opset9.ops import generate_proposals +from openvino.opset1.ops import greater +from openvino.opset1.ops import greater_equal +from openvino.opset9.ops import grid_sample +from openvino.opset1.ops import grn +from openvino.opset1.ops import group_convolution +from openvino.opset1.ops import group_convolution_backprop_data +from openvino.opset3.ops import gru_cell +from openvino.opset5.ops import gru_sequence +from openvino.opset1.ops import hard_sigmoid +from openvino.opset5.ops import hsigmoid +from openvino.opset4.ops import hswish +from openvino.opset7.ops import idft +from openvino.opset8.ops import if_op +from openvino.opset1.ops import interpolate +from openvino.opset9.ops import irdft +from openvino.opset8.ops import i420_to_bgr +from openvino.opset8.ops import i420_to_rgb +from openvino.opset1.ops import less +from openvino.opset1.ops import less_equal +from openvino.opset1.ops import log +from openvino.opset1.ops import logical_and +from openvino.opset1.ops import logical_not +from openvino.opset1.ops import logical_or +from openvino.opset1.ops import logical_xor +from openvino.opset5.ops import log_softmax +from openvino.opset5.ops import loop +from openvino.opset1.ops import lrn +from openvino.opset4.ops import lstm_cell +from openvino.opset5.ops import lstm_sequence +from openvino.opset1.ops import matmul +from openvino.opset8.ops import matrix_nms +from openvino.opset8.ops import max_pool +from openvino.opset1.ops import maximum +from openvino.opset1.ops import minimum +from openvino.opset4.ops import mish +from openvino.opset1.ops import mod +from openvino.opset9.ops import multiclass_nms +from openvino.opset1.ops import multiply +from openvino.opset6.ops import mvn +from openvino.opset1.ops import negative +from openvino.opset9.ops import non_max_suppression +from openvino.opset3.ops import non_zero +from openvino.opset1.ops import normalize_l2 +from openvino.opset1.ops import not_equal +from openvino.opset8.ops import nv12_to_bgr +from openvino.opset8.ops import nv12_to_rgb +from openvino.opset1.ops import one_hot +from openvino.opset1.ops import pad +from openvino.opset1.ops import parameter +from openvino.opset1.ops import power +from openvino.opset1.ops import prelu +from openvino.opset8.ops import prior_box +from openvino.opset1.ops import prior_box_clustered +from openvino.opset1.ops import psroi_pooling +from openvino.opset4.ops import proposal +from openvino.opset1.ops import range +from openvino.opset8.ops import random_uniform +from openvino.opset9.ops import rdft +from openvino.opset6.ops import read_value +from openvino.opset4.ops import reduce_l1 +from openvino.opset4.ops import reduce_l2 +from openvino.opset1.ops import reduce_logical_and +from openvino.opset1.ops import reduce_logical_or +from openvino.opset1.ops import reduce_max +from openvino.opset1.ops import reduce_mean +from openvino.opset1.ops import reduce_min +from openvino.opset1.ops import reduce_prod +from openvino.opset1.ops import reduce_sum +from openvino.opset1.ops import region_yolo +from openvino.opset2.ops import reorg_yolo +from openvino.opset1.ops import relu +from openvino.opset1.ops import reshape +from openvino.opset1.ops import result +from openvino.opset1.ops import reverse_sequence +from openvino.opset3.ops import rnn_cell +from openvino.opset5.ops import rnn_sequence +from openvino.opset9.ops import roi_align +from openvino.opset2.ops import roi_pooling +from openvino.opset7.ops import roll +from openvino.opset5.ops import round +from openvino.opset3.ops import scatter_elements_update +from openvino.opset4.ops import scatter_nd_update +from openvino.opset3.ops import scatter_update +from openvino.opset1.ops import select +from openvino.opset1.ops import selu +from openvino.opset3.ops import shape_of +from openvino.opset3.ops import shuffle_channels +from openvino.opset1.ops import sigmoid +from openvino.opset1.ops import sign +from openvino.opset1.ops import sin +from openvino.opset1.ops import sinh +from openvino.opset8.ops import slice +from openvino.opset8.ops import softmax +from openvino.opset4.ops import softplus +from openvino.opset9.ops import softsign +from openvino.opset2.ops import space_to_batch +from openvino.opset1.ops import space_to_depth +from openvino.opset1.ops import split +from openvino.opset1.ops import sqrt +from openvino.opset1.ops import squared_difference +from openvino.opset1.ops import squeeze +from openvino.opset1.ops import strided_slice +from openvino.opset1.ops import subtract +from openvino.opset4.ops import swish +from openvino.opset1.ops import tan +from openvino.opset1.ops import tanh +from openvino.opset1.ops import tensor_iterator +from openvino.opset1.ops import tile +from openvino.opset3.ops import topk +from openvino.opset1.ops import transpose +from openvino.opset1.ops import unsqueeze +from openvino.opset1.ops import variadic_split diff --git a/src/bindings/python/src/openvino/opsets/opset9/ops.py b/src/bindings/python/src/openvino/opset9/ops.py similarity index 99% rename from src/bindings/python/src/openvino/opsets/opset9/ops.py rename to src/bindings/python/src/openvino/opset9/ops.py index 011ac2696dc317..1c7b574f0915b6 100644 --- a/src/bindings/python/src/openvino/opsets/opset9/ops.py +++ b/src/bindings/python/src/openvino/opset9/ops.py @@ -8,7 +8,7 @@ import numpy as np from openvino._pyopenvino import Node -from openvino.opsets.opset_utils import _get_node_factory +from openvino.opset_utils import _get_node_factory from openvino.utils.decorators import nameable_op from openvino.utils.types import ( NodeInput, diff --git a/src/bindings/python/src/openvino/opsets/opset_utils.py b/src/bindings/python/src/openvino/opset_utils.py similarity index 100% rename from src/bindings/python/src/openvino/opsets/opset_utils.py rename to src/bindings/python/src/openvino/opset_utils.py diff --git a/src/bindings/python/src/openvino/opsets/opset1/__init__.py b/src/bindings/python/src/openvino/opsets/opset1/__init__.py deleted file mode 100644 index b358b96d2a29d3..00000000000000 --- a/src/bindings/python/src/openvino/opsets/opset1/__init__.py +++ /dev/null @@ -1,112 +0,0 @@ -# -*- coding: utf-8 -*- -# Copyright (C) 2018-2024 Intel Corporation -# SPDX-License-Identifier: Apache-2.0 - -from openvino.opsets.opset1.ops import absolute -from openvino.opsets.opset1.ops import absolute as abs -from openvino.opsets.opset1.ops import acos -from openvino.opsets.opset1.ops import add -from openvino.opsets.opset1.ops import asin -from openvino.opsets.opset1.ops import atan -from openvino.opsets.opset1.ops import avg_pool -from openvino.opsets.opset1.ops import batch_norm_inference -from openvino.opsets.opset1.ops import binary_convolution -from openvino.opsets.opset1.ops import broadcast -from openvino.opsets.opset1.ops import ceiling -from openvino.opsets.opset1.ops import ceiling as ceil -from openvino.opsets.opset1.ops import clamp -from openvino.opsets.opset1.ops import concat -from openvino.opsets.opset1.ops import constant -from openvino.opsets.opset1.ops import convert -from openvino.opsets.opset1.ops import convert_like -from openvino.opsets.opset1.ops import convolution -from openvino.opsets.opset1.ops import convolution_backprop_data -from openvino.opsets.opset1.ops import cos -from openvino.opsets.opset1.ops import cosh -from openvino.opsets.opset1.ops import ctc_greedy_decoder -from openvino.opsets.opset1.ops import deformable_convolution -from openvino.opsets.opset1.ops import deformable_psroi_pooling -from openvino.opsets.opset1.ops import depth_to_space -from openvino.opsets.opset1.ops import detection_output -from openvino.opsets.opset1.ops import divide -from openvino.opsets.opset1.ops import elu -from openvino.opsets.opset1.ops import equal -from openvino.opsets.opset1.ops import erf -from openvino.opsets.opset1.ops import exp -from openvino.opsets.opset1.ops import fake_quantize -from openvino.opsets.opset1.ops import floor -from openvino.opsets.opset1.ops import floor_mod -from openvino.opsets.opset1.ops import gather -from openvino.opsets.opset1.ops import gather_tree -from openvino.opsets.opset1.ops import greater -from openvino.opsets.opset1.ops import greater_equal -from openvino.opsets.opset1.ops import grn -from openvino.opsets.opset1.ops import group_convolution -from openvino.opsets.opset1.ops import group_convolution_backprop_data -from openvino.opsets.opset1.ops import hard_sigmoid -from openvino.opsets.opset1.ops import interpolate -from openvino.opsets.opset1.ops import less -from openvino.opsets.opset1.ops import less_equal -from openvino.opsets.opset1.ops import log -from openvino.opsets.opset1.ops import logical_and -from openvino.opsets.opset1.ops import logical_not -from openvino.opsets.opset1.ops import logical_or -from openvino.opsets.opset1.ops import logical_xor -from openvino.opsets.opset1.ops import lrn -from openvino.opsets.opset1.ops import lstm_cell -from openvino.opsets.opset1.ops import lstm_sequence -from openvino.opsets.opset1.ops import matmul -from openvino.opsets.opset1.ops import max_pool -from openvino.opsets.opset1.ops import maximum -from openvino.opsets.opset1.ops import minimum -from openvino.opsets.opset1.ops import mod -from openvino.opsets.opset1.ops import multiply -from openvino.opsets.opset1.ops import negative -from openvino.opsets.opset1.ops import non_max_suppression -from openvino.opsets.opset1.ops import normalize_l2 -from openvino.opsets.opset1.ops import not_equal -from openvino.opsets.opset1.ops import one_hot -from openvino.opsets.opset1.ops import pad -from openvino.opsets.opset1.ops import parameter -from openvino.opsets.opset1.ops import power -from openvino.opsets.opset1.ops import prelu -from openvino.opsets.opset1.ops import prior_box -from openvino.opsets.opset1.ops import prior_box_clustered -from openvino.opsets.opset1.ops import psroi_pooling -from openvino.opsets.opset1.ops import proposal -from openvino.opsets.opset1.ops import range -from openvino.opsets.opset1.ops import reduce_logical_and -from openvino.opsets.opset1.ops import reduce_logical_or -from openvino.opsets.opset1.ops import reduce_max -from openvino.opsets.opset1.ops import reduce_mean -from openvino.opsets.opset1.ops import reduce_min -from openvino.opsets.opset1.ops import reduce_prod -from openvino.opsets.opset1.ops import reduce_sum -from openvino.opsets.opset1.ops import region_yolo -from openvino.opsets.opset1.ops import relu -from openvino.opsets.opset1.ops import reshape -from openvino.opsets.opset1.ops import result -from openvino.opsets.opset1.ops import reverse_sequence -from openvino.opsets.opset1.ops import select -from openvino.opsets.opset1.ops import selu -from openvino.opsets.opset1.ops import shape_of -from openvino.opsets.opset1.ops import sigmoid -from openvino.opsets.opset1.ops import sign -from openvino.opsets.opset1.ops import sin -from openvino.opsets.opset1.ops import sinh -from openvino.opsets.opset1.ops import softmax -from openvino.opsets.opset1.ops import space_to_depth -from openvino.opsets.opset1.ops import split -from openvino.opsets.opset1.ops import sqrt -from openvino.opsets.opset1.ops import squared_difference -from openvino.opsets.opset1.ops import squeeze -from openvino.opsets.opset1.ops import strided_slice -from openvino.opsets.opset1.ops import subtract -from openvino.opsets.opset1.ops import tan -from openvino.opsets.opset1.ops import tanh -from openvino.opsets.opset1.ops import tensor_iterator -from openvino.opsets.opset1.ops import tile -from openvino.opsets.opset1.ops import topk -from openvino.opsets.opset1.ops import transpose -from openvino.opsets.opset1.ops import unsqueeze -from openvino.opsets.opset1.ops import variadic_split diff --git a/src/bindings/python/src/openvino/opsets/opset10/__init__.py b/src/bindings/python/src/openvino/opsets/opset10/__init__.py deleted file mode 100644 index 0f077499c549e1..00000000000000 --- a/src/bindings/python/src/openvino/opsets/opset10/__init__.py +++ /dev/null @@ -1,179 +0,0 @@ -# -*- coding: utf-8 -*- -# Copyright (C) 2018-2024 Intel Corporation -# SPDX-License-Identifier: Apache-2.0 - -from openvino.opsets.opset1.ops import absolute -from openvino.opsets.opset1.ops import absolute as abs -from openvino.opsets.opset1.ops import acos -from openvino.opsets.opset4.ops import acosh -from openvino.opsets.opset8.ops import adaptive_avg_pool -from openvino.opsets.opset8.ops import adaptive_max_pool -from openvino.opsets.opset1.ops import add -from openvino.opsets.opset1.ops import asin -from openvino.opsets.opset4.ops import asinh -from openvino.opsets.opset6.ops import assign -from openvino.opsets.opset1.ops import atan -from openvino.opsets.opset4.ops import atanh -from openvino.opsets.opset1.ops import avg_pool -from openvino.opsets.opset5.ops import batch_norm_inference -from openvino.opsets.opset2.ops import batch_to_space -from openvino.opsets.opset1.ops import binary_convolution -from openvino.opsets.opset3.ops import broadcast -from openvino.opsets.opset3.ops import bucketize -from openvino.opsets.opset1.ops import ceiling -from openvino.opsets.opset1.ops import ceiling as ceil -from openvino.opsets.opset1.ops import clamp -from openvino.opsets.opset1.ops import concat -from openvino.opsets.opset1.ops import constant -from openvino.opsets.opset1.ops import convert -from openvino.opsets.opset1.ops import convert_like -from openvino.opsets.opset1.ops import convolution -from openvino.opsets.opset1.ops import convolution_backprop_data -from openvino.opsets.opset1.ops import cos -from openvino.opsets.opset1.ops import cosh -from openvino.opsets.opset1.ops import ctc_greedy_decoder -from openvino.opsets.opset6.ops import ctc_greedy_decoder_seq_len -from openvino.opsets.opset4.ops import ctc_loss -from openvino.opsets.opset3.ops import cum_sum -from openvino.opsets.opset3.ops import cum_sum as cumsum -from openvino.opsets.opset8.ops import deformable_convolution -from openvino.opsets.opset1.ops import deformable_psroi_pooling -from openvino.opsets.opset1.ops import depth_to_space -from openvino.opsets.opset8.ops import detection_output -from openvino.opsets.opset7.ops import dft -from openvino.opsets.opset1.ops import divide -from openvino.opsets.opset7.ops import einsum -from openvino.opsets.opset1.ops import elu -from openvino.opsets.opset3.ops import embedding_bag_offsets_sum -from openvino.opsets.opset3.ops import embedding_bag_packed_sum -from openvino.opsets.opset3.ops import embedding_segments_sum -from openvino.opsets.opset3.ops import extract_image_patches -from openvino.opsets.opset1.ops import equal -from openvino.opsets.opset1.ops import erf -from openvino.opsets.opset1.ops import exp -from openvino.opsets.opset9.ops import eye -from openvino.opsets.opset1.ops import fake_quantize -from openvino.opsets.opset1.ops import floor -from openvino.opsets.opset1.ops import floor_mod -from openvino.opsets.opset8.ops import gather -from openvino.opsets.opset6.ops import gather_elements -from openvino.opsets.opset8.ops import gather_nd -from openvino.opsets.opset1.ops import gather_tree -from openvino.opsets.opset7.ops import gelu -from openvino.opsets.opset9.ops import generate_proposals -from openvino.opsets.opset1.ops import greater -from openvino.opsets.opset1.ops import greater_equal -from openvino.opsets.opset9.ops import grid_sample -from openvino.opsets.opset1.ops import grn -from openvino.opsets.opset1.ops import group_convolution -from openvino.opsets.opset1.ops import group_convolution_backprop_data -from openvino.opsets.opset3.ops import gru_cell -from openvino.opsets.opset5.ops import gru_sequence -from openvino.opsets.opset1.ops import hard_sigmoid -from openvino.opsets.opset5.ops import hsigmoid -from openvino.opsets.opset4.ops import hswish -from openvino.opsets.opset7.ops import idft -from openvino.opsets.opset8.ops import if_op -from openvino.opsets.opset10.ops import interpolate -from openvino.opsets.opset9.ops import irdft -from openvino.opsets.opset10.ops import is_finite -from openvino.opsets.opset10.ops import is_inf -from openvino.opsets.opset10.ops import is_nan -from openvino.opsets.opset8.ops import i420_to_bgr -from openvino.opsets.opset8.ops import i420_to_rgb -from openvino.opsets.opset1.ops import less -from openvino.opsets.opset1.ops import less_equal -from openvino.opsets.opset1.ops import log -from openvino.opsets.opset1.ops import logical_and -from openvino.opsets.opset1.ops import logical_not -from openvino.opsets.opset1.ops import logical_or -from openvino.opsets.opset1.ops import logical_xor -from openvino.opsets.opset5.ops import log_softmax -from openvino.opsets.opset5.ops import loop -from openvino.opsets.opset1.ops import lrn -from openvino.opsets.opset4.ops import lstm_cell -from openvino.opsets.opset5.ops import lstm_sequence -from openvino.opsets.opset1.ops import matmul -from openvino.opsets.opset8.ops import matrix_nms -from openvino.opsets.opset8.ops import max_pool -from openvino.opsets.opset1.ops import maximum -from openvino.opsets.opset1.ops import minimum -from openvino.opsets.opset4.ops import mish -from openvino.opsets.opset1.ops import mod -from openvino.opsets.opset9.ops import multiclass_nms -from openvino.opsets.opset1.ops import multiply -from openvino.opsets.opset6.ops import mvn -from openvino.opsets.opset1.ops import negative -from openvino.opsets.opset9.ops import non_max_suppression -from openvino.opsets.opset3.ops import non_zero -from openvino.opsets.opset1.ops import normalize_l2 -from openvino.opsets.opset1.ops import not_equal -from openvino.opsets.opset8.ops import nv12_to_bgr -from openvino.opsets.opset8.ops import nv12_to_rgb -from openvino.opsets.opset1.ops import one_hot -from openvino.opsets.opset1.ops import pad -from openvino.opsets.opset1.ops import parameter -from openvino.opsets.opset1.ops import power -from openvino.opsets.opset1.ops import prelu -from openvino.opsets.opset8.ops import prior_box -from openvino.opsets.opset1.ops import prior_box_clustered -from openvino.opsets.opset1.ops import psroi_pooling -from openvino.opsets.opset4.ops import proposal -from openvino.opsets.opset1.ops import range -from openvino.opsets.opset8.ops import random_uniform -from openvino.opsets.opset9.ops import rdft -from openvino.opsets.opset6.ops import read_value -from openvino.opsets.opset4.ops import reduce_l1 -from openvino.opsets.opset4.ops import reduce_l2 -from openvino.opsets.opset1.ops import reduce_logical_and -from openvino.opsets.opset1.ops import reduce_logical_or -from openvino.opsets.opset1.ops import reduce_max -from openvino.opsets.opset1.ops import reduce_mean -from openvino.opsets.opset1.ops import reduce_min -from openvino.opsets.opset1.ops import reduce_prod -from openvino.opsets.opset1.ops import reduce_sum -from openvino.opsets.opset1.ops import region_yolo -from openvino.opsets.opset2.ops import reorg_yolo -from openvino.opsets.opset1.ops import relu -from openvino.opsets.opset1.ops import reshape -from openvino.opsets.opset1.ops import result -from openvino.opsets.opset1.ops import reverse_sequence -from openvino.opsets.opset3.ops import rnn_cell -from openvino.opsets.opset5.ops import rnn_sequence -from openvino.opsets.opset9.ops import roi_align -from openvino.opsets.opset2.ops import roi_pooling -from openvino.opsets.opset7.ops import roll -from openvino.opsets.opset5.ops import round -from openvino.opsets.opset3.ops import scatter_elements_update -from openvino.opsets.opset4.ops import scatter_nd_update -from openvino.opsets.opset3.ops import scatter_update -from openvino.opsets.opset1.ops import select -from openvino.opsets.opset1.ops import selu -from openvino.opsets.opset3.ops import shape_of -from openvino.opsets.opset3.ops import shuffle_channels -from openvino.opsets.opset1.ops import sigmoid -from openvino.opsets.opset1.ops import sign -from openvino.opsets.opset1.ops import sin -from openvino.opsets.opset1.ops import sinh -from openvino.opsets.opset8.ops import slice -from openvino.opsets.opset8.ops import softmax -from openvino.opsets.opset4.ops import softplus -from openvino.opsets.opset9.ops import softsign -from openvino.opsets.opset2.ops import space_to_batch -from openvino.opsets.opset1.ops import space_to_depth -from openvino.opsets.opset1.ops import split -from openvino.opsets.opset1.ops import sqrt -from openvino.opsets.opset1.ops import squared_difference -from openvino.opsets.opset1.ops import squeeze -from openvino.opsets.opset1.ops import strided_slice -from openvino.opsets.opset1.ops import subtract -from openvino.opsets.opset4.ops import swish -from openvino.opsets.opset1.ops import tan -from openvino.opsets.opset1.ops import tanh -from openvino.opsets.opset1.ops import tensor_iterator -from openvino.opsets.opset1.ops import tile -from openvino.opsets.opset3.ops import topk -from openvino.opsets.opset1.ops import transpose -from openvino.opsets.opset10.ops import unique -from openvino.opsets.opset1.ops import unsqueeze -from openvino.opsets.opset1.ops import variadic_split diff --git a/src/bindings/python/src/openvino/opsets/opset11/__init__.py b/src/bindings/python/src/openvino/opsets/opset11/__init__.py deleted file mode 100644 index ba3d6006fb6994..00000000000000 --- a/src/bindings/python/src/openvino/opsets/opset11/__init__.py +++ /dev/null @@ -1,179 +0,0 @@ -# -*- coding: utf-8 -*- -# Copyright (C) 2018-2024 Intel Corporation -# SPDX-License-Identifier: Apache-2.0 - -from openvino.opsets.opset1.ops import absolute -from openvino.opsets.opset1.ops import absolute as abs -from openvino.opsets.opset1.ops import acos -from openvino.opsets.opset4.ops import acosh -from openvino.opsets.opset8.ops import adaptive_avg_pool -from openvino.opsets.opset8.ops import adaptive_max_pool -from openvino.opsets.opset1.ops import add -from openvino.opsets.opset1.ops import asin -from openvino.opsets.opset4.ops import asinh -from openvino.opsets.opset6.ops import assign -from openvino.opsets.opset1.ops import atan -from openvino.opsets.opset4.ops import atanh -from openvino.opsets.opset1.ops import avg_pool -from openvino.opsets.opset5.ops import batch_norm_inference -from openvino.opsets.opset2.ops import batch_to_space -from openvino.opsets.opset1.ops import binary_convolution -from openvino.opsets.opset3.ops import broadcast -from openvino.opsets.opset3.ops import bucketize -from openvino.opsets.opset1.ops import ceiling -from openvino.opsets.opset1.ops import ceiling as ceil -from openvino.opsets.opset1.ops import clamp -from openvino.opsets.opset1.ops import concat -from openvino.opsets.opset1.ops import constant -from openvino.opsets.opset1.ops import convert -from openvino.opsets.opset1.ops import convert_like -from openvino.opsets.opset1.ops import convolution -from openvino.opsets.opset1.ops import convolution_backprop_data -from openvino.opsets.opset1.ops import cos -from openvino.opsets.opset1.ops import cosh -from openvino.opsets.opset1.ops import ctc_greedy_decoder -from openvino.opsets.opset6.ops import ctc_greedy_decoder_seq_len -from openvino.opsets.opset4.ops import ctc_loss -from openvino.opsets.opset3.ops import cum_sum -from openvino.opsets.opset3.ops import cum_sum as cumsum -from openvino.opsets.opset8.ops import deformable_convolution -from openvino.opsets.opset1.ops import deformable_psroi_pooling -from openvino.opsets.opset1.ops import depth_to_space -from openvino.opsets.opset8.ops import detection_output -from openvino.opsets.opset7.ops import dft -from openvino.opsets.opset1.ops import divide -from openvino.opsets.opset7.ops import einsum -from openvino.opsets.opset1.ops import elu -from openvino.opsets.opset3.ops import embedding_bag_offsets_sum -from openvino.opsets.opset3.ops import embedding_bag_packed_sum -from openvino.opsets.opset3.ops import embedding_segments_sum -from openvino.opsets.opset3.ops import extract_image_patches -from openvino.opsets.opset1.ops import equal -from openvino.opsets.opset1.ops import erf -from openvino.opsets.opset1.ops import exp -from openvino.opsets.opset9.ops import eye -from openvino.opsets.opset1.ops import fake_quantize -from openvino.opsets.opset1.ops import floor -from openvino.opsets.opset1.ops import floor_mod -from openvino.opsets.opset8.ops import gather -from openvino.opsets.opset6.ops import gather_elements -from openvino.opsets.opset8.ops import gather_nd -from openvino.opsets.opset1.ops import gather_tree -from openvino.opsets.opset7.ops import gelu -from openvino.opsets.opset9.ops import generate_proposals -from openvino.opsets.opset1.ops import greater -from openvino.opsets.opset1.ops import greater_equal -from openvino.opsets.opset9.ops import grid_sample -from openvino.opsets.opset1.ops import grn -from openvino.opsets.opset1.ops import group_convolution -from openvino.opsets.opset1.ops import group_convolution_backprop_data -from openvino.opsets.opset3.ops import gru_cell -from openvino.opsets.opset5.ops import gru_sequence -from openvino.opsets.opset1.ops import hard_sigmoid -from openvino.opsets.opset5.ops import hsigmoid -from openvino.opsets.opset4.ops import hswish -from openvino.opsets.opset7.ops import idft -from openvino.opsets.opset8.ops import if_op -from openvino.opsets.opset11.ops import interpolate -from openvino.opsets.opset9.ops import irdft -from openvino.opsets.opset10.ops import is_finite -from openvino.opsets.opset10.ops import is_inf -from openvino.opsets.opset10.ops import is_nan -from openvino.opsets.opset8.ops import i420_to_bgr -from openvino.opsets.opset8.ops import i420_to_rgb -from openvino.opsets.opset1.ops import less -from openvino.opsets.opset1.ops import less_equal -from openvino.opsets.opset1.ops import log -from openvino.opsets.opset1.ops import logical_and -from openvino.opsets.opset1.ops import logical_not -from openvino.opsets.opset1.ops import logical_or -from openvino.opsets.opset1.ops import logical_xor -from openvino.opsets.opset5.ops import log_softmax -from openvino.opsets.opset5.ops import loop -from openvino.opsets.opset1.ops import lrn -from openvino.opsets.opset4.ops import lstm_cell -from openvino.opsets.opset5.ops import lstm_sequence -from openvino.opsets.opset1.ops import matmul -from openvino.opsets.opset8.ops import matrix_nms -from openvino.opsets.opset8.ops import max_pool -from openvino.opsets.opset1.ops import maximum -from openvino.opsets.opset1.ops import minimum -from openvino.opsets.opset4.ops import mish -from openvino.opsets.opset1.ops import mod -from openvino.opsets.opset9.ops import multiclass_nms -from openvino.opsets.opset1.ops import multiply -from openvino.opsets.opset6.ops import mvn -from openvino.opsets.opset1.ops import negative -from openvino.opsets.opset9.ops import non_max_suppression -from openvino.opsets.opset3.ops import non_zero -from openvino.opsets.opset1.ops import normalize_l2 -from openvino.opsets.opset1.ops import not_equal -from openvino.opsets.opset8.ops import nv12_to_bgr -from openvino.opsets.opset8.ops import nv12_to_rgb -from openvino.opsets.opset1.ops import one_hot -from openvino.opsets.opset1.ops import pad -from openvino.opsets.opset1.ops import parameter -from openvino.opsets.opset1.ops import power -from openvino.opsets.opset1.ops import prelu -from openvino.opsets.opset8.ops import prior_box -from openvino.opsets.opset1.ops import prior_box_clustered -from openvino.opsets.opset1.ops import psroi_pooling -from openvino.opsets.opset4.ops import proposal -from openvino.opsets.opset1.ops import range -from openvino.opsets.opset8.ops import random_uniform -from openvino.opsets.opset9.ops import rdft -from openvino.opsets.opset6.ops import read_value -from openvino.opsets.opset4.ops import reduce_l1 -from openvino.opsets.opset4.ops import reduce_l2 -from openvino.opsets.opset1.ops import reduce_logical_and -from openvino.opsets.opset1.ops import reduce_logical_or -from openvino.opsets.opset1.ops import reduce_max -from openvino.opsets.opset1.ops import reduce_mean -from openvino.opsets.opset1.ops import reduce_min -from openvino.opsets.opset1.ops import reduce_prod -from openvino.opsets.opset1.ops import reduce_sum -from openvino.opsets.opset1.ops import region_yolo -from openvino.opsets.opset2.ops import reorg_yolo -from openvino.opsets.opset1.ops import relu -from openvino.opsets.opset1.ops import reshape -from openvino.opsets.opset1.ops import result -from openvino.opsets.opset1.ops import reverse_sequence -from openvino.opsets.opset3.ops import rnn_cell -from openvino.opsets.opset5.ops import rnn_sequence -from openvino.opsets.opset9.ops import roi_align -from openvino.opsets.opset2.ops import roi_pooling -from openvino.opsets.opset7.ops import roll -from openvino.opsets.opset5.ops import round -from openvino.opsets.opset3.ops import scatter_elements_update -from openvino.opsets.opset4.ops import scatter_nd_update -from openvino.opsets.opset3.ops import scatter_update -from openvino.opsets.opset1.ops import select -from openvino.opsets.opset1.ops import selu -from openvino.opsets.opset3.ops import shape_of -from openvino.opsets.opset3.ops import shuffle_channels -from openvino.opsets.opset1.ops import sigmoid -from openvino.opsets.opset1.ops import sign -from openvino.opsets.opset1.ops import sin -from openvino.opsets.opset1.ops import sinh -from openvino.opsets.opset8.ops import slice -from openvino.opsets.opset8.ops import softmax -from openvino.opsets.opset4.ops import softplus -from openvino.opsets.opset9.ops import softsign -from openvino.opsets.opset2.ops import space_to_batch -from openvino.opsets.opset1.ops import space_to_depth -from openvino.opsets.opset1.ops import split -from openvino.opsets.opset1.ops import sqrt -from openvino.opsets.opset1.ops import squared_difference -from openvino.opsets.opset1.ops import squeeze -from openvino.opsets.opset1.ops import strided_slice -from openvino.opsets.opset1.ops import subtract -from openvino.opsets.opset4.ops import swish -from openvino.opsets.opset1.ops import tan -from openvino.opsets.opset1.ops import tanh -from openvino.opsets.opset1.ops import tensor_iterator -from openvino.opsets.opset1.ops import tile -from openvino.opsets.opset11.ops import topk -from openvino.opsets.opset1.ops import transpose -from openvino.opsets.opset10.ops import unique -from openvino.opsets.opset1.ops import unsqueeze -from openvino.opsets.opset1.ops import variadic_split diff --git a/src/bindings/python/src/openvino/opsets/opset12/__init__.py b/src/bindings/python/src/openvino/opsets/opset12/__init__.py deleted file mode 100644 index 8e0aeea4aa93ff..00000000000000 --- a/src/bindings/python/src/openvino/opsets/opset12/__init__.py +++ /dev/null @@ -1,180 +0,0 @@ -# -*- coding: utf-8 -*- -# Copyright (C) 2018-2024 Intel Corporation -# SPDX-License-Identifier: Apache-2.0 - -from openvino.opsets.opset1.ops import absolute -from openvino.opsets.opset1.ops import absolute as abs -from openvino.opsets.opset1.ops import acos -from openvino.opsets.opset4.ops import acosh -from openvino.opsets.opset8.ops import adaptive_avg_pool -from openvino.opsets.opset8.ops import adaptive_max_pool -from openvino.opsets.opset1.ops import add -from openvino.opsets.opset1.ops import asin -from openvino.opsets.opset4.ops import asinh -from openvino.opsets.opset6.ops import assign -from openvino.opsets.opset1.ops import atan -from openvino.opsets.opset4.ops import atanh -from openvino.opsets.opset1.ops import avg_pool -from openvino.opsets.opset5.ops import batch_norm_inference -from openvino.opsets.opset2.ops import batch_to_space -from openvino.opsets.opset1.ops import binary_convolution -from openvino.opsets.opset3.ops import broadcast -from openvino.opsets.opset3.ops import bucketize -from openvino.opsets.opset1.ops import ceiling -from openvino.opsets.opset1.ops import ceiling as ceil -from openvino.opsets.opset1.ops import clamp -from openvino.opsets.opset1.ops import concat -from openvino.opsets.opset1.ops import constant -from openvino.opsets.opset1.ops import convert -from openvino.opsets.opset1.ops import convert_like -from openvino.opsets.opset1.ops import convolution -from openvino.opsets.opset1.ops import convolution_backprop_data -from openvino.opsets.opset1.ops import cos -from openvino.opsets.opset1.ops import cosh -from openvino.opsets.opset1.ops import ctc_greedy_decoder -from openvino.opsets.opset6.ops import ctc_greedy_decoder_seq_len -from openvino.opsets.opset4.ops import ctc_loss -from openvino.opsets.opset3.ops import cum_sum -from openvino.opsets.opset3.ops import cum_sum as cumsum -from openvino.opsets.opset8.ops import deformable_convolution -from openvino.opsets.opset1.ops import deformable_psroi_pooling -from openvino.opsets.opset1.ops import depth_to_space -from openvino.opsets.opset8.ops import detection_output -from openvino.opsets.opset7.ops import dft -from openvino.opsets.opset1.ops import divide -from openvino.opsets.opset7.ops import einsum -from openvino.opsets.opset1.ops import elu -from openvino.opsets.opset3.ops import embedding_bag_offsets_sum -from openvino.opsets.opset3.ops import embedding_bag_packed_sum -from openvino.opsets.opset3.ops import embedding_segments_sum -from openvino.opsets.opset3.ops import extract_image_patches -from openvino.opsets.opset1.ops import equal -from openvino.opsets.opset1.ops import erf -from openvino.opsets.opset1.ops import exp -from openvino.opsets.opset9.ops import eye -from openvino.opsets.opset1.ops import fake_quantize -from openvino.opsets.opset1.ops import floor -from openvino.opsets.opset1.ops import floor_mod -from openvino.opsets.opset8.ops import gather -from openvino.opsets.opset6.ops import gather_elements -from openvino.opsets.opset8.ops import gather_nd -from openvino.opsets.opset1.ops import gather_tree -from openvino.opsets.opset7.ops import gelu -from openvino.opsets.opset9.ops import generate_proposals -from openvino.opsets.opset1.ops import greater -from openvino.opsets.opset1.ops import greater_equal -from openvino.opsets.opset9.ops import grid_sample -from openvino.opsets.opset1.ops import grn -from openvino.opsets.opset1.ops import group_convolution -from openvino.opsets.opset1.ops import group_convolution_backprop_data -from openvino.opsets.opset12.ops import group_normalization -from openvino.opsets.opset3.ops import gru_cell -from openvino.opsets.opset5.ops import gru_sequence -from openvino.opsets.opset1.ops import hard_sigmoid -from openvino.opsets.opset5.ops import hsigmoid -from openvino.opsets.opset4.ops import hswish -from openvino.opsets.opset7.ops import idft -from openvino.opsets.opset8.ops import if_op -from openvino.opsets.opset11.ops import interpolate -from openvino.opsets.opset9.ops import irdft -from openvino.opsets.opset10.ops import is_finite -from openvino.opsets.opset10.ops import is_inf -from openvino.opsets.opset10.ops import is_nan -from openvino.opsets.opset8.ops import i420_to_bgr -from openvino.opsets.opset8.ops import i420_to_rgb -from openvino.opsets.opset1.ops import less -from openvino.opsets.opset1.ops import less_equal -from openvino.opsets.opset1.ops import log -from openvino.opsets.opset1.ops import logical_and -from openvino.opsets.opset1.ops import logical_not -from openvino.opsets.opset1.ops import logical_or -from openvino.opsets.opset1.ops import logical_xor -from openvino.opsets.opset5.ops import log_softmax -from openvino.opsets.opset5.ops import loop -from openvino.opsets.opset1.ops import lrn -from openvino.opsets.opset4.ops import lstm_cell -from openvino.opsets.opset5.ops import lstm_sequence -from openvino.opsets.opset1.ops import matmul -from openvino.opsets.opset8.ops import matrix_nms -from openvino.opsets.opset8.ops import max_pool -from openvino.opsets.opset1.ops import maximum -from openvino.opsets.opset1.ops import minimum -from openvino.opsets.opset4.ops import mish -from openvino.opsets.opset1.ops import mod -from openvino.opsets.opset9.ops import multiclass_nms -from openvino.opsets.opset1.ops import multiply -from openvino.opsets.opset6.ops import mvn -from openvino.opsets.opset1.ops import negative -from openvino.opsets.opset9.ops import non_max_suppression -from openvino.opsets.opset3.ops import non_zero -from openvino.opsets.opset1.ops import normalize_l2 -from openvino.opsets.opset1.ops import not_equal -from openvino.opsets.opset8.ops import nv12_to_bgr -from openvino.opsets.opset8.ops import nv12_to_rgb -from openvino.opsets.opset1.ops import one_hot -from openvino.opsets.opset12.ops import pad -from openvino.opsets.opset1.ops import parameter -from openvino.opsets.opset1.ops import power -from openvino.opsets.opset1.ops import prelu -from openvino.opsets.opset8.ops import prior_box -from openvino.opsets.opset1.ops import prior_box_clustered -from openvino.opsets.opset1.ops import psroi_pooling -from openvino.opsets.opset4.ops import proposal -from openvino.opsets.opset4.ops import range -from openvino.opsets.opset8.ops import random_uniform -from openvino.opsets.opset9.ops import rdft -from openvino.opsets.opset6.ops import read_value -from openvino.opsets.opset4.ops import reduce_l1 -from openvino.opsets.opset4.ops import reduce_l2 -from openvino.opsets.opset1.ops import reduce_logical_and -from openvino.opsets.opset1.ops import reduce_logical_or -from openvino.opsets.opset1.ops import reduce_max -from openvino.opsets.opset1.ops import reduce_mean -from openvino.opsets.opset1.ops import reduce_min -from openvino.opsets.opset1.ops import reduce_prod -from openvino.opsets.opset1.ops import reduce_sum -from openvino.opsets.opset1.ops import region_yolo -from openvino.opsets.opset2.ops import reorg_yolo -from openvino.opsets.opset1.ops import relu -from openvino.opsets.opset1.ops import reshape -from openvino.opsets.opset1.ops import result -from openvino.opsets.opset1.ops import reverse_sequence -from openvino.opsets.opset3.ops import rnn_cell -from openvino.opsets.opset5.ops import rnn_sequence -from openvino.opsets.opset9.ops import roi_align -from openvino.opsets.opset2.ops import roi_pooling -from openvino.opsets.opset7.ops import roll -from openvino.opsets.opset5.ops import round -from openvino.opsets.opset12.ops import scatter_elements_update -from openvino.opsets.opset4.ops import scatter_nd_update -from openvino.opsets.opset3.ops import scatter_update -from openvino.opsets.opset1.ops import select -from openvino.opsets.opset1.ops import selu -from openvino.opsets.opset3.ops import shape_of -from openvino.opsets.opset3.ops import shuffle_channels -from openvino.opsets.opset1.ops import sigmoid -from openvino.opsets.opset1.ops import sign -from openvino.opsets.opset1.ops import sin -from openvino.opsets.opset1.ops import sinh -from openvino.opsets.opset8.ops import slice -from openvino.opsets.opset8.ops import softmax -from openvino.opsets.opset4.ops import softplus -from openvino.opsets.opset9.ops import softsign -from openvino.opsets.opset2.ops import space_to_batch -from openvino.opsets.opset1.ops import space_to_depth -from openvino.opsets.opset1.ops import split -from openvino.opsets.opset1.ops import sqrt -from openvino.opsets.opset1.ops import squared_difference -from openvino.opsets.opset1.ops import squeeze -from openvino.opsets.opset1.ops import strided_slice -from openvino.opsets.opset1.ops import subtract -from openvino.opsets.opset4.ops import swish -from openvino.opsets.opset1.ops import tan -from openvino.opsets.opset1.ops import tanh -from openvino.opsets.opset1.ops import tensor_iterator -from openvino.opsets.opset1.ops import tile -from openvino.opsets.opset11.ops import topk -from openvino.opsets.opset1.ops import transpose -from openvino.opsets.opset10.ops import unique -from openvino.opsets.opset1.ops import unsqueeze -from openvino.opsets.opset1.ops import variadic_split diff --git a/src/bindings/python/src/openvino/opsets/opset13/__init__.py b/src/bindings/python/src/openvino/opsets/opset13/__init__.py deleted file mode 100644 index bd2239f71579b0..00000000000000 --- a/src/bindings/python/src/openvino/opsets/opset13/__init__.py +++ /dev/null @@ -1,188 +0,0 @@ -# -*- coding: utf-8 -*- -# Copyright (C) 2018-2024 Intel Corporation -# SPDX-License-Identifier: Apache-2.0 - -from openvino.opsets.opset1.ops import absolute -from openvino.opsets.opset1.ops import absolute as abs -from openvino.opsets.opset1.ops import acos -from openvino.opsets.opset4.ops import acosh -from openvino.opsets.opset8.ops import adaptive_avg_pool -from openvino.opsets.opset8.ops import adaptive_max_pool -from openvino.opsets.opset1.ops import add -from openvino.opsets.opset1.ops import asin -from openvino.opsets.opset4.ops import asinh -from openvino.opsets.opset6.ops import assign -from openvino.opsets.opset1.ops import atan -from openvino.opsets.opset4.ops import atanh -from openvino.opsets.opset1.ops import avg_pool -from openvino.opsets.opset5.ops import batch_norm_inference -from openvino.opsets.opset2.ops import batch_to_space -from openvino.opsets.opset1.ops import binary_convolution -from openvino.opsets.opset13.ops import bitwise_and -from openvino.opsets.opset13.ops import bitwise_not -from openvino.opsets.opset13.ops import bitwise_or -from openvino.opsets.opset13.ops import bitwise_xor -from openvino.opsets.opset3.ops import broadcast -from openvino.opsets.opset3.ops import bucketize -from openvino.opsets.opset1.ops import ceiling -from openvino.opsets.opset1.ops import ceiling as ceil -from openvino.opsets.opset1.ops import clamp -from openvino.opsets.opset1.ops import concat -from openvino.opsets.opset13.ops import constant -from openvino.opsets.opset1.ops import convert -from openvino.opsets.opset1.ops import convert_like -from openvino.opsets.opset1.ops import convolution -from openvino.opsets.opset1.ops import convolution_backprop_data -from openvino.opsets.opset1.ops import cos -from openvino.opsets.opset1.ops import cosh -from openvino.opsets.opset1.ops import ctc_greedy_decoder -from openvino.opsets.opset6.ops import ctc_greedy_decoder_seq_len -from openvino.opsets.opset4.ops import ctc_loss -from openvino.opsets.opset3.ops import cum_sum -from openvino.opsets.opset3.ops import cum_sum as cumsum -from openvino.opsets.opset8.ops import deformable_convolution -from openvino.opsets.opset1.ops import deformable_psroi_pooling -from openvino.opsets.opset1.ops import depth_to_space -from openvino.opsets.opset8.ops import detection_output -from openvino.opsets.opset7.ops import dft -from openvino.opsets.opset1.ops import divide -from openvino.opsets.opset7.ops import einsum -from openvino.opsets.opset1.ops import elu -from openvino.opsets.opset3.ops import embedding_bag_offsets_sum -from openvino.opsets.opset3.ops import embedding_bag_packed_sum -from openvino.opsets.opset3.ops import embedding_segments_sum -from openvino.opsets.opset3.ops import extract_image_patches -from openvino.opsets.opset1.ops import equal -from openvino.opsets.opset1.ops import erf -from openvino.opsets.opset1.ops import exp -from openvino.opsets.opset9.ops import eye -from openvino.opsets.opset13.ops import fake_convert -from openvino.opsets.opset13.ops import fake_quantize -from openvino.opsets.opset1.ops import floor -from openvino.opsets.opset1.ops import floor_mod -from openvino.opsets.opset8.ops import gather -from openvino.opsets.opset6.ops import gather_elements -from openvino.opsets.opset8.ops import gather_nd -from openvino.opsets.opset1.ops import gather_tree -from openvino.opsets.opset7.ops import gelu -from openvino.opsets.opset9.ops import generate_proposals -from openvino.opsets.opset1.ops import greater -from openvino.opsets.opset1.ops import greater_equal -from openvino.opsets.opset9.ops import grid_sample -from openvino.opsets.opset1.ops import grn -from openvino.opsets.opset1.ops import group_convolution -from openvino.opsets.opset1.ops import group_convolution_backprop_data -from openvino.opsets.opset12.ops import group_normalization -from openvino.opsets.opset3.ops import gru_cell -from openvino.opsets.opset5.ops import gru_sequence -from openvino.opsets.opset1.ops import hard_sigmoid -from openvino.opsets.opset5.ops import hsigmoid -from openvino.opsets.opset4.ops import hswish -from openvino.opsets.opset7.ops import idft -from openvino.opsets.opset8.ops import if_op -from openvino.opsets.opset11.ops import interpolate -from openvino.opsets.opset9.ops import irdft -from openvino.opsets.opset10.ops import is_finite -from openvino.opsets.opset10.ops import is_inf -from openvino.opsets.opset10.ops import is_nan -from openvino.opsets.opset8.ops import i420_to_bgr -from openvino.opsets.opset8.ops import i420_to_rgb -from openvino.opsets.opset1.ops import less -from openvino.opsets.opset1.ops import less_equal -from openvino.opsets.opset1.ops import log -from openvino.opsets.opset1.ops import logical_and -from openvino.opsets.opset1.ops import logical_not -from openvino.opsets.opset1.ops import logical_or -from openvino.opsets.opset1.ops import logical_xor -from openvino.opsets.opset5.ops import log_softmax -from openvino.opsets.opset5.ops import loop -from openvino.opsets.opset1.ops import lrn -from openvino.opsets.opset4.ops import lstm_cell -from openvino.opsets.opset5.ops import lstm_sequence -from openvino.opsets.opset1.ops import matmul -from openvino.opsets.opset8.ops import matrix_nms -from openvino.opsets.opset8.ops import max_pool -from openvino.opsets.opset1.ops import maximum -from openvino.opsets.opset1.ops import minimum -from openvino.opsets.opset4.ops import mish -from openvino.opsets.opset1.ops import mod -from openvino.opsets.opset9.ops import multiclass_nms -from openvino.opsets.opset13.ops import multinomial -from openvino.opsets.opset1.ops import multiply -from openvino.opsets.opset6.ops import mvn -from openvino.opsets.opset1.ops import negative -from openvino.opsets.opset13.ops import nms_rotated -from openvino.opsets.opset9.ops import non_max_suppression -from openvino.opsets.opset3.ops import non_zero -from openvino.opsets.opset1.ops import normalize_l2 -from openvino.opsets.opset1.ops import not_equal -from openvino.opsets.opset8.ops import nv12_to_bgr -from openvino.opsets.opset8.ops import nv12_to_rgb -from openvino.opsets.opset1.ops import one_hot -from openvino.opsets.opset12.ops import pad -from openvino.opsets.opset1.ops import parameter -from openvino.opsets.opset1.ops import power -from openvino.opsets.opset1.ops import prelu -from openvino.opsets.opset8.ops import prior_box -from openvino.opsets.opset1.ops import prior_box_clustered -from openvino.opsets.opset1.ops import psroi_pooling -from openvino.opsets.opset4.ops import proposal -from openvino.opsets.opset4.ops import range -from openvino.opsets.opset8.ops import random_uniform -from openvino.opsets.opset9.ops import rdft -from openvino.opsets.opset6.ops import read_value -from openvino.opsets.opset4.ops import reduce_l1 -from openvino.opsets.opset4.ops import reduce_l2 -from openvino.opsets.opset1.ops import reduce_logical_and -from openvino.opsets.opset1.ops import reduce_logical_or -from openvino.opsets.opset1.ops import reduce_max -from openvino.opsets.opset1.ops import reduce_mean -from openvino.opsets.opset1.ops import reduce_min -from openvino.opsets.opset1.ops import reduce_prod -from openvino.opsets.opset1.ops import reduce_sum -from openvino.opsets.opset1.ops import region_yolo -from openvino.opsets.opset2.ops import reorg_yolo -from openvino.opsets.opset1.ops import relu -from openvino.opsets.opset1.ops import reshape -from openvino.opsets.opset13.ops import result -from openvino.opsets.opset1.ops import reverse_sequence -from openvino.opsets.opset3.ops import rnn_cell -from openvino.opsets.opset5.ops import rnn_sequence -from openvino.opsets.opset9.ops import roi_align -from openvino.opsets.opset2.ops import roi_pooling -from openvino.opsets.opset7.ops import roll -from openvino.opsets.opset5.ops import round -from openvino.opsets.opset13.ops import scaled_dot_product_attention -from openvino.opsets.opset12.ops import scatter_elements_update -from openvino.opsets.opset4.ops import scatter_nd_update -from openvino.opsets.opset3.ops import scatter_update -from openvino.opsets.opset1.ops import select -from openvino.opsets.opset1.ops import selu -from openvino.opsets.opset3.ops import shape_of -from openvino.opsets.opset3.ops import shuffle_channels -from openvino.opsets.opset1.ops import sigmoid -from openvino.opsets.opset1.ops import sign -from openvino.opsets.opset1.ops import sin -from openvino.opsets.opset1.ops import sinh -from openvino.opsets.opset8.ops import slice -from openvino.opsets.opset8.ops import softmax -from openvino.opsets.opset4.ops import softplus -from openvino.opsets.opset9.ops import softsign -from openvino.opsets.opset2.ops import space_to_batch -from openvino.opsets.opset1.ops import space_to_depth -from openvino.opsets.opset1.ops import split -from openvino.opsets.opset1.ops import sqrt -from openvino.opsets.opset1.ops import squared_difference -from openvino.opsets.opset1.ops import squeeze -from openvino.opsets.opset1.ops import strided_slice -from openvino.opsets.opset1.ops import subtract -from openvino.opsets.opset4.ops import swish -from openvino.opsets.opset1.ops import tan -from openvino.opsets.opset1.ops import tanh -from openvino.opsets.opset1.ops import tensor_iterator -from openvino.opsets.opset1.ops import tile -from openvino.opsets.opset11.ops import topk -from openvino.opsets.opset1.ops import transpose -from openvino.opsets.opset10.ops import unique -from openvino.opsets.opset1.ops import unsqueeze -from openvino.opsets.opset1.ops import variadic_split diff --git a/src/bindings/python/src/openvino/opsets/opset14/__init__.py b/src/bindings/python/src/openvino/opsets/opset14/__init__.py deleted file mode 100644 index 1cbb9b854377d6..00000000000000 --- a/src/bindings/python/src/openvino/opsets/opset14/__init__.py +++ /dev/null @@ -1,190 +0,0 @@ -# -*- coding: utf-8 -*- -# Copyright (C) 2018-2024 Intel Corporation -# SPDX-License-Identifier: Apache-2.0 - -from openvino.opsets.opset1.ops import absolute -from openvino.opsets.opset1.ops import absolute as abs -from openvino.opsets.opset1.ops import acos -from openvino.opsets.opset4.ops import acosh -from openvino.opsets.opset8.ops import adaptive_avg_pool -from openvino.opsets.opset8.ops import adaptive_max_pool -from openvino.opsets.opset1.ops import add -from openvino.opsets.opset1.ops import asin -from openvino.opsets.opset4.ops import asinh -from openvino.opsets.opset6.ops import assign -from openvino.opsets.opset1.ops import atan -from openvino.opsets.opset4.ops import atanh -from openvino.opsets.opset14.ops import avg_pool -from openvino.opsets.opset5.ops import batch_norm_inference -from openvino.opsets.opset2.ops import batch_to_space -from openvino.opsets.opset1.ops import binary_convolution -from openvino.opsets.opset13.ops import bitwise_and -from openvino.opsets.opset13.ops import bitwise_not -from openvino.opsets.opset13.ops import bitwise_or -from openvino.opsets.opset13.ops import bitwise_xor -from openvino.opsets.opset3.ops import broadcast -from openvino.opsets.opset3.ops import bucketize -from openvino.opsets.opset1.ops import ceiling -from openvino.opsets.opset1.ops import ceiling as ceil -from openvino.opsets.opset1.ops import clamp -from openvino.opsets.opset1.ops import concat -from openvino.opsets.opset13.ops import constant -from openvino.opsets.opset1.ops import convert -from openvino.opsets.opset1.ops import convert_like -from openvino.opsets.opset14.ops import convert_promote_types -from openvino.opsets.opset1.ops import convolution -from openvino.opsets.opset1.ops import convolution_backprop_data -from openvino.opsets.opset1.ops import cos -from openvino.opsets.opset1.ops import cosh -from openvino.opsets.opset1.ops import ctc_greedy_decoder -from openvino.opsets.opset6.ops import ctc_greedy_decoder_seq_len -from openvino.opsets.opset4.ops import ctc_loss -from openvino.opsets.opset3.ops import cum_sum -from openvino.opsets.opset3.ops import cum_sum as cumsum -from openvino.opsets.opset8.ops import deformable_convolution -from openvino.opsets.opset1.ops import deformable_psroi_pooling -from openvino.opsets.opset1.ops import depth_to_space -from openvino.opsets.opset8.ops import detection_output -from openvino.opsets.opset7.ops import dft -from openvino.opsets.opset1.ops import divide -from openvino.opsets.opset7.ops import einsum -from openvino.opsets.opset1.ops import elu -from openvino.opsets.opset3.ops import embedding_bag_offsets_sum -from openvino.opsets.opset3.ops import embedding_bag_packed_sum -from openvino.opsets.opset3.ops import embedding_segments_sum -from openvino.opsets.opset3.ops import extract_image_patches -from openvino.opsets.opset1.ops import equal -from openvino.opsets.opset1.ops import erf -from openvino.opsets.opset1.ops import exp -from openvino.opsets.opset9.ops import eye -from openvino.opsets.opset13.ops import fake_convert -from openvino.opsets.opset13.ops import fake_quantize -from openvino.opsets.opset1.ops import floor -from openvino.opsets.opset1.ops import floor_mod -from openvino.opsets.opset8.ops import gather -from openvino.opsets.opset6.ops import gather_elements -from openvino.opsets.opset8.ops import gather_nd -from openvino.opsets.opset1.ops import gather_tree -from openvino.opsets.opset7.ops import gelu -from openvino.opsets.opset9.ops import generate_proposals -from openvino.opsets.opset1.ops import greater -from openvino.opsets.opset1.ops import greater_equal -from openvino.opsets.opset9.ops import grid_sample -from openvino.opsets.opset1.ops import grn -from openvino.opsets.opset1.ops import group_convolution -from openvino.opsets.opset1.ops import group_convolution_backprop_data -from openvino.opsets.opset12.ops import group_normalization -from openvino.opsets.opset3.ops import gru_cell -from openvino.opsets.opset5.ops import gru_sequence -from openvino.opsets.opset1.ops import hard_sigmoid -from openvino.opsets.opset5.ops import hsigmoid -from openvino.opsets.opset4.ops import hswish -from openvino.opsets.opset7.ops import idft -from openvino.opsets.opset8.ops import if_op -from openvino.opsets.opset11.ops import interpolate -from openvino.opsets.opset14.ops import inverse -from openvino.opsets.opset9.ops import irdft -from openvino.opsets.opset10.ops import is_finite -from openvino.opsets.opset10.ops import is_inf -from openvino.opsets.opset10.ops import is_nan -from openvino.opsets.opset8.ops import i420_to_bgr -from openvino.opsets.opset8.ops import i420_to_rgb -from openvino.opsets.opset1.ops import less -from openvino.opsets.opset1.ops import less_equal -from openvino.opsets.opset1.ops import log -from openvino.opsets.opset1.ops import logical_and -from openvino.opsets.opset1.ops import logical_not -from openvino.opsets.opset1.ops import logical_or -from openvino.opsets.opset1.ops import logical_xor -from openvino.opsets.opset5.ops import log_softmax -from openvino.opsets.opset5.ops import loop -from openvino.opsets.opset1.ops import lrn -from openvino.opsets.opset4.ops import lstm_cell -from openvino.opsets.opset5.ops import lstm_sequence -from openvino.opsets.opset1.ops import matmul -from openvino.opsets.opset8.ops import matrix_nms -from openvino.opsets.opset14.ops import max_pool -from openvino.opsets.opset1.ops import maximum -from openvino.opsets.opset1.ops import minimum -from openvino.opsets.opset4.ops import mish -from openvino.opsets.opset1.ops import mod -from openvino.opsets.opset9.ops import multiclass_nms -from openvino.opsets.opset13.ops import multinomial -from openvino.opsets.opset1.ops import multiply -from openvino.opsets.opset6.ops import mvn -from openvino.opsets.opset1.ops import negative -from openvino.opsets.opset13.ops import nms_rotated -from openvino.opsets.opset9.ops import non_max_suppression -from openvino.opsets.opset3.ops import non_zero -from openvino.opsets.opset1.ops import normalize_l2 -from openvino.opsets.opset1.ops import not_equal -from openvino.opsets.opset8.ops import nv12_to_bgr -from openvino.opsets.opset8.ops import nv12_to_rgb -from openvino.opsets.opset1.ops import one_hot -from openvino.opsets.opset12.ops import pad -from openvino.opsets.opset1.ops import parameter -from openvino.opsets.opset1.ops import power -from openvino.opsets.opset1.ops import prelu -from openvino.opsets.opset8.ops import prior_box -from openvino.opsets.opset1.ops import prior_box_clustered -from openvino.opsets.opset1.ops import psroi_pooling -from openvino.opsets.opset4.ops import proposal -from openvino.opsets.opset4.ops import range -from openvino.opsets.opset8.ops import random_uniform -from openvino.opsets.opset9.ops import rdft -from openvino.opsets.opset6.ops import read_value -from openvino.opsets.opset4.ops import reduce_l1 -from openvino.opsets.opset4.ops import reduce_l2 -from openvino.opsets.opset1.ops import reduce_logical_and -from openvino.opsets.opset1.ops import reduce_logical_or -from openvino.opsets.opset1.ops import reduce_max -from openvino.opsets.opset1.ops import reduce_mean -from openvino.opsets.opset1.ops import reduce_min -from openvino.opsets.opset1.ops import reduce_prod -from openvino.opsets.opset1.ops import reduce_sum -from openvino.opsets.opset1.ops import region_yolo -from openvino.opsets.opset2.ops import reorg_yolo -from openvino.opsets.opset1.ops import relu -from openvino.opsets.opset1.ops import reshape -from openvino.opsets.opset13.ops import result -from openvino.opsets.opset1.ops import reverse_sequence -from openvino.opsets.opset3.ops import rnn_cell -from openvino.opsets.opset5.ops import rnn_sequence -from openvino.opsets.opset9.ops import roi_align -from openvino.opsets.opset2.ops import roi_pooling -from openvino.opsets.opset7.ops import roll -from openvino.opsets.opset5.ops import round -from openvino.opsets.opset13.ops import scaled_dot_product_attention -from openvino.opsets.opset12.ops import scatter_elements_update -from openvino.opsets.opset4.ops import scatter_nd_update -from openvino.opsets.opset3.ops import scatter_update -from openvino.opsets.opset1.ops import select -from openvino.opsets.opset1.ops import selu -from openvino.opsets.opset3.ops import shape_of -from openvino.opsets.opset3.ops import shuffle_channels -from openvino.opsets.opset1.ops import sigmoid -from openvino.opsets.opset1.ops import sign -from openvino.opsets.opset1.ops import sin -from openvino.opsets.opset1.ops import sinh -from openvino.opsets.opset8.ops import slice -from openvino.opsets.opset8.ops import softmax -from openvino.opsets.opset4.ops import softplus -from openvino.opsets.opset9.ops import softsign -from openvino.opsets.opset2.ops import space_to_batch -from openvino.opsets.opset1.ops import space_to_depth -from openvino.opsets.opset1.ops import split -from openvino.opsets.opset1.ops import sqrt -from openvino.opsets.opset1.ops import squared_difference -from openvino.opsets.opset1.ops import squeeze -from openvino.opsets.opset1.ops import strided_slice -from openvino.opsets.opset1.ops import subtract -from openvino.opsets.opset4.ops import swish -from openvino.opsets.opset1.ops import tan -from openvino.opsets.opset1.ops import tanh -from openvino.opsets.opset1.ops import tensor_iterator -from openvino.opsets.opset1.ops import tile -from openvino.opsets.opset11.ops import topk -from openvino.opsets.opset1.ops import transpose -from openvino.opsets.opset10.ops import unique -from openvino.opsets.opset1.ops import unsqueeze -from openvino.opsets.opset1.ops import variadic_split diff --git a/src/bindings/python/src/openvino/opsets/opset15/__init__.py b/src/bindings/python/src/openvino/opsets/opset15/__init__.py deleted file mode 100644 index 3b07dc0c1b3c99..00000000000000 --- a/src/bindings/python/src/openvino/opsets/opset15/__init__.py +++ /dev/null @@ -1,204 +0,0 @@ -# -*- coding: utf-8 -*- -# Copyright (C) 2018-2024 Intel Corporation -# SPDX-License-Identifier: Apache-2.0 - -# New operations added in Opset15 -from openvino.opsets.opset15.ops import col2im -from openvino.opsets.opset15.ops import embedding_bag_offsets -from openvino.opsets.opset15.ops import embedding_bag_packed -from openvino.opsets.opset15.ops import scatter_nd_update -from openvino.opsets.opset15.ops import roi_align_rotated -from openvino.opsets.opset15.ops import string_tensor_pack -from openvino.opsets.opset15.ops import string_tensor_unpack -from openvino.opsets.opset15.ops import bitwise_left_shift -from openvino.opsets.opset15.ops import bitwise_right_shift -from openvino.opsets.opset15.ops import slice_scatter - -# Operators from previous opsets -from openvino.opsets.opset1.ops import absolute -from openvino.opsets.opset1.ops import absolute as abs -from openvino.opsets.opset1.ops import acos -from openvino.opsets.opset4.ops import acosh -from openvino.opsets.opset8.ops import adaptive_avg_pool -from openvino.opsets.opset8.ops import adaptive_max_pool -from openvino.opsets.opset1.ops import add -from openvino.opsets.opset1.ops import asin -from openvino.opsets.opset4.ops import asinh -from openvino.opsets.opset6.ops import assign -from openvino.opsets.opset1.ops import atan -from openvino.opsets.opset4.ops import atanh -from openvino.opsets.opset14.ops import avg_pool -from openvino.opsets.opset5.ops import batch_norm_inference -from openvino.opsets.opset2.ops import batch_to_space -from openvino.opsets.opset1.ops import binary_convolution -from openvino.opsets.opset13.ops import bitwise_and -from openvino.opsets.opset13.ops import bitwise_not -from openvino.opsets.opset13.ops import bitwise_or -from openvino.opsets.opset13.ops import bitwise_xor -from openvino.opsets.opset3.ops import broadcast -from openvino.opsets.opset3.ops import bucketize -from openvino.opsets.opset1.ops import ceiling -from openvino.opsets.opset1.ops import ceiling as ceil -from openvino.opsets.opset1.ops import clamp -from openvino.opsets.opset1.ops import concat -from openvino.opsets.opset13.ops import constant -from openvino.opsets.opset1.ops import convert -from openvino.opsets.opset1.ops import convert_like -from openvino.opsets.opset14.ops import convert_promote_types -from openvino.opsets.opset1.ops import convolution -from openvino.opsets.opset1.ops import convolution_backprop_data -from openvino.opsets.opset1.ops import cos -from openvino.opsets.opset1.ops import cosh -from openvino.opsets.opset1.ops import ctc_greedy_decoder -from openvino.opsets.opset6.ops import ctc_greedy_decoder_seq_len -from openvino.opsets.opset4.ops import ctc_loss -from openvino.opsets.opset3.ops import cum_sum -from openvino.opsets.opset3.ops import cum_sum as cumsum -from openvino.opsets.opset8.ops import deformable_convolution -from openvino.opsets.opset1.ops import deformable_psroi_pooling -from openvino.opsets.opset1.ops import depth_to_space -from openvino.opsets.opset8.ops import detection_output -from openvino.opsets.opset7.ops import dft -from openvino.opsets.opset1.ops import divide -from openvino.opsets.opset7.ops import einsum -from openvino.opsets.opset1.ops import elu -from openvino.opsets.opset3.ops import embedding_bag_offsets_sum -from openvino.opsets.opset3.ops import embedding_bag_packed_sum -from openvino.opsets.opset3.ops import embedding_segments_sum -from openvino.opsets.opset3.ops import extract_image_patches -from openvino.opsets.opset1.ops import equal -from openvino.opsets.opset1.ops import erf -from openvino.opsets.opset1.ops import exp -from openvino.opsets.opset9.ops import eye -from openvino.opsets.opset13.ops import fake_convert -from openvino.opsets.opset13.ops import fake_quantize -from openvino.opsets.opset1.ops import floor -from openvino.opsets.opset1.ops import floor_mod -from openvino.opsets.opset8.ops import gather -from openvino.opsets.opset6.ops import gather_elements -from openvino.opsets.opset8.ops import gather_nd -from openvino.opsets.opset1.ops import gather_tree -from openvino.opsets.opset7.ops import gelu -from openvino.opsets.opset9.ops import generate_proposals -from openvino.opsets.opset1.ops import greater -from openvino.opsets.opset1.ops import greater_equal -from openvino.opsets.opset9.ops import grid_sample -from openvino.opsets.opset1.ops import grn -from openvino.opsets.opset1.ops import group_convolution -from openvino.opsets.opset1.ops import group_convolution_backprop_data -from openvino.opsets.opset12.ops import group_normalization -from openvino.opsets.opset3.ops import gru_cell -from openvino.opsets.opset5.ops import gru_sequence -from openvino.opsets.opset1.ops import hard_sigmoid -from openvino.opsets.opset5.ops import hsigmoid -from openvino.opsets.opset4.ops import hswish -from openvino.opsets.opset7.ops import idft -from openvino.opsets.opset8.ops import if_op -from openvino.opsets.opset11.ops import interpolate -from openvino.opsets.opset14.ops import inverse -from openvino.opsets.opset9.ops import irdft -from openvino.opsets.opset10.ops import is_finite -from openvino.opsets.opset10.ops import is_inf -from openvino.opsets.opset10.ops import is_nan -from openvino.opsets.opset8.ops import i420_to_bgr -from openvino.opsets.opset8.ops import i420_to_rgb -from openvino.opsets.opset1.ops import less -from openvino.opsets.opset1.ops import less_equal -from openvino.opsets.opset1.ops import log -from openvino.opsets.opset1.ops import logical_and -from openvino.opsets.opset1.ops import logical_not -from openvino.opsets.opset1.ops import logical_or -from openvino.opsets.opset1.ops import logical_xor -from openvino.opsets.opset5.ops import log_softmax -from openvino.opsets.opset5.ops import loop -from openvino.opsets.opset1.ops import lrn -from openvino.opsets.opset4.ops import lstm_cell -from openvino.opsets.opset5.ops import lstm_sequence -from openvino.opsets.opset1.ops import matmul -from openvino.opsets.opset8.ops import matrix_nms -from openvino.opsets.opset14.ops import max_pool -from openvino.opsets.opset1.ops import maximum -from openvino.opsets.opset1.ops import minimum -from openvino.opsets.opset4.ops import mish -from openvino.opsets.opset1.ops import mod -from openvino.opsets.opset9.ops import multiclass_nms -from openvino.opsets.opset13.ops import multinomial -from openvino.opsets.opset1.ops import multiply -from openvino.opsets.opset6.ops import mvn -from openvino.opsets.opset1.ops import negative -from openvino.opsets.opset13.ops import nms_rotated -from openvino.opsets.opset9.ops import non_max_suppression -from openvino.opsets.opset3.ops import non_zero -from openvino.opsets.opset1.ops import normalize_l2 -from openvino.opsets.opset1.ops import not_equal -from openvino.opsets.opset8.ops import nv12_to_bgr -from openvino.opsets.opset8.ops import nv12_to_rgb -from openvino.opsets.opset1.ops import one_hot -from openvino.opsets.opset12.ops import pad -from openvino.opsets.opset1.ops import parameter -from openvino.opsets.opset1.ops import power -from openvino.opsets.opset1.ops import prelu -from openvino.opsets.opset8.ops import prior_box -from openvino.opsets.opset1.ops import prior_box_clustered -from openvino.opsets.opset1.ops import psroi_pooling -from openvino.opsets.opset4.ops import proposal -from openvino.opsets.opset4.ops import range -from openvino.opsets.opset8.ops import random_uniform -from openvino.opsets.opset9.ops import rdft -from openvino.opsets.opset6.ops import read_value -from openvino.opsets.opset4.ops import reduce_l1 -from openvino.opsets.opset4.ops import reduce_l2 -from openvino.opsets.opset1.ops import reduce_logical_and -from openvino.opsets.opset1.ops import reduce_logical_or -from openvino.opsets.opset1.ops import reduce_max -from openvino.opsets.opset1.ops import reduce_mean -from openvino.opsets.opset1.ops import reduce_min -from openvino.opsets.opset1.ops import reduce_prod -from openvino.opsets.opset1.ops import reduce_sum -from openvino.opsets.opset1.ops import region_yolo -from openvino.opsets.opset2.ops import reorg_yolo -from openvino.opsets.opset1.ops import relu -from openvino.opsets.opset1.ops import reshape -from openvino.opsets.opset13.ops import result -from openvino.opsets.opset1.ops import reverse_sequence -from openvino.opsets.opset3.ops import rnn_cell -from openvino.opsets.opset5.ops import rnn_sequence -from openvino.opsets.opset9.ops import roi_align -from openvino.opsets.opset2.ops import roi_pooling -from openvino.opsets.opset7.ops import roll -from openvino.opsets.opset5.ops import round -from openvino.opsets.opset13.ops import scaled_dot_product_attention -from openvino.opsets.opset12.ops import scatter_elements_update -from openvino.opsets.opset3.ops import scatter_update -from openvino.opsets.opset15.ops import search_sorted -from openvino.opsets.opset1.ops import select -from openvino.opsets.opset1.ops import selu -from openvino.opsets.opset3.ops import shape_of -from openvino.opsets.opset3.ops import shuffle_channels -from openvino.opsets.opset1.ops import sigmoid -from openvino.opsets.opset1.ops import sign -from openvino.opsets.opset1.ops import sin -from openvino.opsets.opset1.ops import sinh -from openvino.opsets.opset8.ops import slice -from openvino.opsets.opset8.ops import softmax -from openvino.opsets.opset4.ops import softplus -from openvino.opsets.opset9.ops import softsign -from openvino.opsets.opset2.ops import space_to_batch -from openvino.opsets.opset1.ops import space_to_depth -from openvino.opsets.opset1.ops import split -from openvino.opsets.opset1.ops import sqrt -from openvino.opsets.opset1.ops import squared_difference -from openvino.opsets.opset15.ops import squeeze -from openvino.opsets.opset15.ops import stft -from openvino.opsets.opset1.ops import strided_slice -from openvino.opsets.opset1.ops import subtract -from openvino.opsets.opset4.ops import swish -from openvino.opsets.opset1.ops import tan -from openvino.opsets.opset1.ops import tanh -from openvino.opsets.opset1.ops import tensor_iterator -from openvino.opsets.opset1.ops import tile -from openvino.opsets.opset11.ops import topk -from openvino.opsets.opset1.ops import transpose -from openvino.opsets.opset10.ops import unique -from openvino.opsets.opset1.ops import unsqueeze -from openvino.opsets.opset1.ops import variadic_split diff --git a/src/bindings/python/src/openvino/opsets/opset2/__init__.py b/src/bindings/python/src/openvino/opsets/opset2/__init__.py deleted file mode 100644 index b01acbfd48a7d7..00000000000000 --- a/src/bindings/python/src/openvino/opsets/opset2/__init__.py +++ /dev/null @@ -1,118 +0,0 @@ -# -*- coding: utf-8 -*- -# Copyright (C) 2018-2024 Intel Corporation -# SPDX-License-Identifier: Apache-2.0 - -from openvino.opsets.opset1.ops import absolute -from openvino.opsets.opset1.ops import absolute as abs -from openvino.opsets.opset1.ops import acos -from openvino.opsets.opset1.ops import add -from openvino.opsets.opset1.ops import asin -from openvino.opsets.opset1.ops import atan -from openvino.opsets.opset1.ops import avg_pool -from openvino.opsets.opset1.ops import batch_norm_inference -from openvino.opsets.opset2.ops import batch_to_space -from openvino.opsets.opset1.ops import binary_convolution -from openvino.opsets.opset1.ops import broadcast -from openvino.opsets.opset1.ops import ceiling -from openvino.opsets.opset1.ops import ceiling as ceil -from openvino.opsets.opset1.ops import clamp -from openvino.opsets.opset1.ops import concat -from openvino.opsets.opset1.ops import constant -from openvino.opsets.opset1.ops import convert -from openvino.opsets.opset1.ops import convert_like -from openvino.opsets.opset1.ops import convolution -from openvino.opsets.opset1.ops import convolution_backprop_data -from openvino.opsets.opset1.ops import cos -from openvino.opsets.opset1.ops import cosh -from openvino.opsets.opset1.ops import ctc_greedy_decoder -from openvino.opsets.opset1.ops import deformable_convolution -from openvino.opsets.opset1.ops import deformable_psroi_pooling -from openvino.opsets.opset1.ops import depth_to_space -from openvino.opsets.opset1.ops import detection_output -from openvino.opsets.opset1.ops import divide -from openvino.opsets.opset1.ops import elu -from openvino.opsets.opset1.ops import equal -from openvino.opsets.opset1.ops import erf -from openvino.opsets.opset1.ops import exp -from openvino.opsets.opset1.ops import fake_quantize -from openvino.opsets.opset1.ops import floor -from openvino.opsets.opset1.ops import floor_mod -from openvino.opsets.opset1.ops import gather -from openvino.opsets.opset1.ops import gather_tree -from openvino.opsets.opset2.ops import gelu -from openvino.opsets.opset1.ops import greater -from openvino.opsets.opset1.ops import greater_equal -from openvino.opsets.opset1.ops import grn -from openvino.opsets.opset1.ops import group_convolution -from openvino.opsets.opset1.ops import group_convolution_backprop_data -from openvino.opsets.opset1.ops import hard_sigmoid -from openvino.opsets.opset1.ops import interpolate -from openvino.opsets.opset1.ops import less -from openvino.opsets.opset1.ops import less_equal -from openvino.opsets.opset1.ops import log -from openvino.opsets.opset1.ops import logical_and -from openvino.opsets.opset1.ops import logical_not -from openvino.opsets.opset1.ops import logical_or -from openvino.opsets.opset1.ops import logical_xor -from openvino.opsets.opset1.ops import lrn -from openvino.opsets.opset1.ops import lstm_cell -from openvino.opsets.opset1.ops import lstm_sequence -from openvino.opsets.opset1.ops import matmul -from openvino.opsets.opset1.ops import max_pool -from openvino.opsets.opset1.ops import maximum -from openvino.opsets.opset1.ops import minimum -from openvino.opsets.opset1.ops import mod -from openvino.opsets.opset1.ops import multiply -from openvino.opsets.opset2.ops import mvn -from openvino.opsets.opset1.ops import negative -from openvino.opsets.opset1.ops import non_max_suppression -from openvino.opsets.opset1.ops import normalize_l2 -from openvino.opsets.opset1.ops import not_equal -from openvino.opsets.opset1.ops import one_hot -from openvino.opsets.opset1.ops import pad -from openvino.opsets.opset1.ops import parameter -from openvino.opsets.opset1.ops import power -from openvino.opsets.opset1.ops import prelu -from openvino.opsets.opset1.ops import prior_box -from openvino.opsets.opset1.ops import prior_box_clustered -from openvino.opsets.opset1.ops import psroi_pooling -from openvino.opsets.opset1.ops import proposal -from openvino.opsets.opset1.ops import range -from openvino.opsets.opset1.ops import reduce_logical_and -from openvino.opsets.opset1.ops import reduce_logical_or -from openvino.opsets.opset1.ops import reduce_max -from openvino.opsets.opset1.ops import reduce_mean -from openvino.opsets.opset1.ops import reduce_min -from openvino.opsets.opset1.ops import reduce_prod -from openvino.opsets.opset1.ops import reduce_sum -from openvino.opsets.opset1.ops import region_yolo -from openvino.opsets.opset2.ops import reorg_yolo -from openvino.opsets.opset1.ops import relu -from openvino.opsets.opset1.ops import reshape -from openvino.opsets.opset1.ops import result -from openvino.opsets.opset1.ops import reverse_sequence -from openvino.opsets.opset2.ops import roi_pooling -from openvino.opsets.opset1.ops import select -from openvino.opsets.opset1.ops import selu -from openvino.opsets.opset1.ops import shape_of -from openvino.opsets.opset1.ops import sigmoid -from openvino.opsets.opset1.ops import sign -from openvino.opsets.opset1.ops import sin -from openvino.opsets.opset1.ops import sinh -from openvino.opsets.opset1.ops import softmax -from openvino.opsets.opset2.ops import space_to_batch -from openvino.opsets.opset1.ops import space_to_depth -from openvino.opsets.opset1.ops import split -from openvino.opsets.opset1.ops import sqrt -from openvino.opsets.opset1.ops import squared_difference -from openvino.opsets.opset1.ops import squeeze -from openvino.opsets.opset1.ops import strided_slice -from openvino.opsets.opset1.ops import subtract -from openvino.opsets.opset1.ops import tan -from openvino.opsets.opset1.ops import tanh -from openvino.opsets.opset1.ops import tensor_iterator -from openvino.opsets.opset1.ops import tile -from openvino.opsets.opset1.ops import topk -from openvino.opsets.opset1.ops import transpose -from openvino.opsets.opset1.ops import unsqueeze -from openvino.opsets.opset1.ops import variadic_split diff --git a/src/bindings/python/src/openvino/opsets/opset3/__init__.py b/src/bindings/python/src/openvino/opsets/opset3/__init__.py deleted file mode 100644 index 19d3197ccb46ff..00000000000000 --- a/src/bindings/python/src/openvino/opsets/opset3/__init__.py +++ /dev/null @@ -1,134 +0,0 @@ -# -*- coding: utf-8 -*- -# Copyright (C) 2018-2024 Intel Corporation -# SPDX-License-Identifier: Apache-2.0 - -from openvino.opsets.opset1.ops import absolute -from openvino.opsets.opset1.ops import absolute as abs -from openvino.opsets.opset1.ops import acos -from openvino.opsets.opset1.ops import add -from openvino.opsets.opset1.ops import asin -from openvino.opsets.opset3.ops import assign -from openvino.opsets.opset1.ops import atan -from openvino.opsets.opset1.ops import avg_pool -from openvino.opsets.opset1.ops import batch_norm_inference -from openvino.opsets.opset2.ops import batch_to_space -from openvino.opsets.opset1.ops import binary_convolution -from openvino.opsets.opset3.ops import broadcast -from openvino.opsets.opset3.ops import bucketize -from openvino.opsets.opset1.ops import ceiling -from openvino.opsets.opset1.ops import ceiling as ceil -from openvino.opsets.opset1.ops import clamp -from openvino.opsets.opset1.ops import concat -from openvino.opsets.opset1.ops import constant -from openvino.opsets.opset1.ops import convert -from openvino.opsets.opset1.ops import convert_like -from openvino.opsets.opset1.ops import convolution -from openvino.opsets.opset1.ops import convolution_backprop_data -from openvino.opsets.opset1.ops import cos -from openvino.opsets.opset1.ops import cosh -from openvino.opsets.opset1.ops import ctc_greedy_decoder -from openvino.opsets.opset3.ops import cum_sum -from openvino.opsets.opset3.ops import cum_sum as cumsum -from openvino.opsets.opset1.ops import deformable_convolution -from openvino.opsets.opset1.ops import deformable_psroi_pooling -from openvino.opsets.opset1.ops import depth_to_space -from openvino.opsets.opset1.ops import detection_output -from openvino.opsets.opset1.ops import divide -from openvino.opsets.opset1.ops import elu -from openvino.opsets.opset3.ops import embedding_bag_offsets_sum -from openvino.opsets.opset3.ops import embedding_bag_packed_sum -from openvino.opsets.opset3.ops import embedding_segments_sum -from openvino.opsets.opset3.ops import extract_image_patches -from openvino.opsets.opset1.ops import equal -from openvino.opsets.opset1.ops import erf -from openvino.opsets.opset1.ops import exp -from openvino.opsets.opset1.ops import fake_quantize -from openvino.opsets.opset1.ops import floor -from openvino.opsets.opset1.ops import floor_mod -from openvino.opsets.opset1.ops import gather -from openvino.opsets.opset1.ops import gather_tree -from openvino.opsets.opset2.ops import gelu -from openvino.opsets.opset1.ops import greater -from openvino.opsets.opset1.ops import greater_equal -from openvino.opsets.opset1.ops import grn -from openvino.opsets.opset1.ops import group_convolution -from openvino.opsets.opset1.ops import group_convolution_backprop_data -from openvino.opsets.opset3.ops import gru_cell -from openvino.opsets.opset1.ops import hard_sigmoid -from openvino.opsets.opset1.ops import interpolate -from openvino.opsets.opset1.ops import less -from openvino.opsets.opset1.ops import less_equal -from openvino.opsets.opset1.ops import log -from openvino.opsets.opset1.ops import logical_and -from openvino.opsets.opset1.ops import logical_not -from openvino.opsets.opset1.ops import logical_or -from openvino.opsets.opset1.ops import logical_xor -from openvino.opsets.opset1.ops import lrn -from openvino.opsets.opset1.ops import lstm_cell -from openvino.opsets.opset1.ops import lstm_sequence -from openvino.opsets.opset1.ops import matmul -from openvino.opsets.opset1.ops import max_pool -from openvino.opsets.opset1.ops import maximum -from openvino.opsets.opset1.ops import minimum -from openvino.opsets.opset1.ops import mod -from openvino.opsets.opset1.ops import multiply -from openvino.opsets.opset2.ops import mvn -from openvino.opsets.opset1.ops import negative -from openvino.opsets.opset3.ops import non_max_suppression -from openvino.opsets.opset3.ops import non_zero -from openvino.opsets.opset1.ops import normalize_l2 -from openvino.opsets.opset1.ops import not_equal -from openvino.opsets.opset1.ops import one_hot -from openvino.opsets.opset1.ops import pad -from openvino.opsets.opset1.ops import parameter -from openvino.opsets.opset1.ops import power -from openvino.opsets.opset1.ops import prelu -from openvino.opsets.opset1.ops import prior_box -from openvino.opsets.opset1.ops import prior_box_clustered -from openvino.opsets.opset1.ops import psroi_pooling -from openvino.opsets.opset1.ops import proposal -from openvino.opsets.opset1.ops import range -from openvino.opsets.opset3.ops import read_value -from openvino.opsets.opset1.ops import reduce_logical_and -from openvino.opsets.opset1.ops import reduce_logical_or -from openvino.opsets.opset1.ops import reduce_max -from openvino.opsets.opset1.ops import reduce_mean -from openvino.opsets.opset1.ops import reduce_min -from openvino.opsets.opset1.ops import reduce_prod -from openvino.opsets.opset1.ops import reduce_sum -from openvino.opsets.opset1.ops import region_yolo -from openvino.opsets.opset2.ops import reorg_yolo -from openvino.opsets.opset1.ops import relu -from openvino.opsets.opset1.ops import reshape -from openvino.opsets.opset1.ops import result -from openvino.opsets.opset1.ops import reverse_sequence -from openvino.opsets.opset3.ops import rnn_cell -from openvino.opsets.opset3.ops import roi_align -from openvino.opsets.opset2.ops import roi_pooling -from openvino.opsets.opset3.ops import scatter_elements_update -from openvino.opsets.opset3.ops import scatter_update -from openvino.opsets.opset1.ops import select -from openvino.opsets.opset1.ops import selu -from openvino.opsets.opset3.ops import shape_of -from openvino.opsets.opset3.ops import shuffle_channels -from openvino.opsets.opset1.ops import sigmoid -from openvino.opsets.opset1.ops import sign -from openvino.opsets.opset1.ops import sin -from openvino.opsets.opset1.ops import sinh -from openvino.opsets.opset1.ops import softmax -from openvino.opsets.opset2.ops import space_to_batch -from openvino.opsets.opset1.ops import space_to_depth -from openvino.opsets.opset1.ops import split -from openvino.opsets.opset1.ops import sqrt -from openvino.opsets.opset1.ops import squared_difference -from openvino.opsets.opset1.ops import squeeze -from openvino.opsets.opset1.ops import strided_slice -from openvino.opsets.opset1.ops import subtract -from openvino.opsets.opset1.ops import tan -from openvino.opsets.opset1.ops import tanh -from openvino.opsets.opset1.ops import tensor_iterator -from openvino.opsets.opset1.ops import tile -from openvino.opsets.opset3.ops import topk -from openvino.opsets.opset1.ops import transpose -from openvino.opsets.opset1.ops import unsqueeze -from openvino.opsets.opset1.ops import variadic_split diff --git a/src/bindings/python/src/openvino/opsets/opset4/__init__.py b/src/bindings/python/src/openvino/opsets/opset4/__init__.py deleted file mode 100644 index b2622e41abeced..00000000000000 --- a/src/bindings/python/src/openvino/opsets/opset4/__init__.py +++ /dev/null @@ -1,145 +0,0 @@ -# -*- coding: utf-8 -*- -# Copyright (C) 2018-2024 Intel Corporation -# SPDX-License-Identifier: Apache-2.0 - -from openvino.opsets.opset1.ops import absolute -from openvino.opsets.opset1.ops import absolute as abs -from openvino.opsets.opset1.ops import acos -from openvino.opsets.opset4.ops import acosh -from openvino.opsets.opset1.ops import add -from openvino.opsets.opset1.ops import asin -from openvino.opsets.opset4.ops import asinh -from openvino.opsets.opset3.ops import assign -from openvino.opsets.opset1.ops import atan -from openvino.opsets.opset4.ops import atanh -from openvino.opsets.opset1.ops import avg_pool -from openvino.opsets.opset1.ops import batch_norm_inference -from openvino.opsets.opset2.ops import batch_to_space -from openvino.opsets.opset1.ops import binary_convolution -from openvino.opsets.opset3.ops import broadcast -from openvino.opsets.opset3.ops import bucketize -from openvino.opsets.opset1.ops import ceiling -from openvino.opsets.opset1.ops import ceiling as ceil -from openvino.opsets.opset1.ops import clamp -from openvino.opsets.opset1.ops import concat -from openvino.opsets.opset1.ops import constant -from openvino.opsets.opset1.ops import convert -from openvino.opsets.opset1.ops import convert_like -from openvino.opsets.opset1.ops import convolution -from openvino.opsets.opset1.ops import convolution_backprop_data -from openvino.opsets.opset1.ops import cos -from openvino.opsets.opset1.ops import cosh -from openvino.opsets.opset1.ops import ctc_greedy_decoder -from openvino.opsets.opset4.ops import ctc_loss -from openvino.opsets.opset3.ops import cum_sum -from openvino.opsets.opset3.ops import cum_sum as cumsum -from openvino.opsets.opset1.ops import deformable_convolution -from openvino.opsets.opset1.ops import deformable_psroi_pooling -from openvino.opsets.opset1.ops import depth_to_space -from openvino.opsets.opset1.ops import detection_output -from openvino.opsets.opset1.ops import divide -from openvino.opsets.opset1.ops import elu -from openvino.opsets.opset3.ops import embedding_bag_offsets_sum -from openvino.opsets.opset3.ops import embedding_bag_packed_sum -from openvino.opsets.opset3.ops import embedding_segments_sum -from openvino.opsets.opset3.ops import extract_image_patches -from openvino.opsets.opset1.ops import equal -from openvino.opsets.opset1.ops import erf -from openvino.opsets.opset1.ops import exp -from openvino.opsets.opset1.ops import fake_quantize -from openvino.opsets.opset1.ops import floor -from openvino.opsets.opset1.ops import floor_mod -from openvino.opsets.opset1.ops import gather -from openvino.opsets.opset1.ops import gather_tree -from openvino.opsets.opset2.ops import gelu -from openvino.opsets.opset1.ops import greater -from openvino.opsets.opset1.ops import greater_equal -from openvino.opsets.opset1.ops import grn -from openvino.opsets.opset1.ops import group_convolution -from openvino.opsets.opset1.ops import group_convolution_backprop_data -from openvino.opsets.opset3.ops import gru_cell -from openvino.opsets.opset1.ops import hard_sigmoid -from openvino.opsets.opset4.ops import hswish -from openvino.opsets.opset1.ops import interpolate -from openvino.opsets.opset1.ops import less -from openvino.opsets.opset1.ops import less_equal -from openvino.opsets.opset1.ops import log -from openvino.opsets.opset1.ops import logical_and -from openvino.opsets.opset1.ops import logical_not -from openvino.opsets.opset1.ops import logical_or -from openvino.opsets.opset1.ops import logical_xor -from openvino.opsets.opset1.ops import lrn -from openvino.opsets.opset4.ops import lstm_cell -from openvino.opsets.opset1.ops import lstm_sequence -from openvino.opsets.opset1.ops import matmul -from openvino.opsets.opset1.ops import max_pool -from openvino.opsets.opset1.ops import maximum -from openvino.opsets.opset1.ops import minimum -from openvino.opsets.opset4.ops import mish -from openvino.opsets.opset1.ops import mod -from openvino.opsets.opset1.ops import multiply -from openvino.opsets.opset2.ops import mvn -from openvino.opsets.opset1.ops import negative -from openvino.opsets.opset4.ops import non_max_suppression -from openvino.opsets.opset3.ops import non_zero -from openvino.opsets.opset1.ops import normalize_l2 -from openvino.opsets.opset1.ops import not_equal -from openvino.opsets.opset1.ops import one_hot -from openvino.opsets.opset1.ops import pad -from openvino.opsets.opset1.ops import parameter -from openvino.opsets.opset1.ops import power -from openvino.opsets.opset1.ops import prelu -from openvino.opsets.opset1.ops import prior_box -from openvino.opsets.opset1.ops import prior_box_clustered -from openvino.opsets.opset1.ops import psroi_pooling -from openvino.opsets.opset4.ops import proposal -from openvino.opsets.opset1.ops import range -from openvino.opsets.opset3.ops import read_value -from openvino.opsets.opset4.ops import reduce_l1 -from openvino.opsets.opset4.ops import reduce_l2 -from openvino.opsets.opset1.ops import reduce_logical_and -from openvino.opsets.opset1.ops import reduce_logical_or -from openvino.opsets.opset1.ops import reduce_max -from openvino.opsets.opset1.ops import reduce_mean -from openvino.opsets.opset1.ops import reduce_min -from openvino.opsets.opset1.ops import reduce_prod -from openvino.opsets.opset1.ops import reduce_sum -from openvino.opsets.opset1.ops import region_yolo -from openvino.opsets.opset2.ops import reorg_yolo -from openvino.opsets.opset1.ops import relu -from openvino.opsets.opset1.ops import reshape -from openvino.opsets.opset1.ops import result -from openvino.opsets.opset1.ops import reverse_sequence -from openvino.opsets.opset3.ops import rnn_cell -from openvino.opsets.opset3.ops import roi_align -from openvino.opsets.opset2.ops import roi_pooling -from openvino.opsets.opset3.ops import scatter_elements_update -from openvino.opsets.opset4.ops import scatter_nd_update -from openvino.opsets.opset3.ops import scatter_update -from openvino.opsets.opset1.ops import select -from openvino.opsets.opset1.ops import selu -from openvino.opsets.opset3.ops import shape_of -from openvino.opsets.opset3.ops import shuffle_channels -from openvino.opsets.opset1.ops import sigmoid -from openvino.opsets.opset1.ops import sign -from openvino.opsets.opset1.ops import sin -from openvino.opsets.opset1.ops import sinh -from openvino.opsets.opset1.ops import softmax -from openvino.opsets.opset4.ops import softplus -from openvino.opsets.opset2.ops import space_to_batch -from openvino.opsets.opset1.ops import space_to_depth -from openvino.opsets.opset1.ops import split -from openvino.opsets.opset1.ops import sqrt -from openvino.opsets.opset1.ops import squared_difference -from openvino.opsets.opset1.ops import squeeze -from openvino.opsets.opset1.ops import strided_slice -from openvino.opsets.opset1.ops import subtract -from openvino.opsets.opset4.ops import swish -from openvino.opsets.opset1.ops import tan -from openvino.opsets.opset1.ops import tanh -from openvino.opsets.opset1.ops import tensor_iterator -from openvino.opsets.opset1.ops import tile -from openvino.opsets.opset3.ops import topk -from openvino.opsets.opset1.ops import transpose -from openvino.opsets.opset1.ops import unsqueeze -from openvino.opsets.opset1.ops import variadic_split diff --git a/src/bindings/python/src/openvino/opsets/opset5/__init__.py b/src/bindings/python/src/openvino/opsets/opset5/__init__.py deleted file mode 100644 index ccc63e375ba5e2..00000000000000 --- a/src/bindings/python/src/openvino/opsets/opset5/__init__.py +++ /dev/null @@ -1,152 +0,0 @@ -# -*- coding: utf-8 -*- -# Copyright (C) 2018-2024 Intel Corporation -# SPDX-License-Identifier: Apache-2.0 - -from openvino.opsets.opset1.ops import absolute -from openvino.opsets.opset1.ops import absolute as abs -from openvino.opsets.opset1.ops import acos -from openvino.opsets.opset4.ops import acosh -from openvino.opsets.opset1.ops import add -from openvino.opsets.opset1.ops import asin -from openvino.opsets.opset4.ops import asinh -from openvino.opsets.opset3.ops import assign -from openvino.opsets.opset1.ops import atan -from openvino.opsets.opset4.ops import atanh -from openvino.opsets.opset1.ops import avg_pool -from openvino.opsets.opset5.ops import batch_norm_inference -from openvino.opsets.opset2.ops import batch_to_space -from openvino.opsets.opset1.ops import binary_convolution -from openvino.opsets.opset3.ops import broadcast -from openvino.opsets.opset3.ops import bucketize -from openvino.opsets.opset1.ops import ceiling -from openvino.opsets.opset1.ops import ceiling as ceil -from openvino.opsets.opset1.ops import clamp -from openvino.opsets.opset1.ops import concat -from openvino.opsets.opset1.ops import constant -from openvino.opsets.opset1.ops import convert -from openvino.opsets.opset1.ops import convert_like -from openvino.opsets.opset1.ops import convolution -from openvino.opsets.opset1.ops import convolution_backprop_data -from openvino.opsets.opset1.ops import cos -from openvino.opsets.opset1.ops import cosh -from openvino.opsets.opset1.ops import ctc_greedy_decoder -from openvino.opsets.opset4.ops import ctc_loss -from openvino.opsets.opset3.ops import cum_sum -from openvino.opsets.opset3.ops import cum_sum as cumsum -from openvino.opsets.opset1.ops import deformable_convolution -from openvino.opsets.opset1.ops import deformable_psroi_pooling -from openvino.opsets.opset1.ops import depth_to_space -from openvino.opsets.opset1.ops import detection_output -from openvino.opsets.opset1.ops import divide -from openvino.opsets.opset1.ops import elu -from openvino.opsets.opset3.ops import embedding_bag_offsets_sum -from openvino.opsets.opset3.ops import embedding_bag_packed_sum -from openvino.opsets.opset3.ops import embedding_segments_sum -from openvino.opsets.opset3.ops import extract_image_patches -from openvino.opsets.opset1.ops import equal -from openvino.opsets.opset1.ops import erf -from openvino.opsets.opset1.ops import exp -from openvino.opsets.opset1.ops import fake_quantize -from openvino.opsets.opset1.ops import floor -from openvino.opsets.opset1.ops import floor_mod -from openvino.opsets.opset1.ops import gather -from openvino.opsets.opset5.ops import gather_nd -from openvino.opsets.opset1.ops import gather_tree -from openvino.opsets.opset2.ops import gelu -from openvino.opsets.opset1.ops import greater -from openvino.opsets.opset1.ops import greater_equal -from openvino.opsets.opset1.ops import grn -from openvino.opsets.opset1.ops import group_convolution -from openvino.opsets.opset1.ops import group_convolution_backprop_data -from openvino.opsets.opset3.ops import gru_cell -from openvino.opsets.opset5.ops import gru_sequence -from openvino.opsets.opset1.ops import hard_sigmoid -from openvino.opsets.opset5.ops import hsigmoid -from openvino.opsets.opset4.ops import hswish -from openvino.opsets.opset1.ops import interpolate -from openvino.opsets.opset1.ops import less -from openvino.opsets.opset1.ops import less_equal -from openvino.opsets.opset1.ops import log -from openvino.opsets.opset1.ops import logical_and -from openvino.opsets.opset1.ops import logical_not -from openvino.opsets.opset1.ops import logical_or -from openvino.opsets.opset1.ops import logical_xor -from openvino.opsets.opset5.ops import log_softmax -from openvino.opsets.opset5.ops import loop -from openvino.opsets.opset1.ops import lrn -from openvino.opsets.opset4.ops import lstm_cell -from openvino.opsets.opset5.ops import lstm_sequence -from openvino.opsets.opset1.ops import matmul -from openvino.opsets.opset1.ops import max_pool -from openvino.opsets.opset1.ops import maximum -from openvino.opsets.opset1.ops import minimum -from openvino.opsets.opset4.ops import mish -from openvino.opsets.opset1.ops import mod -from openvino.opsets.opset1.ops import multiply -from openvino.opsets.opset2.ops import mvn -from openvino.opsets.opset1.ops import negative -from openvino.opsets.opset5.ops import non_max_suppression -from openvino.opsets.opset3.ops import non_zero -from openvino.opsets.opset1.ops import normalize_l2 -from openvino.opsets.opset1.ops import not_equal -from openvino.opsets.opset1.ops import one_hot -from openvino.opsets.opset1.ops import pad -from openvino.opsets.opset1.ops import parameter -from openvino.opsets.opset1.ops import power -from openvino.opsets.opset1.ops import prelu -from openvino.opsets.opset1.ops import prior_box -from openvino.opsets.opset1.ops import prior_box_clustered -from openvino.opsets.opset1.ops import psroi_pooling -from openvino.opsets.opset4.ops import proposal -from openvino.opsets.opset1.ops import range -from openvino.opsets.opset3.ops import read_value -from openvino.opsets.opset4.ops import reduce_l1 -from openvino.opsets.opset4.ops import reduce_l2 -from openvino.opsets.opset1.ops import reduce_logical_and -from openvino.opsets.opset1.ops import reduce_logical_or -from openvino.opsets.opset1.ops import reduce_max -from openvino.opsets.opset1.ops import reduce_mean -from openvino.opsets.opset1.ops import reduce_min -from openvino.opsets.opset1.ops import reduce_prod -from openvino.opsets.opset1.ops import reduce_sum -from openvino.opsets.opset1.ops import region_yolo -from openvino.opsets.opset2.ops import reorg_yolo -from openvino.opsets.opset1.ops import relu -from openvino.opsets.opset1.ops import reshape -from openvino.opsets.opset1.ops import result -from openvino.opsets.opset1.ops import reverse_sequence -from openvino.opsets.opset3.ops import rnn_cell -from openvino.opsets.opset5.ops import rnn_sequence -from openvino.opsets.opset3.ops import roi_align -from openvino.opsets.opset2.ops import roi_pooling -from openvino.opsets.opset5.ops import round -from openvino.opsets.opset3.ops import scatter_elements_update -from openvino.opsets.opset4.ops import scatter_nd_update -from openvino.opsets.opset3.ops import scatter_update -from openvino.opsets.opset1.ops import select -from openvino.opsets.opset1.ops import selu -from openvino.opsets.opset3.ops import shape_of -from openvino.opsets.opset3.ops import shuffle_channels -from openvino.opsets.opset1.ops import sigmoid -from openvino.opsets.opset1.ops import sign -from openvino.opsets.opset1.ops import sin -from openvino.opsets.opset1.ops import sinh -from openvino.opsets.opset1.ops import softmax -from openvino.opsets.opset4.ops import softplus -from openvino.opsets.opset2.ops import space_to_batch -from openvino.opsets.opset1.ops import space_to_depth -from openvino.opsets.opset1.ops import split -from openvino.opsets.opset1.ops import sqrt -from openvino.opsets.opset1.ops import squared_difference -from openvino.opsets.opset1.ops import squeeze -from openvino.opsets.opset1.ops import strided_slice -from openvino.opsets.opset1.ops import subtract -from openvino.opsets.opset4.ops import swish -from openvino.opsets.opset1.ops import tan -from openvino.opsets.opset1.ops import tanh -from openvino.opsets.opset1.ops import tensor_iterator -from openvino.opsets.opset1.ops import tile -from openvino.opsets.opset3.ops import topk -from openvino.opsets.opset1.ops import transpose -from openvino.opsets.opset1.ops import unsqueeze -from openvino.opsets.opset1.ops import variadic_split diff --git a/src/bindings/python/src/openvino/opsets/opset6/__init__.py b/src/bindings/python/src/openvino/opsets/opset6/__init__.py deleted file mode 100644 index 15e2871a18030e..00000000000000 --- a/src/bindings/python/src/openvino/opsets/opset6/__init__.py +++ /dev/null @@ -1,154 +0,0 @@ -# -*- coding: utf-8 -*- -# Copyright (C) 2018-2024 Intel Corporation -# SPDX-License-Identifier: Apache-2.0 - -from openvino.opsets.opset1.ops import absolute -from openvino.opsets.opset1.ops import absolute as abs -from openvino.opsets.opset1.ops import acos -from openvino.opsets.opset4.ops import acosh -from openvino.opsets.opset1.ops import add -from openvino.opsets.opset1.ops import asin -from openvino.opsets.opset4.ops import asinh -from openvino.opsets.opset6.ops import assign -from openvino.opsets.opset1.ops import atan -from openvino.opsets.opset4.ops import atanh -from openvino.opsets.opset1.ops import avg_pool -from openvino.opsets.opset5.ops import batch_norm_inference -from openvino.opsets.opset2.ops import batch_to_space -from openvino.opsets.opset1.ops import binary_convolution -from openvino.opsets.opset3.ops import broadcast -from openvino.opsets.opset3.ops import bucketize -from openvino.opsets.opset1.ops import ceiling -from openvino.opsets.opset1.ops import ceiling as ceil -from openvino.opsets.opset1.ops import clamp -from openvino.opsets.opset1.ops import concat -from openvino.opsets.opset1.ops import constant -from openvino.opsets.opset1.ops import convert -from openvino.opsets.opset1.ops import convert_like -from openvino.opsets.opset1.ops import convolution -from openvino.opsets.opset1.ops import convolution_backprop_data -from openvino.opsets.opset1.ops import cos -from openvino.opsets.opset1.ops import cosh -from openvino.opsets.opset1.ops import ctc_greedy_decoder -from openvino.opsets.opset6.ops import ctc_greedy_decoder_seq_len -from openvino.opsets.opset4.ops import ctc_loss -from openvino.opsets.opset3.ops import cum_sum -from openvino.opsets.opset3.ops import cum_sum as cumsum -from openvino.opsets.opset1.ops import deformable_convolution -from openvino.opsets.opset1.ops import deformable_psroi_pooling -from openvino.opsets.opset1.ops import depth_to_space -from openvino.opsets.opset1.ops import detection_output -from openvino.opsets.opset1.ops import divide -from openvino.opsets.opset1.ops import elu -from openvino.opsets.opset3.ops import embedding_bag_offsets_sum -from openvino.opsets.opset3.ops import embedding_bag_packed_sum -from openvino.opsets.opset3.ops import embedding_segments_sum -from openvino.opsets.opset3.ops import extract_image_patches -from openvino.opsets.opset1.ops import equal -from openvino.opsets.opset1.ops import erf -from openvino.opsets.opset1.ops import exp -from openvino.opsets.opset1.ops import fake_quantize -from openvino.opsets.opset1.ops import floor -from openvino.opsets.opset1.ops import floor_mod -from openvino.opsets.opset1.ops import gather -from openvino.opsets.opset6.ops import gather_elements -from openvino.opsets.opset5.ops import gather_nd -from openvino.opsets.opset1.ops import gather_tree -from openvino.opsets.opset2.ops import gelu -from openvino.opsets.opset1.ops import greater -from openvino.opsets.opset1.ops import greater_equal -from openvino.opsets.opset1.ops import grn -from openvino.opsets.opset1.ops import group_convolution -from openvino.opsets.opset1.ops import group_convolution_backprop_data -from openvino.opsets.opset3.ops import gru_cell -from openvino.opsets.opset5.ops import gru_sequence -from openvino.opsets.opset1.ops import hard_sigmoid -from openvino.opsets.opset5.ops import hsigmoid -from openvino.opsets.opset4.ops import hswish -from openvino.opsets.opset1.ops import interpolate -from openvino.opsets.opset1.ops import less -from openvino.opsets.opset1.ops import less_equal -from openvino.opsets.opset1.ops import log -from openvino.opsets.opset1.ops import logical_and -from openvino.opsets.opset1.ops import logical_not -from openvino.opsets.opset1.ops import logical_or -from openvino.opsets.opset1.ops import logical_xor -from openvino.opsets.opset5.ops import log_softmax -from openvino.opsets.opset5.ops import loop -from openvino.opsets.opset1.ops import lrn -from openvino.opsets.opset4.ops import lstm_cell -from openvino.opsets.opset5.ops import lstm_sequence -from openvino.opsets.opset1.ops import matmul -from openvino.opsets.opset1.ops import max_pool -from openvino.opsets.opset1.ops import maximum -from openvino.opsets.opset1.ops import minimum -from openvino.opsets.opset4.ops import mish -from openvino.opsets.opset1.ops import mod -from openvino.opsets.opset1.ops import multiply -from openvino.opsets.opset6.ops import mvn -from openvino.opsets.opset1.ops import negative -from openvino.opsets.opset5.ops import non_max_suppression -from openvino.opsets.opset3.ops import non_zero -from openvino.opsets.opset1.ops import normalize_l2 -from openvino.opsets.opset1.ops import not_equal -from openvino.opsets.opset1.ops import one_hot -from openvino.opsets.opset1.ops import pad -from openvino.opsets.opset1.ops import parameter -from openvino.opsets.opset1.ops import power -from openvino.opsets.opset1.ops import prelu -from openvino.opsets.opset1.ops import prior_box -from openvino.opsets.opset1.ops import prior_box_clustered -from openvino.opsets.opset1.ops import psroi_pooling -from openvino.opsets.opset4.ops import proposal -from openvino.opsets.opset1.ops import range -from openvino.opsets.opset6.ops import read_value -from openvino.opsets.opset4.ops import reduce_l1 -from openvino.opsets.opset4.ops import reduce_l2 -from openvino.opsets.opset1.ops import reduce_logical_and -from openvino.opsets.opset1.ops import reduce_logical_or -from openvino.opsets.opset1.ops import reduce_max -from openvino.opsets.opset1.ops import reduce_mean -from openvino.opsets.opset1.ops import reduce_min -from openvino.opsets.opset1.ops import reduce_prod -from openvino.opsets.opset1.ops import reduce_sum -from openvino.opsets.opset1.ops import region_yolo -from openvino.opsets.opset2.ops import reorg_yolo -from openvino.opsets.opset1.ops import relu -from openvino.opsets.opset1.ops import reshape -from openvino.opsets.opset1.ops import result -from openvino.opsets.opset1.ops import reverse_sequence -from openvino.opsets.opset3.ops import rnn_cell -from openvino.opsets.opset5.ops import rnn_sequence -from openvino.opsets.opset3.ops import roi_align -from openvino.opsets.opset2.ops import roi_pooling -from openvino.opsets.opset5.ops import round -from openvino.opsets.opset3.ops import scatter_elements_update -from openvino.opsets.opset4.ops import scatter_nd_update -from openvino.opsets.opset3.ops import scatter_update -from openvino.opsets.opset1.ops import select -from openvino.opsets.opset1.ops import selu -from openvino.opsets.opset3.ops import shape_of -from openvino.opsets.opset3.ops import shuffle_channels -from openvino.opsets.opset1.ops import sigmoid -from openvino.opsets.opset1.ops import sign -from openvino.opsets.opset1.ops import sin -from openvino.opsets.opset1.ops import sinh -from openvino.opsets.opset1.ops import softmax -from openvino.opsets.opset4.ops import softplus -from openvino.opsets.opset2.ops import space_to_batch -from openvino.opsets.opset1.ops import space_to_depth -from openvino.opsets.opset1.ops import split -from openvino.opsets.opset1.ops import sqrt -from openvino.opsets.opset1.ops import squared_difference -from openvino.opsets.opset1.ops import squeeze -from openvino.opsets.opset1.ops import strided_slice -from openvino.opsets.opset1.ops import subtract -from openvino.opsets.opset4.ops import swish -from openvino.opsets.opset1.ops import tan -from openvino.opsets.opset1.ops import tanh -from openvino.opsets.opset1.ops import tensor_iterator -from openvino.opsets.opset1.ops import tile -from openvino.opsets.opset3.ops import topk -from openvino.opsets.opset1.ops import transpose -from openvino.opsets.opset1.ops import unsqueeze -from openvino.opsets.opset1.ops import variadic_split diff --git a/src/bindings/python/src/openvino/opsets/opset7/__init__.py b/src/bindings/python/src/openvino/opsets/opset7/__init__.py deleted file mode 100644 index dd77fa9d18c0bd..00000000000000 --- a/src/bindings/python/src/openvino/opsets/opset7/__init__.py +++ /dev/null @@ -1,158 +0,0 @@ -# -*- coding: utf-8 -*- -# Copyright (C) 2018-2024 Intel Corporation -# SPDX-License-Identifier: Apache-2.0 - -from openvino.opsets.opset1.ops import absolute -from openvino.opsets.opset1.ops import absolute as abs -from openvino.opsets.opset1.ops import acos -from openvino.opsets.opset4.ops import acosh -from openvino.opsets.opset1.ops import add -from openvino.opsets.opset1.ops import asin -from openvino.opsets.opset4.ops import asinh -from openvino.opsets.opset6.ops import assign -from openvino.opsets.opset1.ops import atan -from openvino.opsets.opset4.ops import atanh -from openvino.opsets.opset1.ops import avg_pool -from openvino.opsets.opset5.ops import batch_norm_inference -from openvino.opsets.opset2.ops import batch_to_space -from openvino.opsets.opset1.ops import binary_convolution -from openvino.opsets.opset3.ops import broadcast -from openvino.opsets.opset3.ops import bucketize -from openvino.opsets.opset1.ops import ceiling -from openvino.opsets.opset1.ops import ceiling as ceil -from openvino.opsets.opset1.ops import clamp -from openvino.opsets.opset1.ops import concat -from openvino.opsets.opset1.ops import constant -from openvino.opsets.opset1.ops import convert -from openvino.opsets.opset1.ops import convert_like -from openvino.opsets.opset1.ops import convolution -from openvino.opsets.opset1.ops import convolution_backprop_data -from openvino.opsets.opset1.ops import cos -from openvino.opsets.opset1.ops import cosh -from openvino.opsets.opset1.ops import ctc_greedy_decoder -from openvino.opsets.opset6.ops import ctc_greedy_decoder_seq_len -from openvino.opsets.opset4.ops import ctc_loss -from openvino.opsets.opset3.ops import cum_sum -from openvino.opsets.opset3.ops import cum_sum as cumsum -from openvino.opsets.opset1.ops import deformable_convolution -from openvino.opsets.opset1.ops import deformable_psroi_pooling -from openvino.opsets.opset1.ops import depth_to_space -from openvino.opsets.opset1.ops import detection_output -from openvino.opsets.opset7.ops import dft -from openvino.opsets.opset1.ops import divide -from openvino.opsets.opset7.ops import einsum -from openvino.opsets.opset1.ops import elu -from openvino.opsets.opset3.ops import embedding_bag_offsets_sum -from openvino.opsets.opset3.ops import embedding_bag_packed_sum -from openvino.opsets.opset3.ops import embedding_segments_sum -from openvino.opsets.opset3.ops import extract_image_patches -from openvino.opsets.opset1.ops import equal -from openvino.opsets.opset1.ops import erf -from openvino.opsets.opset1.ops import exp -from openvino.opsets.opset1.ops import fake_quantize -from openvino.opsets.opset1.ops import floor -from openvino.opsets.opset1.ops import floor_mod -from openvino.opsets.opset7.ops import gather -from openvino.opsets.opset6.ops import gather_elements -from openvino.opsets.opset5.ops import gather_nd -from openvino.opsets.opset1.ops import gather_tree -from openvino.opsets.opset7.ops import gelu -from openvino.opsets.opset1.ops import greater -from openvino.opsets.opset1.ops import greater_equal -from openvino.opsets.opset1.ops import grn -from openvino.opsets.opset1.ops import group_convolution -from openvino.opsets.opset1.ops import group_convolution_backprop_data -from openvino.opsets.opset3.ops import gru_cell -from openvino.opsets.opset5.ops import gru_sequence -from openvino.opsets.opset1.ops import hard_sigmoid -from openvino.opsets.opset5.ops import hsigmoid -from openvino.opsets.opset4.ops import hswish -from openvino.opsets.opset7.ops import idft -from openvino.opsets.opset1.ops import interpolate -from openvino.opsets.opset1.ops import less -from openvino.opsets.opset1.ops import less_equal -from openvino.opsets.opset1.ops import log -from openvino.opsets.opset1.ops import logical_and -from openvino.opsets.opset1.ops import logical_not -from openvino.opsets.opset1.ops import logical_or -from openvino.opsets.opset1.ops import logical_xor -from openvino.opsets.opset5.ops import log_softmax -from openvino.opsets.opset5.ops import loop -from openvino.opsets.opset1.ops import lrn -from openvino.opsets.opset4.ops import lstm_cell -from openvino.opsets.opset5.ops import lstm_sequence -from openvino.opsets.opset1.ops import matmul -from openvino.opsets.opset1.ops import max_pool -from openvino.opsets.opset1.ops import maximum -from openvino.opsets.opset1.ops import minimum -from openvino.opsets.opset4.ops import mish -from openvino.opsets.opset1.ops import mod -from openvino.opsets.opset1.ops import multiply -from openvino.opsets.opset6.ops import mvn -from openvino.opsets.opset1.ops import negative -from openvino.opsets.opset5.ops import non_max_suppression -from openvino.opsets.opset3.ops import non_zero -from openvino.opsets.opset1.ops import normalize_l2 -from openvino.opsets.opset1.ops import not_equal -from openvino.opsets.opset1.ops import one_hot -from openvino.opsets.opset1.ops import pad -from openvino.opsets.opset1.ops import parameter -from openvino.opsets.opset1.ops import power -from openvino.opsets.opset1.ops import prelu -from openvino.opsets.opset1.ops import prior_box -from openvino.opsets.opset1.ops import prior_box_clustered -from openvino.opsets.opset1.ops import psroi_pooling -from openvino.opsets.opset4.ops import proposal -from openvino.opsets.opset1.ops import range -from openvino.opsets.opset6.ops import read_value -from openvino.opsets.opset4.ops import reduce_l1 -from openvino.opsets.opset4.ops import reduce_l2 -from openvino.opsets.opset1.ops import reduce_logical_and -from openvino.opsets.opset1.ops import reduce_logical_or -from openvino.opsets.opset1.ops import reduce_max -from openvino.opsets.opset1.ops import reduce_mean -from openvino.opsets.opset1.ops import reduce_min -from openvino.opsets.opset1.ops import reduce_prod -from openvino.opsets.opset1.ops import reduce_sum -from openvino.opsets.opset1.ops import region_yolo -from openvino.opsets.opset2.ops import reorg_yolo -from openvino.opsets.opset1.ops import relu -from openvino.opsets.opset1.ops import reshape -from openvino.opsets.opset1.ops import result -from openvino.opsets.opset1.ops import reverse_sequence -from openvino.opsets.opset3.ops import rnn_cell -from openvino.opsets.opset5.ops import rnn_sequence -from openvino.opsets.opset3.ops import roi_align -from openvino.opsets.opset2.ops import roi_pooling -from openvino.opsets.opset7.ops import roll -from openvino.opsets.opset5.ops import round -from openvino.opsets.opset3.ops import scatter_elements_update -from openvino.opsets.opset4.ops import scatter_nd_update -from openvino.opsets.opset3.ops import scatter_update -from openvino.opsets.opset1.ops import select -from openvino.opsets.opset1.ops import selu -from openvino.opsets.opset3.ops import shape_of -from openvino.opsets.opset3.ops import shuffle_channels -from openvino.opsets.opset1.ops import sigmoid -from openvino.opsets.opset1.ops import sign -from openvino.opsets.opset1.ops import sin -from openvino.opsets.opset1.ops import sinh -from openvino.opsets.opset1.ops import softmax -from openvino.opsets.opset4.ops import softplus -from openvino.opsets.opset2.ops import space_to_batch -from openvino.opsets.opset1.ops import space_to_depth -from openvino.opsets.opset1.ops import split -from openvino.opsets.opset1.ops import sqrt -from openvino.opsets.opset1.ops import squared_difference -from openvino.opsets.opset1.ops import squeeze -from openvino.opsets.opset1.ops import strided_slice -from openvino.opsets.opset1.ops import subtract -from openvino.opsets.opset4.ops import swish -from openvino.opsets.opset1.ops import tan -from openvino.opsets.opset1.ops import tanh -from openvino.opsets.opset1.ops import tensor_iterator -from openvino.opsets.opset1.ops import tile -from openvino.opsets.opset3.ops import topk -from openvino.opsets.opset1.ops import transpose -from openvino.opsets.opset1.ops import unsqueeze -from openvino.opsets.opset1.ops import variadic_split diff --git a/src/bindings/python/src/openvino/opsets/opset8/__init__.py b/src/bindings/python/src/openvino/opsets/opset8/__init__.py deleted file mode 100644 index 642f9fcf3b48bc..00000000000000 --- a/src/bindings/python/src/openvino/opsets/opset8/__init__.py +++ /dev/null @@ -1,169 +0,0 @@ -# -*- coding: utf-8 -*- -# Copyright (C) 2018-2024 Intel Corporation -# SPDX-License-Identifier: Apache-2.0 - -from openvino.opsets.opset1.ops import absolute -from openvino.opsets.opset1.ops import absolute as abs -from openvino.opsets.opset1.ops import acos -from openvino.opsets.opset4.ops import acosh -from openvino.opsets.opset8.ops import adaptive_avg_pool -from openvino.opsets.opset8.ops import adaptive_max_pool -from openvino.opsets.opset1.ops import add -from openvino.opsets.opset1.ops import asin -from openvino.opsets.opset4.ops import asinh -from openvino.opsets.opset6.ops import assign -from openvino.opsets.opset1.ops import atan -from openvino.opsets.opset4.ops import atanh -from openvino.opsets.opset1.ops import avg_pool -from openvino.opsets.opset5.ops import batch_norm_inference -from openvino.opsets.opset2.ops import batch_to_space -from openvino.opsets.opset1.ops import binary_convolution -from openvino.opsets.opset3.ops import broadcast -from openvino.opsets.opset3.ops import bucketize -from openvino.opsets.opset1.ops import ceiling -from openvino.opsets.opset1.ops import ceiling as ceil -from openvino.opsets.opset1.ops import clamp -from openvino.opsets.opset1.ops import concat -from openvino.opsets.opset1.ops import constant -from openvino.opsets.opset1.ops import convert -from openvino.opsets.opset1.ops import convert_like -from openvino.opsets.opset1.ops import convolution -from openvino.opsets.opset1.ops import convolution_backprop_data -from openvino.opsets.opset1.ops import cos -from openvino.opsets.opset1.ops import cosh -from openvino.opsets.opset1.ops import ctc_greedy_decoder -from openvino.opsets.opset6.ops import ctc_greedy_decoder_seq_len -from openvino.opsets.opset4.ops import ctc_loss -from openvino.opsets.opset3.ops import cum_sum -from openvino.opsets.opset3.ops import cum_sum as cumsum -from openvino.opsets.opset8.ops import deformable_convolution -from openvino.opsets.opset1.ops import deformable_psroi_pooling -from openvino.opsets.opset1.ops import depth_to_space -from openvino.opsets.opset8.ops import detection_output -from openvino.opsets.opset7.ops import dft -from openvino.opsets.opset1.ops import divide -from openvino.opsets.opset7.ops import einsum -from openvino.opsets.opset1.ops import elu -from openvino.opsets.opset3.ops import embedding_bag_offsets_sum -from openvino.opsets.opset3.ops import embedding_bag_packed_sum -from openvino.opsets.opset3.ops import embedding_segments_sum -from openvino.opsets.opset3.ops import extract_image_patches -from openvino.opsets.opset1.ops import equal -from openvino.opsets.opset1.ops import erf -from openvino.opsets.opset1.ops import exp -from openvino.opsets.opset1.ops import fake_quantize -from openvino.opsets.opset1.ops import floor -from openvino.opsets.opset1.ops import floor_mod -from openvino.opsets.opset8.ops import gather -from openvino.opsets.opset6.ops import gather_elements -from openvino.opsets.opset8.ops import gather_nd -from openvino.opsets.opset1.ops import gather_tree -from openvino.opsets.opset7.ops import gelu -from openvino.opsets.opset1.ops import greater -from openvino.opsets.opset1.ops import greater_equal -from openvino.opsets.opset1.ops import grn -from openvino.opsets.opset1.ops import group_convolution -from openvino.opsets.opset1.ops import group_convolution_backprop_data -from openvino.opsets.opset3.ops import gru_cell -from openvino.opsets.opset5.ops import gru_sequence -from openvino.opsets.opset1.ops import hard_sigmoid -from openvino.opsets.opset5.ops import hsigmoid -from openvino.opsets.opset4.ops import hswish -from openvino.opsets.opset7.ops import idft -from openvino.opsets.opset8.ops import if_op -from openvino.opsets.opset1.ops import interpolate -from openvino.opsets.opset8.ops import i420_to_bgr -from openvino.opsets.opset8.ops import i420_to_rgb -from openvino.opsets.opset1.ops import less -from openvino.opsets.opset1.ops import less_equal -from openvino.opsets.opset1.ops import log -from openvino.opsets.opset1.ops import logical_and -from openvino.opsets.opset1.ops import logical_not -from openvino.opsets.opset1.ops import logical_or -from openvino.opsets.opset1.ops import logical_xor -from openvino.opsets.opset5.ops import log_softmax -from openvino.opsets.opset5.ops import loop -from openvino.opsets.opset1.ops import lrn -from openvino.opsets.opset4.ops import lstm_cell -from openvino.opsets.opset5.ops import lstm_sequence -from openvino.opsets.opset1.ops import matmul -from openvino.opsets.opset8.ops import matrix_nms -from openvino.opsets.opset8.ops import max_pool -from openvino.opsets.opset1.ops import maximum -from openvino.opsets.opset1.ops import minimum -from openvino.opsets.opset4.ops import mish -from openvino.opsets.opset1.ops import mod -from openvino.opsets.opset8.ops import multiclass_nms -from openvino.opsets.opset1.ops import multiply -from openvino.opsets.opset6.ops import mvn -from openvino.opsets.opset1.ops import negative -from openvino.opsets.opset5.ops import non_max_suppression -from openvino.opsets.opset3.ops import non_zero -from openvino.opsets.opset1.ops import normalize_l2 -from openvino.opsets.opset1.ops import not_equal -from openvino.opsets.opset8.ops import nv12_to_bgr -from openvino.opsets.opset8.ops import nv12_to_rgb -from openvino.opsets.opset1.ops import one_hot -from openvino.opsets.opset1.ops import pad -from openvino.opsets.opset1.ops import parameter -from openvino.opsets.opset1.ops import power -from openvino.opsets.opset1.ops import prelu -from openvino.opsets.opset8.ops import prior_box -from openvino.opsets.opset1.ops import prior_box_clustered -from openvino.opsets.opset1.ops import psroi_pooling -from openvino.opsets.opset4.ops import proposal -from openvino.opsets.opset1.ops import range -from openvino.opsets.opset8.ops import random_uniform -from openvino.opsets.opset6.ops import read_value -from openvino.opsets.opset4.ops import reduce_l1 -from openvino.opsets.opset4.ops import reduce_l2 -from openvino.opsets.opset1.ops import reduce_logical_and -from openvino.opsets.opset1.ops import reduce_logical_or -from openvino.opsets.opset1.ops import reduce_max -from openvino.opsets.opset1.ops import reduce_mean -from openvino.opsets.opset1.ops import reduce_min -from openvino.opsets.opset1.ops import reduce_prod -from openvino.opsets.opset1.ops import reduce_sum -from openvino.opsets.opset1.ops import region_yolo -from openvino.opsets.opset2.ops import reorg_yolo -from openvino.opsets.opset1.ops import relu -from openvino.opsets.opset1.ops import reshape -from openvino.opsets.opset1.ops import result -from openvino.opsets.opset1.ops import reverse_sequence -from openvino.opsets.opset3.ops import rnn_cell -from openvino.opsets.opset5.ops import rnn_sequence -from openvino.opsets.opset3.ops import roi_align -from openvino.opsets.opset2.ops import roi_pooling -from openvino.opsets.opset7.ops import roll -from openvino.opsets.opset5.ops import round -from openvino.opsets.opset3.ops import scatter_elements_update -from openvino.opsets.opset4.ops import scatter_nd_update -from openvino.opsets.opset3.ops import scatter_update -from openvino.opsets.opset1.ops import select -from openvino.opsets.opset1.ops import selu -from openvino.opsets.opset3.ops import shape_of -from openvino.opsets.opset3.ops import shuffle_channels -from openvino.opsets.opset1.ops import sigmoid -from openvino.opsets.opset1.ops import sign -from openvino.opsets.opset1.ops import sin -from openvino.opsets.opset1.ops import sinh -from openvino.opsets.opset8.ops import slice -from openvino.opsets.opset8.ops import softmax -from openvino.opsets.opset4.ops import softplus -from openvino.opsets.opset2.ops import space_to_batch -from openvino.opsets.opset1.ops import space_to_depth -from openvino.opsets.opset1.ops import split -from openvino.opsets.opset1.ops import sqrt -from openvino.opsets.opset1.ops import squared_difference -from openvino.opsets.opset1.ops import squeeze -from openvino.opsets.opset1.ops import strided_slice -from openvino.opsets.opset1.ops import subtract -from openvino.opsets.opset4.ops import swish -from openvino.opsets.opset1.ops import tan -from openvino.opsets.opset1.ops import tanh -from openvino.opsets.opset1.ops import tensor_iterator -from openvino.opsets.opset1.ops import tile -from openvino.opsets.opset3.ops import topk -from openvino.opsets.opset1.ops import transpose -from openvino.opsets.opset1.ops import unsqueeze -from openvino.opsets.opset1.ops import variadic_split diff --git a/src/bindings/python/src/openvino/opsets/opset9/__init__.py b/src/bindings/python/src/openvino/opsets/opset9/__init__.py deleted file mode 100644 index 374369e5a9d9c3..00000000000000 --- a/src/bindings/python/src/openvino/opsets/opset9/__init__.py +++ /dev/null @@ -1,175 +0,0 @@ -# -*- coding: utf-8 -*- -# Copyright (C) 2018-2024 Intel Corporation -# SPDX-License-Identifier: Apache-2.0 - -from openvino.opsets.opset1.ops import absolute -from openvino.opsets.opset1.ops import absolute as abs -from openvino.opsets.opset1.ops import acos -from openvino.opsets.opset4.ops import acosh -from openvino.opsets.opset8.ops import adaptive_avg_pool -from openvino.opsets.opset8.ops import adaptive_max_pool -from openvino.opsets.opset1.ops import add -from openvino.opsets.opset1.ops import asin -from openvino.opsets.opset4.ops import asinh -from openvino.opsets.opset6.ops import assign -from openvino.opsets.opset1.ops import atan -from openvino.opsets.opset4.ops import atanh -from openvino.opsets.opset1.ops import avg_pool -from openvino.opsets.opset5.ops import batch_norm_inference -from openvino.opsets.opset2.ops import batch_to_space -from openvino.opsets.opset1.ops import binary_convolution -from openvino.opsets.opset3.ops import broadcast -from openvino.opsets.opset3.ops import bucketize -from openvino.opsets.opset1.ops import ceiling -from openvino.opsets.opset1.ops import ceiling as ceil -from openvino.opsets.opset1.ops import clamp -from openvino.opsets.opset1.ops import concat -from openvino.opsets.opset1.ops import constant -from openvino.opsets.opset1.ops import convert -from openvino.opsets.opset1.ops import convert_like -from openvino.opsets.opset1.ops import convolution -from openvino.opsets.opset1.ops import convolution_backprop_data -from openvino.opsets.opset1.ops import cos -from openvino.opsets.opset1.ops import cosh -from openvino.opsets.opset1.ops import ctc_greedy_decoder -from openvino.opsets.opset6.ops import ctc_greedy_decoder_seq_len -from openvino.opsets.opset4.ops import ctc_loss -from openvino.opsets.opset3.ops import cum_sum -from openvino.opsets.opset3.ops import cum_sum as cumsum -from openvino.opsets.opset8.ops import deformable_convolution -from openvino.opsets.opset1.ops import deformable_psroi_pooling -from openvino.opsets.opset1.ops import depth_to_space -from openvino.opsets.opset8.ops import detection_output -from openvino.opsets.opset7.ops import dft -from openvino.opsets.opset1.ops import divide -from openvino.opsets.opset7.ops import einsum -from openvino.opsets.opset1.ops import elu -from openvino.opsets.opset3.ops import embedding_bag_offsets_sum -from openvino.opsets.opset3.ops import embedding_bag_packed_sum -from openvino.opsets.opset3.ops import embedding_segments_sum -from openvino.opsets.opset3.ops import extract_image_patches -from openvino.opsets.opset1.ops import equal -from openvino.opsets.opset1.ops import erf -from openvino.opsets.opset1.ops import exp -from openvino.opsets.opset9.ops import eye -from openvino.opsets.opset1.ops import fake_quantize -from openvino.opsets.opset1.ops import floor -from openvino.opsets.opset1.ops import floor_mod -from openvino.opsets.opset8.ops import gather -from openvino.opsets.opset6.ops import gather_elements -from openvino.opsets.opset8.ops import gather_nd -from openvino.opsets.opset1.ops import gather_tree -from openvino.opsets.opset7.ops import gelu -from openvino.opsets.opset9.ops import generate_proposals -from openvino.opsets.opset1.ops import greater -from openvino.opsets.opset1.ops import greater_equal -from openvino.opsets.opset9.ops import grid_sample -from openvino.opsets.opset1.ops import grn -from openvino.opsets.opset1.ops import group_convolution -from openvino.opsets.opset1.ops import group_convolution_backprop_data -from openvino.opsets.opset3.ops import gru_cell -from openvino.opsets.opset5.ops import gru_sequence -from openvino.opsets.opset1.ops import hard_sigmoid -from openvino.opsets.opset5.ops import hsigmoid -from openvino.opsets.opset4.ops import hswish -from openvino.opsets.opset7.ops import idft -from openvino.opsets.opset8.ops import if_op -from openvino.opsets.opset1.ops import interpolate -from openvino.opsets.opset9.ops import irdft -from openvino.opsets.opset8.ops import i420_to_bgr -from openvino.opsets.opset8.ops import i420_to_rgb -from openvino.opsets.opset1.ops import less -from openvino.opsets.opset1.ops import less_equal -from openvino.opsets.opset1.ops import log -from openvino.opsets.opset1.ops import logical_and -from openvino.opsets.opset1.ops import logical_not -from openvino.opsets.opset1.ops import logical_or -from openvino.opsets.opset1.ops import logical_xor -from openvino.opsets.opset5.ops import log_softmax -from openvino.opsets.opset5.ops import loop -from openvino.opsets.opset1.ops import lrn -from openvino.opsets.opset4.ops import lstm_cell -from openvino.opsets.opset5.ops import lstm_sequence -from openvino.opsets.opset1.ops import matmul -from openvino.opsets.opset8.ops import matrix_nms -from openvino.opsets.opset8.ops import max_pool -from openvino.opsets.opset1.ops import maximum -from openvino.opsets.opset1.ops import minimum -from openvino.opsets.opset4.ops import mish -from openvino.opsets.opset1.ops import mod -from openvino.opsets.opset9.ops import multiclass_nms -from openvino.opsets.opset1.ops import multiply -from openvino.opsets.opset6.ops import mvn -from openvino.opsets.opset1.ops import negative -from openvino.opsets.opset9.ops import non_max_suppression -from openvino.opsets.opset3.ops import non_zero -from openvino.opsets.opset1.ops import normalize_l2 -from openvino.opsets.opset1.ops import not_equal -from openvino.opsets.opset8.ops import nv12_to_bgr -from openvino.opsets.opset8.ops import nv12_to_rgb -from openvino.opsets.opset1.ops import one_hot -from openvino.opsets.opset1.ops import pad -from openvino.opsets.opset1.ops import parameter -from openvino.opsets.opset1.ops import power -from openvino.opsets.opset1.ops import prelu -from openvino.opsets.opset8.ops import prior_box -from openvino.opsets.opset1.ops import prior_box_clustered -from openvino.opsets.opset1.ops import psroi_pooling -from openvino.opsets.opset4.ops import proposal -from openvino.opsets.opset1.ops import range -from openvino.opsets.opset8.ops import random_uniform -from openvino.opsets.opset9.ops import rdft -from openvino.opsets.opset6.ops import read_value -from openvino.opsets.opset4.ops import reduce_l1 -from openvino.opsets.opset4.ops import reduce_l2 -from openvino.opsets.opset1.ops import reduce_logical_and -from openvino.opsets.opset1.ops import reduce_logical_or -from openvino.opsets.opset1.ops import reduce_max -from openvino.opsets.opset1.ops import reduce_mean -from openvino.opsets.opset1.ops import reduce_min -from openvino.opsets.opset1.ops import reduce_prod -from openvino.opsets.opset1.ops import reduce_sum -from openvino.opsets.opset1.ops import region_yolo -from openvino.opsets.opset2.ops import reorg_yolo -from openvino.opsets.opset1.ops import relu -from openvino.opsets.opset1.ops import reshape -from openvino.opsets.opset1.ops import result -from openvino.opsets.opset1.ops import reverse_sequence -from openvino.opsets.opset3.ops import rnn_cell -from openvino.opsets.opset5.ops import rnn_sequence -from openvino.opsets.opset9.ops import roi_align -from openvino.opsets.opset2.ops import roi_pooling -from openvino.opsets.opset7.ops import roll -from openvino.opsets.opset5.ops import round -from openvino.opsets.opset3.ops import scatter_elements_update -from openvino.opsets.opset4.ops import scatter_nd_update -from openvino.opsets.opset3.ops import scatter_update -from openvino.opsets.opset1.ops import select -from openvino.opsets.opset1.ops import selu -from openvino.opsets.opset3.ops import shape_of -from openvino.opsets.opset3.ops import shuffle_channels -from openvino.opsets.opset1.ops import sigmoid -from openvino.opsets.opset1.ops import sign -from openvino.opsets.opset1.ops import sin -from openvino.opsets.opset1.ops import sinh -from openvino.opsets.opset8.ops import slice -from openvino.opsets.opset8.ops import softmax -from openvino.opsets.opset4.ops import softplus -from openvino.opsets.opset9.ops import softsign -from openvino.opsets.opset2.ops import space_to_batch -from openvino.opsets.opset1.ops import space_to_depth -from openvino.opsets.opset1.ops import split -from openvino.opsets.opset1.ops import sqrt -from openvino.opsets.opset1.ops import squared_difference -from openvino.opsets.opset1.ops import squeeze -from openvino.opsets.opset1.ops import strided_slice -from openvino.opsets.opset1.ops import subtract -from openvino.opsets.opset4.ops import swish -from openvino.opsets.opset1.ops import tan -from openvino.opsets.opset1.ops import tanh -from openvino.opsets.opset1.ops import tensor_iterator -from openvino.opsets.opset1.ops import tile -from openvino.opsets.opset3.ops import topk -from openvino.opsets.opset1.ops import transpose -from openvino.opsets.opset1.ops import unsqueeze -from openvino.opsets.opset1.ops import variadic_split diff --git a/src/bindings/python/src/openvino/runtime/__init__.py b/src/bindings/python/src/openvino/runtime/__init__.py index 54ae33ed9adabd..3bf1a2412a9671 100644 --- a/src/bindings/python/src/openvino/runtime/__init__.py +++ b/src/bindings/python/src/openvino/runtime/__init__.py @@ -55,23 +55,20 @@ from openvino._pyopenvino import shutdown # Import opsets -from openvino.opsets import op -from openvino.opsets import opset1 -from openvino.opsets import opset2 -from openvino.opsets import opset3 -from openvino.opsets import opset4 -from openvino.opsets import opset5 -from openvino.opsets import opset6 -from openvino.opsets import opset7 -from openvino.opsets import opset8 -from openvino.opsets import opset9 -from openvino.opsets import opset10 -from openvino.opsets import opset11 -from openvino.opsets import opset12 -from openvino.opsets import opset13 -from openvino.opsets import opset14 -from openvino.opsets import opset15 -from openvino.opsets import opset_utils +from openvino.runtime import opset1 +from openvino.runtime import opset2 +from openvino.runtime import opset3 +from openvino.runtime import opset4 +from openvino.runtime import opset5 +from openvino.runtime import opset6 +from openvino.runtime import opset7 +from openvino.runtime import opset8 +from openvino.runtime import opset9 +from openvino.runtime import opset10 +from openvino.runtime import opset11 +from openvino.runtime import opset12 +from openvino.runtime import opset13 + # Aliases from openvino import ie_api as ie_api diff --git a/src/bindings/python/src/openvino/runtime/exceptions.py b/src/bindings/python/src/openvino/runtime/exceptions.py new file mode 100644 index 00000000000000..1ca011932d45d8 --- /dev/null +++ b/src/bindings/python/src/openvino/runtime/exceptions.py @@ -0,0 +1,5 @@ +# -*- coding: utf-8 -*- +# Copyright (C) 2018-2024 Intel Corporation +# SPDX-License-Identifier: Apache-2.0 + +from openvino.exceptions import * \ No newline at end of file diff --git a/src/bindings/python/src/openvino/runtime/ie_api.py b/src/bindings/python/src/openvino/runtime/ie_api.py new file mode 100644 index 00000000000000..03b54cd071d20f --- /dev/null +++ b/src/bindings/python/src/openvino/runtime/ie_api.py @@ -0,0 +1,5 @@ +# -*- coding: utf-8 -*- +# Copyright (C) 2018-2024 Intel Corporation +# SPDX-License-Identifier: Apache-2.0 + +from openvino.ie_api import * \ No newline at end of file diff --git a/src/bindings/python/src/openvino/runtime/op/__init__.py b/src/bindings/python/src/openvino/runtime/op/__init__.py new file mode 100644 index 00000000000000..fdcdf2f904bc64 --- /dev/null +++ b/src/bindings/python/src/openvino/runtime/op/__init__.py @@ -0,0 +1,11 @@ +# Copyright (C) 2018-2024 Intel Corporation +# SPDX-License-Identifier: Apache-2.0 + +""" +Package: openvino.op +Low level wrappers for the c++ api in ov::op. +""" + +# flake8: noqa + +from openvino.op import * \ No newline at end of file diff --git a/src/bindings/python/src/openvino/runtime/op/util/__init__.py b/src/bindings/python/src/openvino/runtime/op/util/__init__.py new file mode 100644 index 00000000000000..e0d7b4ec13a14b --- /dev/null +++ b/src/bindings/python/src/openvino/runtime/op/util/__init__.py @@ -0,0 +1,11 @@ +# Copyright (C) 2018-2024 Intel Corporation +# SPDX-License-Identifier: Apache-2.0 + +""" +Package: openvino.op +Low level wrappers for the c++ api in ov::op. +""" + +# flake8: noqa + +from openvino.op.util import * \ No newline at end of file diff --git a/src/bindings/python/src/openvino/runtime/opset1/__init__.py b/src/bindings/python/src/openvino/runtime/opset1/__init__.py new file mode 100644 index 00000000000000..2c3c24baa6c985 --- /dev/null +++ b/src/bindings/python/src/openvino/runtime/opset1/__init__.py @@ -0,0 +1,5 @@ +# -*- coding: utf-8 -*- +# Copyright (C) 2018-2024 Intel Corporation +# SPDX-License-Identifier: Apache-2.0 + +from openvino.opset1 import * \ No newline at end of file diff --git a/src/bindings/python/src/openvino/runtime/opset10/__init__.py b/src/bindings/python/src/openvino/runtime/opset10/__init__.py new file mode 100644 index 00000000000000..be3011450e01b2 --- /dev/null +++ b/src/bindings/python/src/openvino/runtime/opset10/__init__.py @@ -0,0 +1,5 @@ +# -*- coding: utf-8 -*- +# Copyright (C) 2018-2024 Intel Corporation +# SPDX-License-Identifier: Apache-2.0 + +from openvino.opset10 import * \ No newline at end of file diff --git a/src/bindings/python/src/openvino/runtime/opset11/__init__.py b/src/bindings/python/src/openvino/runtime/opset11/__init__.py new file mode 100644 index 00000000000000..2eef3df540af6c --- /dev/null +++ b/src/bindings/python/src/openvino/runtime/opset11/__init__.py @@ -0,0 +1,5 @@ +# -*- coding: utf-8 -*- +# Copyright (C) 2018-2024 Intel Corporation +# SPDX-License-Identifier: Apache-2.0 + +from openvino.opset11 import * \ No newline at end of file diff --git a/src/bindings/python/src/openvino/runtime/opset12/__init__.py b/src/bindings/python/src/openvino/runtime/opset12/__init__.py new file mode 100644 index 00000000000000..7dda90a4405c5f --- /dev/null +++ b/src/bindings/python/src/openvino/runtime/opset12/__init__.py @@ -0,0 +1,5 @@ +# -*- coding: utf-8 -*- +# Copyright (C) 2018-2024 Intel Corporation +# SPDX-License-Identifier: Apache-2.0 + +from openvino.opset12 import * \ No newline at end of file diff --git a/src/bindings/python/src/openvino/runtime/opset13/__init__.py b/src/bindings/python/src/openvino/runtime/opset13/__init__.py new file mode 100644 index 00000000000000..600464ad384c81 --- /dev/null +++ b/src/bindings/python/src/openvino/runtime/opset13/__init__.py @@ -0,0 +1,6 @@ +# -*- coding: utf-8 -*- +# Copyright (C) 2018-2024 Intel Corporation +# SPDX-License-Identifier: Apache-2.0 + + +from openvino.opset13 import * \ No newline at end of file diff --git a/src/bindings/python/src/openvino/runtime/opset14/__init__.py b/src/bindings/python/src/openvino/runtime/opset14/__init__.py new file mode 100644 index 00000000000000..c3c08bfafa8467 --- /dev/null +++ b/src/bindings/python/src/openvino/runtime/opset14/__init__.py @@ -0,0 +1,5 @@ +# -*- coding: utf-8 -*- +# Copyright (C) 2018-2024 Intel Corporation +# SPDX-License-Identifier: Apache-2.0 + +from openvino.opset14 import * \ No newline at end of file diff --git a/src/bindings/python/src/openvino/runtime/opset15/__init__.py b/src/bindings/python/src/openvino/runtime/opset15/__init__.py new file mode 100644 index 00000000000000..4054a511d427f4 --- /dev/null +++ b/src/bindings/python/src/openvino/runtime/opset15/__init__.py @@ -0,0 +1,5 @@ +# -*- coding: utf-8 -*- +# Copyright (C) 2018-2024 Intel Corporation +# SPDX-License-Identifier: Apache-2.0 + +from openvino.opset15 import * \ No newline at end of file diff --git a/src/bindings/python/src/openvino/runtime/opset2/__init__.py b/src/bindings/python/src/openvino/runtime/opset2/__init__.py new file mode 100644 index 00000000000000..507a29bcc00b0d --- /dev/null +++ b/src/bindings/python/src/openvino/runtime/opset2/__init__.py @@ -0,0 +1,5 @@ +# -*- coding: utf-8 -*- +# Copyright (C) 2018-2024 Intel Corporation +# SPDX-License-Identifier: Apache-2.0 + +from openvino.opset2 import * \ No newline at end of file diff --git a/src/bindings/python/src/openvino/runtime/opset3/__init__.py b/src/bindings/python/src/openvino/runtime/opset3/__init__.py new file mode 100644 index 00000000000000..2a6e9c5d73bea0 --- /dev/null +++ b/src/bindings/python/src/openvino/runtime/opset3/__init__.py @@ -0,0 +1,5 @@ +# -*- coding: utf-8 -*- +# Copyright (C) 2018-2024 Intel Corporation +# SPDX-License-Identifier: Apache-2.0 + +from openvino.opset3 import * \ No newline at end of file diff --git a/src/bindings/python/src/openvino/runtime/opset4/__init__.py b/src/bindings/python/src/openvino/runtime/opset4/__init__.py new file mode 100644 index 00000000000000..faf4132e9de046 --- /dev/null +++ b/src/bindings/python/src/openvino/runtime/opset4/__init__.py @@ -0,0 +1,5 @@ +# -*- coding: utf-8 -*- +# Copyright (C) 2018-2024 Intel Corporation +# SPDX-License-Identifier: Apache-2.0 + +from openvino.opset4 import * \ No newline at end of file diff --git a/src/bindings/python/src/openvino/runtime/opset5/__init__.py b/src/bindings/python/src/openvino/runtime/opset5/__init__.py new file mode 100644 index 00000000000000..37b8621e29cffe --- /dev/null +++ b/src/bindings/python/src/openvino/runtime/opset5/__init__.py @@ -0,0 +1,5 @@ +# -*- coding: utf-8 -*- +# Copyright (C) 2018-2024 Intel Corporation +# SPDX-License-Identifier: Apache-2.0 + +from openvino.opset5 import * \ No newline at end of file diff --git a/src/bindings/python/src/openvino/runtime/opset6/__init__.py b/src/bindings/python/src/openvino/runtime/opset6/__init__.py new file mode 100644 index 00000000000000..2f0e95463663e5 --- /dev/null +++ b/src/bindings/python/src/openvino/runtime/opset6/__init__.py @@ -0,0 +1,5 @@ +# -*- coding: utf-8 -*- +# Copyright (C) 2018-2024 Intel Corporation +# SPDX-License-Identifier: Apache-2.0 + +from openvino.opset6 import * \ No newline at end of file diff --git a/src/bindings/python/src/openvino/runtime/opset7/__init__.py b/src/bindings/python/src/openvino/runtime/opset7/__init__.py new file mode 100644 index 00000000000000..f379a3c8b0360a --- /dev/null +++ b/src/bindings/python/src/openvino/runtime/opset7/__init__.py @@ -0,0 +1,5 @@ +# -*- coding: utf-8 -*- +# Copyright (C) 2018-2024 Intel Corporation +# SPDX-License-Identifier: Apache-2.0 + +from openvino.opset7 import * \ No newline at end of file diff --git a/src/bindings/python/src/openvino/runtime/opset8/__init__.py b/src/bindings/python/src/openvino/runtime/opset8/__init__.py new file mode 100644 index 00000000000000..08c8cb9a8199da --- /dev/null +++ b/src/bindings/python/src/openvino/runtime/opset8/__init__.py @@ -0,0 +1,5 @@ +# -*- coding: utf-8 -*- +# Copyright (C) 2018-2024 Intel Corporation +# SPDX-License-Identifier: Apache-2.0 + +from openvino.opset8 import * \ No newline at end of file diff --git a/src/bindings/python/src/openvino/runtime/opset9/__init__.py b/src/bindings/python/src/openvino/runtime/opset9/__init__.py new file mode 100644 index 00000000000000..d7f272fdc6f0d5 --- /dev/null +++ b/src/bindings/python/src/openvino/runtime/opset9/__init__.py @@ -0,0 +1,5 @@ +# -*- coding: utf-8 -*- +# Copyright (C) 2018-2024 Intel Corporation +# SPDX-License-Identifier: Apache-2.0 + +from openvino.opset9 import * \ No newline at end of file diff --git a/src/bindings/python/src/openvino/runtime/opset_utils.py b/src/bindings/python/src/openvino/runtime/opset_utils.py new file mode 100644 index 00000000000000..63b926eeb08442 --- /dev/null +++ b/src/bindings/python/src/openvino/runtime/opset_utils.py @@ -0,0 +1,5 @@ +# -*- coding: utf-8 -*- +# Copyright (C) 2018-2024 Intel Corporation +# SPDX-License-Identifier: Apache-2.0 + +from openvino.opset_utils import * \ No newline at end of file diff --git a/src/bindings/python/src/openvino/runtime/utils/__init__.py b/src/bindings/python/src/openvino/runtime/utils/__init__.py new file mode 100644 index 00000000000000..2b70de0e77c3ee --- /dev/null +++ b/src/bindings/python/src/openvino/runtime/utils/__init__.py @@ -0,0 +1,7 @@ +# -*- coding: utf-8 -*- +# Copyright (C) 2018-2024 Intel Corporation +# SPDX-License-Identifier: Apache-2.0 + +"""Generic utilities. Factor related functions out to separate files.""" + +from openvino._pyopenvino.util import numpy_to_c, replace_node, replace_output_update_name \ No newline at end of file diff --git a/src/bindings/python/src/openvino/runtime/utils/broadcasting.py b/src/bindings/python/src/openvino/runtime/utils/broadcasting.py new file mode 100644 index 00000000000000..3d2a7b21d67986 --- /dev/null +++ b/src/bindings/python/src/openvino/runtime/utils/broadcasting.py @@ -0,0 +1,5 @@ +# -*- coding: utf-8 -*- +# Copyright (C) 2018-2024 Intel Corporation +# SPDX-License-Identifier: Apache-2.0 + +from openvino.utils.broadcasting import * \ No newline at end of file diff --git a/src/bindings/python/src/openvino/runtime/utils/data_helpers/__init__.py b/src/bindings/python/src/openvino/runtime/utils/data_helpers/__init__.py new file mode 100644 index 00000000000000..282547dd9df79a --- /dev/null +++ b/src/bindings/python/src/openvino/runtime/utils/data_helpers/__init__.py @@ -0,0 +1,8 @@ +# -*- coding: utf-8 -*- +# Copyright (C) 2018-2024 Intel Corporation +# SPDX-License-Identifier: Apache-2.0 + +from openvino.utils.data_helpers.data_dispatcher import _data_dispatch +from openvino.utils.data_helpers.wrappers import tensor_from_file +from openvino.utils.data_helpers.wrappers import _InferRequestWrapper +from openvino.utils.data_helpers.wrappers import OVDict diff --git a/src/bindings/python/src/openvino/runtime/utils/data_helpers/data_dispatcher.py b/src/bindings/python/src/openvino/runtime/utils/data_helpers/data_dispatcher.py new file mode 100644 index 00000000000000..f467a0deebf31c --- /dev/null +++ b/src/bindings/python/src/openvino/runtime/utils/data_helpers/data_dispatcher.py @@ -0,0 +1,5 @@ +# -*- coding: utf-8 -*- +# Copyright (C) 2018-2024 Intel Corporation +# SPDX-License-Identifier: Apache-2.0 + +from openvino.utils.data_dispatcher import * \ No newline at end of file diff --git a/src/bindings/python/src/openvino/runtime/utils/data_helpers/wrappers.py b/src/bindings/python/src/openvino/runtime/utils/data_helpers/wrappers.py new file mode 100644 index 00000000000000..598326a2884f6d --- /dev/null +++ b/src/bindings/python/src/openvino/runtime/utils/data_helpers/wrappers.py @@ -0,0 +1,5 @@ +# -*- coding: utf-8 -*- +# Copyright (C) 2018-2024 Intel Corporation +# SPDX-License-Identifier: Apache-2.0 + +from openvino.utils.wrappers import * \ No newline at end of file diff --git a/src/bindings/python/src/openvino/runtime/utils/decorators.py b/src/bindings/python/src/openvino/runtime/utils/decorators.py new file mode 100644 index 00000000000000..914d2940e758a5 --- /dev/null +++ b/src/bindings/python/src/openvino/runtime/utils/decorators.py @@ -0,0 +1,5 @@ +# -*- coding: utf-8 -*- +# Copyright (C) 2018-2024 Intel Corporation +# SPDX-License-Identifier: Apache-2.0 + +from openvino.utils.decorators import * \ No newline at end of file diff --git a/src/bindings/python/src/openvino/runtime/utils/input_validation.py b/src/bindings/python/src/openvino/runtime/utils/input_validation.py new file mode 100644 index 00000000000000..8e32ecbcd6b2e8 --- /dev/null +++ b/src/bindings/python/src/openvino/runtime/utils/input_validation.py @@ -0,0 +1,6 @@ +# -*- coding: utf-8 -*- +# Copyright (C) 2018-2024 Intel Corporation +# SPDX-License-Identifier: Apache-2.0 + +from openvino.utils.input_validation import * +from openvino.utils.input_validation import _check_value as _check_value \ No newline at end of file diff --git a/src/bindings/python/src/openvino/runtime/utils/node_factory.py b/src/bindings/python/src/openvino/runtime/utils/node_factory.py new file mode 100644 index 00000000000000..7704050717a520 --- /dev/null +++ b/src/bindings/python/src/openvino/runtime/utils/node_factory.py @@ -0,0 +1,5 @@ +# -*- coding: utf-8 -*- +# Copyright (C) 2018-2024 Intel Corporation +# SPDX-License-Identifier: Apache-2.0 + +from openvino.utils.node_factory import * \ No newline at end of file diff --git a/src/bindings/python/src/openvino/runtime/utils/reduction.py b/src/bindings/python/src/openvino/runtime/utils/reduction.py new file mode 100644 index 00000000000000..2772a24dbdb106 --- /dev/null +++ b/src/bindings/python/src/openvino/runtime/utils/reduction.py @@ -0,0 +1,5 @@ +# -*- coding: utf-8 -*- +# Copyright (C) 2018-2024 Intel Corporation +# SPDX-License-Identifier: Apache-2.0 + +from openvino.utils.reduction import * \ No newline at end of file diff --git a/src/bindings/python/src/openvino/runtime/utils/types.py b/src/bindings/python/src/openvino/runtime/utils/types.py new file mode 100644 index 00000000000000..12b65c4bda1e93 --- /dev/null +++ b/src/bindings/python/src/openvino/runtime/utils/types.py @@ -0,0 +1,5 @@ +# -*- coding: utf-8 -*- +# Copyright (C) 2018-2024 Intel Corporation +# SPDX-License-Identifier: Apache-2.0 + +from openvino.utils.types import * \ No newline at end of file diff --git a/src/bindings/python/src/openvino/utils/types.py b/src/bindings/python/src/openvino/utils/types.py index 514cb33731385e..1e9d71a7e4a5b3 100644 --- a/src/bindings/python/src/openvino/utils/types.py +++ b/src/bindings/python/src/openvino/utils/types.py @@ -11,7 +11,7 @@ from openvino.exceptions import OVTypeError from openvino._pyopenvino import Node, Shape, Output, Type -from openvino.opsets.op import Constant +from openvino.op import Constant log = logging.getLogger(__name__) From de844f3672d595bcaf970f44d6a2f95a047a181b Mon Sep 17 00:00:00 2001 From: Alicja Miloszewska Date: Fri, 8 Nov 2024 11:51:41 +0100 Subject: [PATCH 13/38] Fix codestyle Signed-off-by: Alicja Miloszewska --- src/bindings/python/src/openvino/__init__.py | 1 - src/bindings/python/src/openvino/runtime/__init__.py | 10 +++++----- src/bindings/python/src/openvino/runtime/exceptions.py | 2 +- src/bindings/python/src/openvino/runtime/ie_api.py | 2 +- .../python/src/openvino/runtime/opset1/__init__.py | 2 +- .../python/src/openvino/runtime/opset10/__init__.py | 2 +- .../python/src/openvino/runtime/opset11/__init__.py | 2 +- .../python/src/openvino/runtime/opset12/__init__.py | 2 +- .../python/src/openvino/runtime/opset13/__init__.py | 2 +- .../python/src/openvino/runtime/opset14/__init__.py | 2 +- .../python/src/openvino/runtime/opset15/__init__.py | 2 +- .../python/src/openvino/runtime/opset2/__init__.py | 2 +- .../python/src/openvino/runtime/opset3/__init__.py | 2 +- .../python/src/openvino/runtime/opset4/__init__.py | 2 +- .../python/src/openvino/runtime/opset5/__init__.py | 2 +- .../python/src/openvino/runtime/opset6/__init__.py | 2 +- .../python/src/openvino/runtime/opset7/__init__.py | 2 +- .../python/src/openvino/runtime/opset8/__init__.py | 2 +- .../python/src/openvino/runtime/opset9/__init__.py | 2 +- .../python/src/openvino/runtime/opset_utils.py | 2 +- .../python/src/openvino/runtime/utils/__init__.py | 2 +- .../python/src/openvino/runtime/utils/broadcasting.py | 2 +- .../runtime/utils/data_helpers/data_dispatcher.py | 2 +- .../openvino/runtime/utils/data_helpers/wrappers.py | 2 +- .../python/src/openvino/runtime/utils/decorators.py | 2 +- .../src/openvino/runtime/utils/input_validation.py | 4 ++-- .../python/src/openvino/runtime/utils/node_factory.py | 2 +- .../python/src/openvino/runtime/utils/reduction.py | 2 +- .../python/src/openvino/runtime/utils/types.py | 2 +- 29 files changed, 33 insertions(+), 34 deletions(-) diff --git a/src/bindings/python/src/openvino/__init__.py b/src/bindings/python/src/openvino/__init__.py index 4f3e65e0e75de3..a7a01e1d8b7b08 100644 --- a/src/bindings/python/src/openvino/__init__.py +++ b/src/bindings/python/src/openvino/__init__.py @@ -18,7 +18,6 @@ # # It is not compared with init files from openvino-dev package. # # # Import all public modules -# from openvino import runtime as runtime from openvino import frontend as frontend from openvino import helpers as helpers from openvino import experimental as experimental diff --git a/src/bindings/python/src/openvino/runtime/__init__.py b/src/bindings/python/src/openvino/runtime/__init__.py index 3bf1a2412a9671..0e2a7ee0497c7f 100644 --- a/src/bindings/python/src/openvino/runtime/__init__.py +++ b/src/bindings/python/src/openvino/runtime/__init__.py @@ -6,13 +6,13 @@ # noqa: F401 import warnings -warnings.simplefilter('always', DeprecationWarning) +warnings.simplefilter("always", DeprecationWarning) warnings.warn( -'The `openvino.runtime` module is deprecated and will be removed in the 2026.0 release. ' -'Please replace `openvino.runtime` with `openvino` after 25.1 release.', -DeprecationWarning, -stacklevel=2 + "The `openvino.runtime` module is deprecated and will be removed in the 2026.0 release. " + "Please replace `openvino.runtime` with `openvino` after 25.1 release.", + DeprecationWarning, + stacklevel=2 ) from openvino._pyopenvino import get_version diff --git a/src/bindings/python/src/openvino/runtime/exceptions.py b/src/bindings/python/src/openvino/runtime/exceptions.py index 1ca011932d45d8..1fb8555b5b0d78 100644 --- a/src/bindings/python/src/openvino/runtime/exceptions.py +++ b/src/bindings/python/src/openvino/runtime/exceptions.py @@ -2,4 +2,4 @@ # Copyright (C) 2018-2024 Intel Corporation # SPDX-License-Identifier: Apache-2.0 -from openvino.exceptions import * \ No newline at end of file +from openvino.exceptions import * # noqa: F403 diff --git a/src/bindings/python/src/openvino/runtime/ie_api.py b/src/bindings/python/src/openvino/runtime/ie_api.py index 03b54cd071d20f..4859172ba1b58e 100644 --- a/src/bindings/python/src/openvino/runtime/ie_api.py +++ b/src/bindings/python/src/openvino/runtime/ie_api.py @@ -2,4 +2,4 @@ # Copyright (C) 2018-2024 Intel Corporation # SPDX-License-Identifier: Apache-2.0 -from openvino.ie_api import * \ No newline at end of file +from openvino.ie_api import * # noqa: F403 diff --git a/src/bindings/python/src/openvino/runtime/opset1/__init__.py b/src/bindings/python/src/openvino/runtime/opset1/__init__.py index 2c3c24baa6c985..ba6e770793b5d3 100644 --- a/src/bindings/python/src/openvino/runtime/opset1/__init__.py +++ b/src/bindings/python/src/openvino/runtime/opset1/__init__.py @@ -2,4 +2,4 @@ # Copyright (C) 2018-2024 Intel Corporation # SPDX-License-Identifier: Apache-2.0 -from openvino.opset1 import * \ No newline at end of file +from openvino.opset1 import * # noqa: F403 diff --git a/src/bindings/python/src/openvino/runtime/opset10/__init__.py b/src/bindings/python/src/openvino/runtime/opset10/__init__.py index be3011450e01b2..f1b9b78de8fd0f 100644 --- a/src/bindings/python/src/openvino/runtime/opset10/__init__.py +++ b/src/bindings/python/src/openvino/runtime/opset10/__init__.py @@ -2,4 +2,4 @@ # Copyright (C) 2018-2024 Intel Corporation # SPDX-License-Identifier: Apache-2.0 -from openvino.opset10 import * \ No newline at end of file +from openvino.opset10 import * # noqa: F403 diff --git a/src/bindings/python/src/openvino/runtime/opset11/__init__.py b/src/bindings/python/src/openvino/runtime/opset11/__init__.py index 2eef3df540af6c..cce2dc0831b192 100644 --- a/src/bindings/python/src/openvino/runtime/opset11/__init__.py +++ b/src/bindings/python/src/openvino/runtime/opset11/__init__.py @@ -2,4 +2,4 @@ # Copyright (C) 2018-2024 Intel Corporation # SPDX-License-Identifier: Apache-2.0 -from openvino.opset11 import * \ No newline at end of file +from openvino.opset11 import * # noqa: F403 diff --git a/src/bindings/python/src/openvino/runtime/opset12/__init__.py b/src/bindings/python/src/openvino/runtime/opset12/__init__.py index 7dda90a4405c5f..1770c263a14185 100644 --- a/src/bindings/python/src/openvino/runtime/opset12/__init__.py +++ b/src/bindings/python/src/openvino/runtime/opset12/__init__.py @@ -2,4 +2,4 @@ # Copyright (C) 2018-2024 Intel Corporation # SPDX-License-Identifier: Apache-2.0 -from openvino.opset12 import * \ No newline at end of file +from openvino.opset12 import * # noqa: F403 diff --git a/src/bindings/python/src/openvino/runtime/opset13/__init__.py b/src/bindings/python/src/openvino/runtime/opset13/__init__.py index 600464ad384c81..0d80ce632d8475 100644 --- a/src/bindings/python/src/openvino/runtime/opset13/__init__.py +++ b/src/bindings/python/src/openvino/runtime/opset13/__init__.py @@ -3,4 +3,4 @@ # SPDX-License-Identifier: Apache-2.0 -from openvino.opset13 import * \ No newline at end of file +from openvino.opset13 import * # noqa: F403 diff --git a/src/bindings/python/src/openvino/runtime/opset14/__init__.py b/src/bindings/python/src/openvino/runtime/opset14/__init__.py index c3c08bfafa8467..a5a534f0a1b40a 100644 --- a/src/bindings/python/src/openvino/runtime/opset14/__init__.py +++ b/src/bindings/python/src/openvino/runtime/opset14/__init__.py @@ -2,4 +2,4 @@ # Copyright (C) 2018-2024 Intel Corporation # SPDX-License-Identifier: Apache-2.0 -from openvino.opset14 import * \ No newline at end of file +from openvino.opset14 import * # noqa: F403 diff --git a/src/bindings/python/src/openvino/runtime/opset15/__init__.py b/src/bindings/python/src/openvino/runtime/opset15/__init__.py index 4054a511d427f4..d896b0855670f2 100644 --- a/src/bindings/python/src/openvino/runtime/opset15/__init__.py +++ b/src/bindings/python/src/openvino/runtime/opset15/__init__.py @@ -2,4 +2,4 @@ # Copyright (C) 2018-2024 Intel Corporation # SPDX-License-Identifier: Apache-2.0 -from openvino.opset15 import * \ No newline at end of file +from openvino.opset15 import * # noqa: F403 diff --git a/src/bindings/python/src/openvino/runtime/opset2/__init__.py b/src/bindings/python/src/openvino/runtime/opset2/__init__.py index 507a29bcc00b0d..f60b32cdcaf143 100644 --- a/src/bindings/python/src/openvino/runtime/opset2/__init__.py +++ b/src/bindings/python/src/openvino/runtime/opset2/__init__.py @@ -2,4 +2,4 @@ # Copyright (C) 2018-2024 Intel Corporation # SPDX-License-Identifier: Apache-2.0 -from openvino.opset2 import * \ No newline at end of file +from openvino.opset2 import * # noqa: F403 diff --git a/src/bindings/python/src/openvino/runtime/opset3/__init__.py b/src/bindings/python/src/openvino/runtime/opset3/__init__.py index 2a6e9c5d73bea0..d1239a74949e77 100644 --- a/src/bindings/python/src/openvino/runtime/opset3/__init__.py +++ b/src/bindings/python/src/openvino/runtime/opset3/__init__.py @@ -2,4 +2,4 @@ # Copyright (C) 2018-2024 Intel Corporation # SPDX-License-Identifier: Apache-2.0 -from openvino.opset3 import * \ No newline at end of file +from openvino.opset3 import * # noqa: F403 diff --git a/src/bindings/python/src/openvino/runtime/opset4/__init__.py b/src/bindings/python/src/openvino/runtime/opset4/__init__.py index faf4132e9de046..9297fcef449bc1 100644 --- a/src/bindings/python/src/openvino/runtime/opset4/__init__.py +++ b/src/bindings/python/src/openvino/runtime/opset4/__init__.py @@ -2,4 +2,4 @@ # Copyright (C) 2018-2024 Intel Corporation # SPDX-License-Identifier: Apache-2.0 -from openvino.opset4 import * \ No newline at end of file +from openvino.opset4 import * # noqa: F403 diff --git a/src/bindings/python/src/openvino/runtime/opset5/__init__.py b/src/bindings/python/src/openvino/runtime/opset5/__init__.py index 37b8621e29cffe..f52f210be1e87b 100644 --- a/src/bindings/python/src/openvino/runtime/opset5/__init__.py +++ b/src/bindings/python/src/openvino/runtime/opset5/__init__.py @@ -2,4 +2,4 @@ # Copyright (C) 2018-2024 Intel Corporation # SPDX-License-Identifier: Apache-2.0 -from openvino.opset5 import * \ No newline at end of file +from openvino.opset5 import * # noqa: F403 diff --git a/src/bindings/python/src/openvino/runtime/opset6/__init__.py b/src/bindings/python/src/openvino/runtime/opset6/__init__.py index 2f0e95463663e5..f43946b915ee68 100644 --- a/src/bindings/python/src/openvino/runtime/opset6/__init__.py +++ b/src/bindings/python/src/openvino/runtime/opset6/__init__.py @@ -2,4 +2,4 @@ # Copyright (C) 2018-2024 Intel Corporation # SPDX-License-Identifier: Apache-2.0 -from openvino.opset6 import * \ No newline at end of file +from openvino.opset6 import * # noqa: F403 diff --git a/src/bindings/python/src/openvino/runtime/opset7/__init__.py b/src/bindings/python/src/openvino/runtime/opset7/__init__.py index f379a3c8b0360a..9f61015e8395ef 100644 --- a/src/bindings/python/src/openvino/runtime/opset7/__init__.py +++ b/src/bindings/python/src/openvino/runtime/opset7/__init__.py @@ -2,4 +2,4 @@ # Copyright (C) 2018-2024 Intel Corporation # SPDX-License-Identifier: Apache-2.0 -from openvino.opset7 import * \ No newline at end of file +from openvino.opset7 import * # noqa: F403 diff --git a/src/bindings/python/src/openvino/runtime/opset8/__init__.py b/src/bindings/python/src/openvino/runtime/opset8/__init__.py index 08c8cb9a8199da..af6fe278e818d2 100644 --- a/src/bindings/python/src/openvino/runtime/opset8/__init__.py +++ b/src/bindings/python/src/openvino/runtime/opset8/__init__.py @@ -2,4 +2,4 @@ # Copyright (C) 2018-2024 Intel Corporation # SPDX-License-Identifier: Apache-2.0 -from openvino.opset8 import * \ No newline at end of file +from openvino.opset8 import * # noqa: F403 diff --git a/src/bindings/python/src/openvino/runtime/opset9/__init__.py b/src/bindings/python/src/openvino/runtime/opset9/__init__.py index d7f272fdc6f0d5..194ec875abbced 100644 --- a/src/bindings/python/src/openvino/runtime/opset9/__init__.py +++ b/src/bindings/python/src/openvino/runtime/opset9/__init__.py @@ -2,4 +2,4 @@ # Copyright (C) 2018-2024 Intel Corporation # SPDX-License-Identifier: Apache-2.0 -from openvino.opset9 import * \ No newline at end of file +from openvino.opset9 import * # noqa: F403 diff --git a/src/bindings/python/src/openvino/runtime/opset_utils.py b/src/bindings/python/src/openvino/runtime/opset_utils.py index 63b926eeb08442..e1b70398e7c7be 100644 --- a/src/bindings/python/src/openvino/runtime/opset_utils.py +++ b/src/bindings/python/src/openvino/runtime/opset_utils.py @@ -2,4 +2,4 @@ # Copyright (C) 2018-2024 Intel Corporation # SPDX-License-Identifier: Apache-2.0 -from openvino.opset_utils import * \ No newline at end of file +from openvino.opset_utils import * # noqa: F403 diff --git a/src/bindings/python/src/openvino/runtime/utils/__init__.py b/src/bindings/python/src/openvino/runtime/utils/__init__.py index 2b70de0e77c3ee..73399ccbed2598 100644 --- a/src/bindings/python/src/openvino/runtime/utils/__init__.py +++ b/src/bindings/python/src/openvino/runtime/utils/__init__.py @@ -4,4 +4,4 @@ """Generic utilities. Factor related functions out to separate files.""" -from openvino._pyopenvino.util import numpy_to_c, replace_node, replace_output_update_name \ No newline at end of file +from openvino._pyopenvino.util import numpy_to_c, replace_node, replace_output_update_name diff --git a/src/bindings/python/src/openvino/runtime/utils/broadcasting.py b/src/bindings/python/src/openvino/runtime/utils/broadcasting.py index 3d2a7b21d67986..1bd786998f5af6 100644 --- a/src/bindings/python/src/openvino/runtime/utils/broadcasting.py +++ b/src/bindings/python/src/openvino/runtime/utils/broadcasting.py @@ -2,4 +2,4 @@ # Copyright (C) 2018-2024 Intel Corporation # SPDX-License-Identifier: Apache-2.0 -from openvino.utils.broadcasting import * \ No newline at end of file +from openvino.utils.broadcasting import * # noqa: F403 diff --git a/src/bindings/python/src/openvino/runtime/utils/data_helpers/data_dispatcher.py b/src/bindings/python/src/openvino/runtime/utils/data_helpers/data_dispatcher.py index f467a0deebf31c..f1176123030d26 100644 --- a/src/bindings/python/src/openvino/runtime/utils/data_helpers/data_dispatcher.py +++ b/src/bindings/python/src/openvino/runtime/utils/data_helpers/data_dispatcher.py @@ -2,4 +2,4 @@ # Copyright (C) 2018-2024 Intel Corporation # SPDX-License-Identifier: Apache-2.0 -from openvino.utils.data_dispatcher import * \ No newline at end of file +from openvino.utils.data_dispatcher import * # noqa: F403 diff --git a/src/bindings/python/src/openvino/runtime/utils/data_helpers/wrappers.py b/src/bindings/python/src/openvino/runtime/utils/data_helpers/wrappers.py index 598326a2884f6d..3060336e460642 100644 --- a/src/bindings/python/src/openvino/runtime/utils/data_helpers/wrappers.py +++ b/src/bindings/python/src/openvino/runtime/utils/data_helpers/wrappers.py @@ -2,4 +2,4 @@ # Copyright (C) 2018-2024 Intel Corporation # SPDX-License-Identifier: Apache-2.0 -from openvino.utils.wrappers import * \ No newline at end of file +from openvino.utils.wrappers import * # noqa: F403 diff --git a/src/bindings/python/src/openvino/runtime/utils/decorators.py b/src/bindings/python/src/openvino/runtime/utils/decorators.py index 914d2940e758a5..c963a7f7ab19e5 100644 --- a/src/bindings/python/src/openvino/runtime/utils/decorators.py +++ b/src/bindings/python/src/openvino/runtime/utils/decorators.py @@ -2,4 +2,4 @@ # Copyright (C) 2018-2024 Intel Corporation # SPDX-License-Identifier: Apache-2.0 -from openvino.utils.decorators import * \ No newline at end of file +from openvino.utils.decorators import * # noqa: F403 diff --git a/src/bindings/python/src/openvino/runtime/utils/input_validation.py b/src/bindings/python/src/openvino/runtime/utils/input_validation.py index 8e32ecbcd6b2e8..5bebfb265899c3 100644 --- a/src/bindings/python/src/openvino/runtime/utils/input_validation.py +++ b/src/bindings/python/src/openvino/runtime/utils/input_validation.py @@ -2,5 +2,5 @@ # Copyright (C) 2018-2024 Intel Corporation # SPDX-License-Identifier: Apache-2.0 -from openvino.utils.input_validation import * -from openvino.utils.input_validation import _check_value as _check_value \ No newline at end of file +from openvino.utils.input_validation import * # noqa: F403 +from openvino.utils.input_validation import _check_value as _check_value diff --git a/src/bindings/python/src/openvino/runtime/utils/node_factory.py b/src/bindings/python/src/openvino/runtime/utils/node_factory.py index 7704050717a520..5a4d67cbe6f645 100644 --- a/src/bindings/python/src/openvino/runtime/utils/node_factory.py +++ b/src/bindings/python/src/openvino/runtime/utils/node_factory.py @@ -2,4 +2,4 @@ # Copyright (C) 2018-2024 Intel Corporation # SPDX-License-Identifier: Apache-2.0 -from openvino.utils.node_factory import * \ No newline at end of file +from openvino.utils.node_factory import * # noqa: F403 diff --git a/src/bindings/python/src/openvino/runtime/utils/reduction.py b/src/bindings/python/src/openvino/runtime/utils/reduction.py index 2772a24dbdb106..889cad925215f0 100644 --- a/src/bindings/python/src/openvino/runtime/utils/reduction.py +++ b/src/bindings/python/src/openvino/runtime/utils/reduction.py @@ -2,4 +2,4 @@ # Copyright (C) 2018-2024 Intel Corporation # SPDX-License-Identifier: Apache-2.0 -from openvino.utils.reduction import * \ No newline at end of file +from openvino.utils.reduction import * # noqa: F403 diff --git a/src/bindings/python/src/openvino/runtime/utils/types.py b/src/bindings/python/src/openvino/runtime/utils/types.py index 12b65c4bda1e93..cb12fd0716e7fe 100644 --- a/src/bindings/python/src/openvino/runtime/utils/types.py +++ b/src/bindings/python/src/openvino/runtime/utils/types.py @@ -2,4 +2,4 @@ # Copyright (C) 2018-2024 Intel Corporation # SPDX-License-Identifier: Apache-2.0 -from openvino.utils.types import * \ No newline at end of file +from openvino.utils.types import * # noqa: F403 From 0da0df97f6e105420f9697268734dc592fa1c1c8 Mon Sep 17 00:00:00 2001 From: Alicja Miloszewska Date: Fri, 8 Nov 2024 12:02:11 +0100 Subject: [PATCH 14/38] Add empty lines Signed-off-by: Alicja Miloszewska --- src/bindings/python/src/openvino/runtime/op/__init__.py | 2 +- src/bindings/python/src/openvino/runtime/op/util/__init__.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/bindings/python/src/openvino/runtime/op/__init__.py b/src/bindings/python/src/openvino/runtime/op/__init__.py index fdcdf2f904bc64..b97618c687f6b5 100644 --- a/src/bindings/python/src/openvino/runtime/op/__init__.py +++ b/src/bindings/python/src/openvino/runtime/op/__init__.py @@ -8,4 +8,4 @@ # flake8: noqa -from openvino.op import * \ No newline at end of file +from openvino.op import * diff --git a/src/bindings/python/src/openvino/runtime/op/util/__init__.py b/src/bindings/python/src/openvino/runtime/op/util/__init__.py index e0d7b4ec13a14b..48c4066fb16771 100644 --- a/src/bindings/python/src/openvino/runtime/op/util/__init__.py +++ b/src/bindings/python/src/openvino/runtime/op/util/__init__.py @@ -8,4 +8,4 @@ # flake8: noqa -from openvino.op.util import * \ No newline at end of file +from openvino.op.util import * From 55d8038ea2d973d2ee501091160e8feb96a090f9 Mon Sep 17 00:00:00 2001 From: Alicja Miloszewska Date: Tue, 12 Nov 2024 13:55:43 +0100 Subject: [PATCH 15/38] fixes after merge Signed-off-by: Alicja Miloszewska --- .../python/src/openvino/opset1/__init__.py | 214 ++++++------- .../python/src/openvino/opset16/__init__.py | 9 + .../src/openvino/{runtime => }/opset16/ops.py | 8 +- .../python/src/openvino/opset2/__init__.py | 226 +++++++------- .../python/src/openvino/opset3/__init__.py | 258 ++++++++-------- .../python/src/openvino/opset4/__init__.py | 280 +++++++++--------- .../src/openvino/runtime/opset16/__init__.py | 5 +- 7 files changed, 503 insertions(+), 497 deletions(-) create mode 100644 src/bindings/python/src/openvino/opset16/__init__.py rename src/bindings/python/src/openvino/{runtime => }/opset16/ops.py (79%) diff --git a/src/bindings/python/src/openvino/opset1/__init__.py b/src/bindings/python/src/openvino/opset1/__init__.py index ca7e1aef385b2a..35ceec6b0d9892 100644 --- a/src/bindings/python/src/openvino/opset1/__init__.py +++ b/src/bindings/python/src/openvino/opset1/__init__.py @@ -2,110 +2,110 @@ # Copyright (C) 2018-2024 Intel Corporation # SPDX-License-Identifier: Apache-2.0 -from openvino.runtime.opset1.ops import absolute -from openvino.runtime.opset1.ops import absolute as abs -from openvino.runtime.opset1.ops import acos -from openvino.runtime.opset1.ops import add -from openvino.runtime.opset1.ops import asin -from openvino.runtime.opset1.ops import atan -from openvino.runtime.opset1.ops import avg_pool -from openvino.runtime.opset1.ops import batch_norm_inference -from openvino.runtime.opset1.ops import binary_convolution -from openvino.runtime.opset1.ops import broadcast -from openvino.runtime.opset1.ops import ceiling -from openvino.runtime.opset1.ops import ceiling as ceil -from openvino.runtime.opset1.ops import clamp -from openvino.runtime.opset1.ops import concat -from openvino.runtime.opset1.ops import constant -from openvino.runtime.opset1.ops import convert -from openvino.runtime.opset1.ops import convert_like -from openvino.runtime.opset1.ops import convolution -from openvino.runtime.opset1.ops import convolution_backprop_data -from openvino.runtime.opset1.ops import cos -from openvino.runtime.opset1.ops import cosh -from openvino.runtime.opset1.ops import ctc_greedy_decoder -from openvino.runtime.opset1.ops import deformable_convolution -from openvino.runtime.opset1.ops import deformable_psroi_pooling -from openvino.runtime.opset1.ops import depth_to_space -from openvino.runtime.opset1.ops import detection_output -from openvino.runtime.opset1.ops import divide -from openvino.runtime.opset1.ops import elu -from openvino.runtime.opset1.ops import equal -from openvino.runtime.opset1.ops import erf -from openvino.runtime.opset1.ops import exp -from openvino.runtime.opset1.ops import fake_quantize -from openvino.runtime.opset1.ops import floor -from openvino.runtime.opset1.ops import floor_mod -from openvino.runtime.opset1.ops import gather -from openvino.runtime.opset1.ops import gather_tree -from openvino.runtime.opset1.ops import greater -from openvino.runtime.opset1.ops import greater_equal -from openvino.runtime.opset1.ops import grn -from openvino.runtime.opset1.ops import group_convolution -from openvino.runtime.opset1.ops import group_convolution_backprop_data -from openvino.runtime.opset1.ops import hard_sigmoid -from openvino.runtime.opset1.ops import interpolate -from openvino.runtime.opset1.ops import less -from openvino.runtime.opset1.ops import less_equal -from openvino.runtime.opset1.ops import log -from openvino.runtime.opset1.ops import logical_and -from openvino.runtime.opset1.ops import logical_not -from openvino.runtime.opset1.ops import logical_or -from openvino.runtime.opset1.ops import logical_xor -from openvino.runtime.opset1.ops import lrn -from openvino.runtime.opset1.ops import lstm_cell -from openvino.runtime.opset1.ops import matmul -from openvino.runtime.opset1.ops import max_pool -from openvino.runtime.opset1.ops import maximum -from openvino.runtime.opset1.ops import minimum -from openvino.runtime.opset1.ops import mod -from openvino.runtime.opset1.ops import multiply -from openvino.runtime.opset1.ops import negative -from openvino.runtime.opset1.ops import non_max_suppression -from openvino.runtime.opset1.ops import normalize_l2 -from openvino.runtime.opset1.ops import not_equal -from openvino.runtime.opset1.ops import one_hot -from openvino.runtime.opset1.ops import pad -from openvino.runtime.opset1.ops import parameter -from openvino.runtime.opset1.ops import power -from openvino.runtime.opset1.ops import prelu -from openvino.runtime.opset1.ops import prior_box -from openvino.runtime.opset1.ops import prior_box_clustered -from openvino.runtime.opset1.ops import psroi_pooling -from openvino.runtime.opset1.ops import proposal -from openvino.runtime.opset1.ops import range -from openvino.runtime.opset1.ops import reduce_logical_and -from openvino.runtime.opset1.ops import reduce_logical_or -from openvino.runtime.opset1.ops import reduce_max -from openvino.runtime.opset1.ops import reduce_mean -from openvino.runtime.opset1.ops import reduce_min -from openvino.runtime.opset1.ops import reduce_prod -from openvino.runtime.opset1.ops import reduce_sum -from openvino.runtime.opset1.ops import region_yolo -from openvino.runtime.opset1.ops import relu -from openvino.runtime.opset1.ops import reshape -from openvino.runtime.opset1.ops import result -from openvino.runtime.opset1.ops import reverse_sequence -from openvino.runtime.opset1.ops import select -from openvino.runtime.opset1.ops import selu -from openvino.runtime.opset1.ops import shape_of -from openvino.runtime.opset1.ops import sigmoid -from openvino.runtime.opset1.ops import sign -from openvino.runtime.opset1.ops import sin -from openvino.runtime.opset1.ops import sinh -from openvino.runtime.opset1.ops import softmax -from openvino.runtime.opset1.ops import space_to_depth -from openvino.runtime.opset1.ops import split -from openvino.runtime.opset1.ops import sqrt -from openvino.runtime.opset1.ops import squared_difference -from openvino.runtime.opset1.ops import squeeze -from openvino.runtime.opset1.ops import strided_slice -from openvino.runtime.opset1.ops import subtract -from openvino.runtime.opset1.ops import tan -from openvino.runtime.opset1.ops import tanh -from openvino.runtime.opset1.ops import tensor_iterator -from openvino.runtime.opset1.ops import tile -from openvino.runtime.opset1.ops import topk -from openvino.runtime.opset1.ops import transpose -from openvino.runtime.opset1.ops import unsqueeze -from openvino.runtime.opset1.ops import variadic_split +from openvino.opset1.ops import absolute +from openvino.opset1.ops import absolute as abs +from openvino.opset1.ops import acos +from openvino.opset1.ops import add +from openvino.opset1.ops import asin +from openvino.opset1.ops import atan +from openvino.opset1.ops import avg_pool +from openvino.opset1.ops import batch_norm_inference +from openvino.opset1.ops import binary_convolution +from openvino.opset1.ops import broadcast +from openvino.opset1.ops import ceiling +from openvino.opset1.ops import ceiling as ceil +from openvino.opset1.ops import clamp +from openvino.opset1.ops import concat +from openvino.opset1.ops import constant +from openvino.opset1.ops import convert +from openvino.opset1.ops import convert_like +from openvino.opset1.ops import convolution +from openvino.opset1.ops import convolution_backprop_data +from openvino.opset1.ops import cos +from openvino.opset1.ops import cosh +from openvino.opset1.ops import ctc_greedy_decoder +from openvino.opset1.ops import deformable_convolution +from openvino.opset1.ops import deformable_psroi_pooling +from openvino.opset1.ops import depth_to_space +from openvino.opset1.ops import detection_output +from openvino.opset1.ops import divide +from openvino.opset1.ops import elu +from openvino.opset1.ops import equal +from openvino.opset1.ops import erf +from openvino.opset1.ops import exp +from openvino.opset1.ops import fake_quantize +from openvino.opset1.ops import floor +from openvino.opset1.ops import floor_mod +from openvino.opset1.ops import gather +from openvino.opset1.ops import gather_tree +from openvino.opset1.ops import greater +from openvino.opset1.ops import greater_equal +from openvino.opset1.ops import grn +from openvino.opset1.ops import group_convolution +from openvino.opset1.ops import group_convolution_backprop_data +from openvino.opset1.ops import hard_sigmoid +from openvino.opset1.ops import interpolate +from openvino.opset1.ops import less +from openvino.opset1.ops import less_equal +from openvino.opset1.ops import log +from openvino.opset1.ops import logical_and +from openvino.opset1.ops import logical_not +from openvino.opset1.ops import logical_or +from openvino.opset1.ops import logical_xor +from openvino.opset1.ops import lrn +from openvino.opset1.ops import lstm_cell +from openvino.opset1.ops import matmul +from openvino.opset1.ops import max_pool +from openvino.opset1.ops import maximum +from openvino.opset1.ops import minimum +from openvino.opset1.ops import mod +from openvino.opset1.ops import multiply +from openvino.opset1.ops import negative +from openvino.opset1.ops import non_max_suppression +from openvino.opset1.ops import normalize_l2 +from openvino.opset1.ops import not_equal +from openvino.opset1.ops import one_hot +from openvino.opset1.ops import pad +from openvino.opset1.ops import parameter +from openvino.opset1.ops import power +from openvino.opset1.ops import prelu +from openvino.opset1.ops import prior_box +from openvino.opset1.ops import prior_box_clustered +from openvino.opset1.ops import psroi_pooling +from openvino.opset1.ops import proposal +from openvino.opset1.ops import range +from openvino.opset1.ops import reduce_logical_and +from openvino.opset1.ops import reduce_logical_or +from openvino.opset1.ops import reduce_max +from openvino.opset1.ops import reduce_mean +from openvino.opset1.ops import reduce_min +from openvino.opset1.ops import reduce_prod +from openvino.opset1.ops import reduce_sum +from openvino.opset1.ops import region_yolo +from openvino.opset1.ops import relu +from openvino.opset1.ops import reshape +from openvino.opset1.ops import result +from openvino.opset1.ops import reverse_sequence +from openvino.opset1.ops import select +from openvino.opset1.ops import selu +from openvino.opset1.ops import shape_of +from openvino.opset1.ops import sigmoid +from openvino.opset1.ops import sign +from openvino.opset1.ops import sin +from openvino.opset1.ops import sinh +from openvino.opset1.ops import softmax +from openvino.opset1.ops import space_to_depth +from openvino.opset1.ops import split +from openvino.opset1.ops import sqrt +from openvino.opset1.ops import squared_difference +from openvino.opset1.ops import squeeze +from openvino.opset1.ops import strided_slice +from openvino.opset1.ops import subtract +from openvino.opset1.ops import tan +from openvino.opset1.ops import tanh +from openvino.opset1.ops import tensor_iterator +from openvino.opset1.ops import tile +from openvino.opset1.ops import topk +from openvino.opset1.ops import transpose +from openvino.opset1.ops import unsqueeze +from openvino.opset1.ops import variadic_split diff --git a/src/bindings/python/src/openvino/opset16/__init__.py b/src/bindings/python/src/openvino/opset16/__init__.py new file mode 100644 index 00000000000000..06fa9d2e7d0070 --- /dev/null +++ b/src/bindings/python/src/openvino/opset16/__init__.py @@ -0,0 +1,9 @@ +# -*- coding: utf-8 -*- +# Copyright (C) 2018-2024 Intel Corporation +# SPDX-License-Identifier: Apache-2.0 + +# New operations added in Opset16 +from openvino.opset16.ops import identity + +# Operators from previous opsets +# TODO (ticket: 156877): Add previous opset operators at the end of opset16 development diff --git a/src/bindings/python/src/openvino/runtime/opset16/ops.py b/src/bindings/python/src/openvino/opset16/ops.py similarity index 79% rename from src/bindings/python/src/openvino/runtime/opset16/ops.py rename to src/bindings/python/src/openvino/opset16/ops.py index 60656f6d993b6a..b91dec1ebc9f44 100644 --- a/src/bindings/python/src/openvino/runtime/opset16/ops.py +++ b/src/bindings/python/src/openvino/opset16/ops.py @@ -6,10 +6,10 @@ from functools import partial from typing import Optional -from openvino.runtime import Node -from openvino.runtime.utils.decorators import nameable_op -from openvino.runtime.opset_utils import _get_node_factory -from openvino.runtime.utils.types import NodeInput, as_nodes +from openvino import Node +from openvino.utils.decorators import nameable_op +from openvino.opset_utils import _get_node_factory +from openvino.utils.types import NodeInput, as_nodes _get_node_factory_opset16 = partial(_get_node_factory, "opset16") diff --git a/src/bindings/python/src/openvino/opset2/__init__.py b/src/bindings/python/src/openvino/opset2/__init__.py index 6624149e157e9e..1306c89b5241d8 100644 --- a/src/bindings/python/src/openvino/opset2/__init__.py +++ b/src/bindings/python/src/openvino/opset2/__init__.py @@ -2,116 +2,116 @@ # Copyright (C) 2018-2024 Intel Corporation # SPDX-License-Identifier: Apache-2.0 -from openvino.runtime.opset1.ops import absolute -from openvino.runtime.opset1.ops import absolute as abs -from openvino.runtime.opset1.ops import acos -from openvino.runtime.opset1.ops import add -from openvino.runtime.opset1.ops import asin -from openvino.runtime.opset1.ops import atan -from openvino.runtime.opset1.ops import avg_pool -from openvino.runtime.opset1.ops import batch_norm_inference -from openvino.runtime.opset2.ops import batch_to_space -from openvino.runtime.opset1.ops import binary_convolution -from openvino.runtime.opset1.ops import broadcast -from openvino.runtime.opset1.ops import ceiling -from openvino.runtime.opset1.ops import ceiling as ceil -from openvino.runtime.opset1.ops import clamp -from openvino.runtime.opset1.ops import concat -from openvino.runtime.opset1.ops import constant -from openvino.runtime.opset1.ops import convert -from openvino.runtime.opset1.ops import convert_like -from openvino.runtime.opset1.ops import convolution -from openvino.runtime.opset1.ops import convolution_backprop_data -from openvino.runtime.opset1.ops import cos -from openvino.runtime.opset1.ops import cosh -from openvino.runtime.opset1.ops import ctc_greedy_decoder -from openvino.runtime.opset1.ops import deformable_convolution -from openvino.runtime.opset1.ops import deformable_psroi_pooling -from openvino.runtime.opset1.ops import depth_to_space -from openvino.runtime.opset1.ops import detection_output -from openvino.runtime.opset1.ops import divide -from openvino.runtime.opset1.ops import elu -from openvino.runtime.opset1.ops import equal -from openvino.runtime.opset1.ops import erf -from openvino.runtime.opset1.ops import exp -from openvino.runtime.opset1.ops import fake_quantize -from openvino.runtime.opset1.ops import floor -from openvino.runtime.opset1.ops import floor_mod -from openvino.runtime.opset1.ops import gather -from openvino.runtime.opset1.ops import gather_tree -from openvino.runtime.opset2.ops import gelu -from openvino.runtime.opset1.ops import greater -from openvino.runtime.opset1.ops import greater_equal -from openvino.runtime.opset1.ops import grn -from openvino.runtime.opset1.ops import group_convolution -from openvino.runtime.opset1.ops import group_convolution_backprop_data -from openvino.runtime.opset1.ops import hard_sigmoid -from openvino.runtime.opset1.ops import interpolate -from openvino.runtime.opset1.ops import less -from openvino.runtime.opset1.ops import less_equal -from openvino.runtime.opset1.ops import log -from openvino.runtime.opset1.ops import logical_and -from openvino.runtime.opset1.ops import logical_not -from openvino.runtime.opset1.ops import logical_or -from openvino.runtime.opset1.ops import logical_xor -from openvino.runtime.opset1.ops import lrn -from openvino.runtime.opset1.ops import lstm_cell -from openvino.runtime.opset1.ops import matmul -from openvino.runtime.opset1.ops import max_pool -from openvino.runtime.opset1.ops import maximum -from openvino.runtime.opset1.ops import minimum -from openvino.runtime.opset1.ops import mod -from openvino.runtime.opset1.ops import multiply -from openvino.runtime.opset2.ops import mvn -from openvino.runtime.opset1.ops import negative -from openvino.runtime.opset1.ops import non_max_suppression -from openvino.runtime.opset1.ops import normalize_l2 -from openvino.runtime.opset1.ops import not_equal -from openvino.runtime.opset1.ops import one_hot -from openvino.runtime.opset1.ops import pad -from openvino.runtime.opset1.ops import parameter -from openvino.runtime.opset1.ops import power -from openvino.runtime.opset1.ops import prelu -from openvino.runtime.opset1.ops import prior_box -from openvino.runtime.opset1.ops import prior_box_clustered -from openvino.runtime.opset1.ops import psroi_pooling -from openvino.runtime.opset1.ops import proposal -from openvino.runtime.opset1.ops import range -from openvino.runtime.opset1.ops import reduce_logical_and -from openvino.runtime.opset1.ops import reduce_logical_or -from openvino.runtime.opset1.ops import reduce_max -from openvino.runtime.opset1.ops import reduce_mean -from openvino.runtime.opset1.ops import reduce_min -from openvino.runtime.opset1.ops import reduce_prod -from openvino.runtime.opset1.ops import reduce_sum -from openvino.runtime.opset1.ops import region_yolo -from openvino.runtime.opset2.ops import reorg_yolo -from openvino.runtime.opset1.ops import relu -from openvino.runtime.opset1.ops import reshape -from openvino.runtime.opset1.ops import result -from openvino.runtime.opset1.ops import reverse_sequence -from openvino.runtime.opset2.ops import roi_pooling -from openvino.runtime.opset1.ops import select -from openvino.runtime.opset1.ops import selu -from openvino.runtime.opset1.ops import shape_of -from openvino.runtime.opset1.ops import sigmoid -from openvino.runtime.opset1.ops import sign -from openvino.runtime.opset1.ops import sin -from openvino.runtime.opset1.ops import sinh -from openvino.runtime.opset1.ops import softmax -from openvino.runtime.opset2.ops import space_to_batch -from openvino.runtime.opset1.ops import space_to_depth -from openvino.runtime.opset1.ops import split -from openvino.runtime.opset1.ops import sqrt -from openvino.runtime.opset1.ops import squared_difference -from openvino.runtime.opset1.ops import squeeze -from openvino.runtime.opset1.ops import strided_slice -from openvino.runtime.opset1.ops import subtract -from openvino.runtime.opset1.ops import tan -from openvino.runtime.opset1.ops import tanh -from openvino.runtime.opset1.ops import tensor_iterator -from openvino.runtime.opset1.ops import tile -from openvino.runtime.opset1.ops import topk -from openvino.runtime.opset1.ops import transpose -from openvino.runtime.opset1.ops import unsqueeze -from openvino.runtime.opset1.ops import variadic_split +from openvino.opset1.ops import absolute +from openvino.opset1.ops import absolute as abs +from openvino.opset1.ops import acos +from openvino.opset1.ops import add +from openvino.opset1.ops import asin +from openvino.opset1.ops import atan +from openvino.opset1.ops import avg_pool +from openvino.opset1.ops import batch_norm_inference +from openvino.opset2.ops import batch_to_space +from openvino.opset1.ops import binary_convolution +from openvino.opset1.ops import broadcast +from openvino.opset1.ops import ceiling +from openvino.opset1.ops import ceiling as ceil +from openvino.opset1.ops import clamp +from openvino.opset1.ops import concat +from openvino.opset1.ops import constant +from openvino.opset1.ops import convert +from openvino.opset1.ops import convert_like +from openvino.opset1.ops import convolution +from openvino.opset1.ops import convolution_backprop_data +from openvino.opset1.ops import cos +from openvino.opset1.ops import cosh +from openvino.opset1.ops import ctc_greedy_decoder +from openvino.opset1.ops import deformable_convolution +from openvino.opset1.ops import deformable_psroi_pooling +from openvino.opset1.ops import depth_to_space +from openvino.opset1.ops import detection_output +from openvino.opset1.ops import divide +from openvino.opset1.ops import elu +from openvino.opset1.ops import equal +from openvino.opset1.ops import erf +from openvino.opset1.ops import exp +from openvino.opset1.ops import fake_quantize +from openvino.opset1.ops import floor +from openvino.opset1.ops import floor_mod +from openvino.opset1.ops import gather +from openvino.opset1.ops import gather_tree +from openvino.opset2.ops import gelu +from openvino.opset1.ops import greater +from openvino.opset1.ops import greater_equal +from openvino.opset1.ops import grn +from openvino.opset1.ops import group_convolution +from openvino.opset1.ops import group_convolution_backprop_data +from openvino.opset1.ops import hard_sigmoid +from openvino.opset1.ops import interpolate +from openvino.opset1.ops import less +from openvino.opset1.ops import less_equal +from openvino.opset1.ops import log +from openvino.opset1.ops import logical_and +from openvino.opset1.ops import logical_not +from openvino.opset1.ops import logical_or +from openvino.opset1.ops import logical_xor +from openvino.opset1.ops import lrn +from openvino.opset1.ops import lstm_cell +from openvino.opset1.ops import matmul +from openvino.opset1.ops import max_pool +from openvino.opset1.ops import maximum +from openvino.opset1.ops import minimum +from openvino.opset1.ops import mod +from openvino.opset1.ops import multiply +from openvino.opset2.ops import mvn +from openvino.opset1.ops import negative +from openvino.opset1.ops import non_max_suppression +from openvino.opset1.ops import normalize_l2 +from openvino.opset1.ops import not_equal +from openvino.opset1.ops import one_hot +from openvino.opset1.ops import pad +from openvino.opset1.ops import parameter +from openvino.opset1.ops import power +from openvino.opset1.ops import prelu +from openvino.opset1.ops import prior_box +from openvino.opset1.ops import prior_box_clustered +from openvino.opset1.ops import psroi_pooling +from openvino.opset1.ops import proposal +from openvino.opset1.ops import range +from openvino.opset1.ops import reduce_logical_and +from openvino.opset1.ops import reduce_logical_or +from openvino.opset1.ops import reduce_max +from openvino.opset1.ops import reduce_mean +from openvino.opset1.ops import reduce_min +from openvino.opset1.ops import reduce_prod +from openvino.opset1.ops import reduce_sum +from openvino.opset1.ops import region_yolo +from openvino.opset2.ops import reorg_yolo +from openvino.opset1.ops import relu +from openvino.opset1.ops import reshape +from openvino.opset1.ops import result +from openvino.opset1.ops import reverse_sequence +from openvino.opset2.ops import roi_pooling +from openvino.opset1.ops import select +from openvino.opset1.ops import selu +from openvino.opset1.ops import shape_of +from openvino.opset1.ops import sigmoid +from openvino.opset1.ops import sign +from openvino.opset1.ops import sin +from openvino.opset1.ops import sinh +from openvino.opset1.ops import softmax +from openvino.opset2.ops import space_to_batch +from openvino.opset1.ops import space_to_depth +from openvino.opset1.ops import split +from openvino.opset1.ops import sqrt +from openvino.opset1.ops import squared_difference +from openvino.opset1.ops import squeeze +from openvino.opset1.ops import strided_slice +from openvino.opset1.ops import subtract +from openvino.opset1.ops import tan +from openvino.opset1.ops import tanh +from openvino.opset1.ops import tensor_iterator +from openvino.opset1.ops import tile +from openvino.opset1.ops import topk +from openvino.opset1.ops import transpose +from openvino.opset1.ops import unsqueeze +from openvino.opset1.ops import variadic_split diff --git a/src/bindings/python/src/openvino/opset3/__init__.py b/src/bindings/python/src/openvino/opset3/__init__.py index 5bd68912cae807..3a0baa675114f1 100644 --- a/src/bindings/python/src/openvino/opset3/__init__.py +++ b/src/bindings/python/src/openvino/opset3/__init__.py @@ -2,132 +2,132 @@ # Copyright (C) 2018-2024 Intel Corporation # SPDX-License-Identifier: Apache-2.0 -from openvino.runtime.opset1.ops import absolute -from openvino.runtime.opset1.ops import absolute as abs -from openvino.runtime.opset1.ops import acos -from openvino.runtime.opset1.ops import add -from openvino.runtime.opset1.ops import asin -from openvino.runtime.opset3.ops import assign -from openvino.runtime.opset1.ops import atan -from openvino.runtime.opset1.ops import avg_pool -from openvino.runtime.opset1.ops import batch_norm_inference -from openvino.runtime.opset2.ops import batch_to_space -from openvino.runtime.opset1.ops import binary_convolution -from openvino.runtime.opset3.ops import broadcast -from openvino.runtime.opset3.ops import bucketize -from openvino.runtime.opset1.ops import ceiling -from openvino.runtime.opset1.ops import ceiling as ceil -from openvino.runtime.opset1.ops import clamp -from openvino.runtime.opset1.ops import concat -from openvino.runtime.opset1.ops import constant -from openvino.runtime.opset1.ops import convert -from openvino.runtime.opset1.ops import convert_like -from openvino.runtime.opset1.ops import convolution -from openvino.runtime.opset1.ops import convolution_backprop_data -from openvino.runtime.opset1.ops import cos -from openvino.runtime.opset1.ops import cosh -from openvino.runtime.opset1.ops import ctc_greedy_decoder -from openvino.runtime.opset3.ops import cum_sum -from openvino.runtime.opset3.ops import cum_sum as cumsum -from openvino.runtime.opset1.ops import deformable_convolution -from openvino.runtime.opset1.ops import deformable_psroi_pooling -from openvino.runtime.opset1.ops import depth_to_space -from openvino.runtime.opset1.ops import detection_output -from openvino.runtime.opset1.ops import divide -from openvino.runtime.opset1.ops import elu -from openvino.runtime.opset3.ops import embedding_bag_offsets_sum -from openvino.runtime.opset3.ops import embedding_bag_packed_sum -from openvino.runtime.opset3.ops import embedding_segments_sum -from openvino.runtime.opset3.ops import extract_image_patches -from openvino.runtime.opset1.ops import equal -from openvino.runtime.opset1.ops import erf -from openvino.runtime.opset1.ops import exp -from openvino.runtime.opset1.ops import fake_quantize -from openvino.runtime.opset1.ops import floor -from openvino.runtime.opset1.ops import floor_mod -from openvino.runtime.opset1.ops import gather -from openvino.runtime.opset1.ops import gather_tree -from openvino.runtime.opset2.ops import gelu -from openvino.runtime.opset1.ops import greater -from openvino.runtime.opset1.ops import greater_equal -from openvino.runtime.opset1.ops import grn -from openvino.runtime.opset1.ops import group_convolution -from openvino.runtime.opset1.ops import group_convolution_backprop_data -from openvino.runtime.opset3.ops import gru_cell -from openvino.runtime.opset1.ops import hard_sigmoid -from openvino.runtime.opset1.ops import interpolate -from openvino.runtime.opset1.ops import less -from openvino.runtime.opset1.ops import less_equal -from openvino.runtime.opset1.ops import log -from openvino.runtime.opset1.ops import logical_and -from openvino.runtime.opset1.ops import logical_not -from openvino.runtime.opset1.ops import logical_or -from openvino.runtime.opset1.ops import logical_xor -from openvino.runtime.opset1.ops import lrn -from openvino.runtime.opset1.ops import lstm_cell -from openvino.runtime.opset1.ops import matmul -from openvino.runtime.opset1.ops import max_pool -from openvino.runtime.opset1.ops import maximum -from openvino.runtime.opset1.ops import minimum -from openvino.runtime.opset1.ops import mod -from openvino.runtime.opset1.ops import multiply -from openvino.runtime.opset2.ops import mvn -from openvino.runtime.opset1.ops import negative -from openvino.runtime.opset3.ops import non_max_suppression -from openvino.runtime.opset3.ops import non_zero -from openvino.runtime.opset1.ops import normalize_l2 -from openvino.runtime.opset1.ops import not_equal -from openvino.runtime.opset1.ops import one_hot -from openvino.runtime.opset1.ops import pad -from openvino.runtime.opset1.ops import parameter -from openvino.runtime.opset1.ops import power -from openvino.runtime.opset1.ops import prelu -from openvino.runtime.opset1.ops import prior_box -from openvino.runtime.opset1.ops import prior_box_clustered -from openvino.runtime.opset1.ops import psroi_pooling -from openvino.runtime.opset1.ops import proposal -from openvino.runtime.opset1.ops import range -from openvino.runtime.opset3.ops import read_value -from openvino.runtime.opset1.ops import reduce_logical_and -from openvino.runtime.opset1.ops import reduce_logical_or -from openvino.runtime.opset1.ops import reduce_max -from openvino.runtime.opset1.ops import reduce_mean -from openvino.runtime.opset1.ops import reduce_min -from openvino.runtime.opset1.ops import reduce_prod -from openvino.runtime.opset1.ops import reduce_sum -from openvino.runtime.opset1.ops import region_yolo -from openvino.runtime.opset2.ops import reorg_yolo -from openvino.runtime.opset1.ops import relu -from openvino.runtime.opset1.ops import reshape -from openvino.runtime.opset1.ops import result -from openvino.runtime.opset1.ops import reverse_sequence -from openvino.runtime.opset3.ops import rnn_cell -from openvino.runtime.opset3.ops import roi_align -from openvino.runtime.opset2.ops import roi_pooling -from openvino.runtime.opset3.ops import scatter_elements_update -from openvino.runtime.opset3.ops import scatter_update -from openvino.runtime.opset1.ops import select -from openvino.runtime.opset1.ops import selu -from openvino.runtime.opset3.ops import shape_of -from openvino.runtime.opset3.ops import shuffle_channels -from openvino.runtime.opset1.ops import sigmoid -from openvino.runtime.opset1.ops import sign -from openvino.runtime.opset1.ops import sin -from openvino.runtime.opset1.ops import sinh -from openvino.runtime.opset1.ops import softmax -from openvino.runtime.opset2.ops import space_to_batch -from openvino.runtime.opset1.ops import space_to_depth -from openvino.runtime.opset1.ops import split -from openvino.runtime.opset1.ops import sqrt -from openvino.runtime.opset1.ops import squared_difference -from openvino.runtime.opset1.ops import squeeze -from openvino.runtime.opset1.ops import strided_slice -from openvino.runtime.opset1.ops import subtract -from openvino.runtime.opset1.ops import tan -from openvino.runtime.opset1.ops import tanh -from openvino.runtime.opset1.ops import tensor_iterator -from openvino.runtime.opset1.ops import tile -from openvino.runtime.opset3.ops import topk -from openvino.runtime.opset1.ops import transpose -from openvino.runtime.opset1.ops import unsqueeze -from openvino.runtime.opset1.ops import variadic_split +from openvino.opset1.ops import absolute +from openvino.opset1.ops import absolute as abs +from openvino.opset1.ops import acos +from openvino.opset1.ops import add +from openvino.opset1.ops import asin +from openvino.opset3.ops import assign +from openvino.opset1.ops import atan +from openvino.opset1.ops import avg_pool +from openvino.opset1.ops import batch_norm_inference +from openvino.opset2.ops import batch_to_space +from openvino.opset1.ops import binary_convolution +from openvino.opset3.ops import broadcast +from openvino.opset3.ops import bucketize +from openvino.opset1.ops import ceiling +from openvino.opset1.ops import ceiling as ceil +from openvino.opset1.ops import clamp +from openvino.opset1.ops import concat +from openvino.opset1.ops import constant +from openvino.opset1.ops import convert +from openvino.opset1.ops import convert_like +from openvino.opset1.ops import convolution +from openvino.opset1.ops import convolution_backprop_data +from openvino.opset1.ops import cos +from openvino.opset1.ops import cosh +from openvino.opset1.ops import ctc_greedy_decoder +from openvino.opset3.ops import cum_sum +from openvino.opset3.ops import cum_sum as cumsum +from openvino.opset1.ops import deformable_convolution +from openvino.opset1.ops import deformable_psroi_pooling +from openvino.opset1.ops import depth_to_space +from openvino.opset1.ops import detection_output +from openvino.opset1.ops import divide +from openvino.opset1.ops import elu +from openvino.opset3.ops import embedding_bag_offsets_sum +from openvino.opset3.ops import embedding_bag_packed_sum +from openvino.opset3.ops import embedding_segments_sum +from openvino.opset3.ops import extract_image_patches +from openvino.opset1.ops import equal +from openvino.opset1.ops import erf +from openvino.opset1.ops import exp +from openvino.opset1.ops import fake_quantize +from openvino.opset1.ops import floor +from openvino.opset1.ops import floor_mod +from openvino.opset1.ops import gather +from openvino.opset1.ops import gather_tree +from openvino.opset2.ops import gelu +from openvino.opset1.ops import greater +from openvino.opset1.ops import greater_equal +from openvino.opset1.ops import grn +from openvino.opset1.ops import group_convolution +from openvino.opset1.ops import group_convolution_backprop_data +from openvino.opset3.ops import gru_cell +from openvino.opset1.ops import hard_sigmoid +from openvino.opset1.ops import interpolate +from openvino.opset1.ops import less +from openvino.opset1.ops import less_equal +from openvino.opset1.ops import log +from openvino.opset1.ops import logical_and +from openvino.opset1.ops import logical_not +from openvino.opset1.ops import logical_or +from openvino.opset1.ops import logical_xor +from openvino.opset1.ops import lrn +from openvino.opset1.ops import lstm_cell +from openvino.opset1.ops import matmul +from openvino.opset1.ops import max_pool +from openvino.opset1.ops import maximum +from openvino.opset1.ops import minimum +from openvino.opset1.ops import mod +from openvino.opset1.ops import multiply +from openvino.opset2.ops import mvn +from openvino.opset1.ops import negative +from openvino.opset3.ops import non_max_suppression +from openvino.opset3.ops import non_zero +from openvino.opset1.ops import normalize_l2 +from openvino.opset1.ops import not_equal +from openvino.opset1.ops import one_hot +from openvino.opset1.ops import pad +from openvino.opset1.ops import parameter +from openvino.opset1.ops import power +from openvino.opset1.ops import prelu +from openvino.opset1.ops import prior_box +from openvino.opset1.ops import prior_box_clustered +from openvino.opset1.ops import psroi_pooling +from openvino.opset1.ops import proposal +from openvino.opset1.ops import range +from openvino.opset3.ops import read_value +from openvino.opset1.ops import reduce_logical_and +from openvino.opset1.ops import reduce_logical_or +from openvino.opset1.ops import reduce_max +from openvino.opset1.ops import reduce_mean +from openvino.opset1.ops import reduce_min +from openvino.opset1.ops import reduce_prod +from openvino.opset1.ops import reduce_sum +from openvino.opset1.ops import region_yolo +from openvino.opset2.ops import reorg_yolo +from openvino.opset1.ops import relu +from openvino.opset1.ops import reshape +from openvino.opset1.ops import result +from openvino.opset1.ops import reverse_sequence +from openvino.opset3.ops import rnn_cell +from openvino.opset3.ops import roi_align +from openvino.opset2.ops import roi_pooling +from openvino.opset3.ops import scatter_elements_update +from openvino.opset3.ops import scatter_update +from openvino.opset1.ops import select +from openvino.opset1.ops import selu +from openvino.opset3.ops import shape_of +from openvino.opset3.ops import shuffle_channels +from openvino.opset1.ops import sigmoid +from openvino.opset1.ops import sign +from openvino.opset1.ops import sin +from openvino.opset1.ops import sinh +from openvino.opset1.ops import softmax +from openvino.opset2.ops import space_to_batch +from openvino.opset1.ops import space_to_depth +from openvino.opset1.ops import split +from openvino.opset1.ops import sqrt +from openvino.opset1.ops import squared_difference +from openvino.opset1.ops import squeeze +from openvino.opset1.ops import strided_slice +from openvino.opset1.ops import subtract +from openvino.opset1.ops import tan +from openvino.opset1.ops import tanh +from openvino.opset1.ops import tensor_iterator +from openvino.opset1.ops import tile +from openvino.opset3.ops import topk +from openvino.opset1.ops import transpose +from openvino.opset1.ops import unsqueeze +from openvino.opset1.ops import variadic_split diff --git a/src/bindings/python/src/openvino/opset4/__init__.py b/src/bindings/python/src/openvino/opset4/__init__.py index e7cef8eb216d17..6096ec431c796e 100644 --- a/src/bindings/python/src/openvino/opset4/__init__.py +++ b/src/bindings/python/src/openvino/opset4/__init__.py @@ -2,143 +2,143 @@ # Copyright (C) 2018-2024 Intel Corporation # SPDX-License-Identifier: Apache-2.0 -from openvino.runtime.opset1.ops import absolute -from openvino.runtime.opset1.ops import absolute as abs -from openvino.runtime.opset1.ops import acos -from openvino.runtime.opset4.ops import acosh -from openvino.runtime.opset1.ops import add -from openvino.runtime.opset1.ops import asin -from openvino.runtime.opset4.ops import asinh -from openvino.runtime.opset3.ops import assign -from openvino.runtime.opset1.ops import atan -from openvino.runtime.opset4.ops import atanh -from openvino.runtime.opset1.ops import avg_pool -from openvino.runtime.opset1.ops import batch_norm_inference -from openvino.runtime.opset2.ops import batch_to_space -from openvino.runtime.opset1.ops import binary_convolution -from openvino.runtime.opset3.ops import broadcast -from openvino.runtime.opset3.ops import bucketize -from openvino.runtime.opset1.ops import ceiling -from openvino.runtime.opset1.ops import ceiling as ceil -from openvino.runtime.opset1.ops import clamp -from openvino.runtime.opset1.ops import concat -from openvino.runtime.opset1.ops import constant -from openvino.runtime.opset1.ops import convert -from openvino.runtime.opset1.ops import convert_like -from openvino.runtime.opset1.ops import convolution -from openvino.runtime.opset1.ops import convolution_backprop_data -from openvino.runtime.opset1.ops import cos -from openvino.runtime.opset1.ops import cosh -from openvino.runtime.opset1.ops import ctc_greedy_decoder -from openvino.runtime.opset4.ops import ctc_loss -from openvino.runtime.opset3.ops import cum_sum -from openvino.runtime.opset3.ops import cum_sum as cumsum -from openvino.runtime.opset1.ops import deformable_convolution -from openvino.runtime.opset1.ops import deformable_psroi_pooling -from openvino.runtime.opset1.ops import depth_to_space -from openvino.runtime.opset1.ops import detection_output -from openvino.runtime.opset1.ops import divide -from openvino.runtime.opset1.ops import elu -from openvino.runtime.opset3.ops import embedding_bag_offsets_sum -from openvino.runtime.opset3.ops import embedding_bag_packed_sum -from openvino.runtime.opset3.ops import embedding_segments_sum -from openvino.runtime.opset3.ops import extract_image_patches -from openvino.runtime.opset1.ops import equal -from openvino.runtime.opset1.ops import erf -from openvino.runtime.opset1.ops import exp -from openvino.runtime.opset1.ops import fake_quantize -from openvino.runtime.opset1.ops import floor -from openvino.runtime.opset1.ops import floor_mod -from openvino.runtime.opset1.ops import gather -from openvino.runtime.opset1.ops import gather_tree -from openvino.runtime.opset2.ops import gelu -from openvino.runtime.opset1.ops import greater -from openvino.runtime.opset1.ops import greater_equal -from openvino.runtime.opset1.ops import grn -from openvino.runtime.opset1.ops import group_convolution -from openvino.runtime.opset1.ops import group_convolution_backprop_data -from openvino.runtime.opset3.ops import gru_cell -from openvino.runtime.opset1.ops import hard_sigmoid -from openvino.runtime.opset4.ops import hswish -from openvino.runtime.opset1.ops import interpolate -from openvino.runtime.opset1.ops import less -from openvino.runtime.opset1.ops import less_equal -from openvino.runtime.opset1.ops import log -from openvino.runtime.opset1.ops import logical_and -from openvino.runtime.opset1.ops import logical_not -from openvino.runtime.opset1.ops import logical_or -from openvino.runtime.opset1.ops import logical_xor -from openvino.runtime.opset1.ops import lrn -from openvino.runtime.opset4.ops import lstm_cell -from openvino.runtime.opset1.ops import matmul -from openvino.runtime.opset1.ops import max_pool -from openvino.runtime.opset1.ops import maximum -from openvino.runtime.opset1.ops import minimum -from openvino.runtime.opset4.ops import mish -from openvino.runtime.opset1.ops import mod -from openvino.runtime.opset1.ops import multiply -from openvino.runtime.opset2.ops import mvn -from openvino.runtime.opset1.ops import negative -from openvino.runtime.opset4.ops import non_max_suppression -from openvino.runtime.opset3.ops import non_zero -from openvino.runtime.opset1.ops import normalize_l2 -from openvino.runtime.opset1.ops import not_equal -from openvino.runtime.opset1.ops import one_hot -from openvino.runtime.opset1.ops import pad -from openvino.runtime.opset1.ops import parameter -from openvino.runtime.opset1.ops import power -from openvino.runtime.opset1.ops import prelu -from openvino.runtime.opset1.ops import prior_box -from openvino.runtime.opset1.ops import prior_box_clustered -from openvino.runtime.opset1.ops import psroi_pooling -from openvino.runtime.opset4.ops import proposal -from openvino.runtime.opset1.ops import range -from openvino.runtime.opset3.ops import read_value -from openvino.runtime.opset4.ops import reduce_l1 -from openvino.runtime.opset4.ops import reduce_l2 -from openvino.runtime.opset1.ops import reduce_logical_and -from openvino.runtime.opset1.ops import reduce_logical_or -from openvino.runtime.opset1.ops import reduce_max -from openvino.runtime.opset1.ops import reduce_mean -from openvino.runtime.opset1.ops import reduce_min -from openvino.runtime.opset1.ops import reduce_prod -from openvino.runtime.opset1.ops import reduce_sum -from openvino.runtime.opset1.ops import region_yolo -from openvino.runtime.opset2.ops import reorg_yolo -from openvino.runtime.opset1.ops import relu -from openvino.runtime.opset1.ops import reshape -from openvino.runtime.opset1.ops import result -from openvino.runtime.opset1.ops import reverse_sequence -from openvino.runtime.opset3.ops import rnn_cell -from openvino.runtime.opset3.ops import roi_align -from openvino.runtime.opset2.ops import roi_pooling -from openvino.runtime.opset3.ops import scatter_elements_update -from openvino.runtime.opset4.ops import scatter_nd_update -from openvino.runtime.opset3.ops import scatter_update -from openvino.runtime.opset1.ops import select -from openvino.runtime.opset1.ops import selu -from openvino.runtime.opset3.ops import shape_of -from openvino.runtime.opset3.ops import shuffle_channels -from openvino.runtime.opset1.ops import sigmoid -from openvino.runtime.opset1.ops import sign -from openvino.runtime.opset1.ops import sin -from openvino.runtime.opset1.ops import sinh -from openvino.runtime.opset1.ops import softmax -from openvino.runtime.opset4.ops import softplus -from openvino.runtime.opset2.ops import space_to_batch -from openvino.runtime.opset1.ops import space_to_depth -from openvino.runtime.opset1.ops import split -from openvino.runtime.opset1.ops import sqrt -from openvino.runtime.opset1.ops import squared_difference -from openvino.runtime.opset1.ops import squeeze -from openvino.runtime.opset1.ops import strided_slice -from openvino.runtime.opset1.ops import subtract -from openvino.runtime.opset4.ops import swish -from openvino.runtime.opset1.ops import tan -from openvino.runtime.opset1.ops import tanh -from openvino.runtime.opset1.ops import tensor_iterator -from openvino.runtime.opset1.ops import tile -from openvino.runtime.opset3.ops import topk -from openvino.runtime.opset1.ops import transpose -from openvino.runtime.opset1.ops import unsqueeze -from openvino.runtime.opset1.ops import variadic_split +from openvino.opset1.ops import absolute +from openvino.opset1.ops import absolute as abs +from openvino.opset1.ops import acos +from openvino.opset4.ops import acosh +from openvino.opset1.ops import add +from openvino.opset1.ops import asin +from openvino.opset4.ops import asinh +from openvino.opset3.ops import assign +from openvino.opset1.ops import atan +from openvino.opset4.ops import atanh +from openvino.opset1.ops import avg_pool +from openvino.opset1.ops import batch_norm_inference +from openvino.opset2.ops import batch_to_space +from openvino.opset1.ops import binary_convolution +from openvino.opset3.ops import broadcast +from openvino.opset3.ops import bucketize +from openvino.opset1.ops import ceiling +from openvino.opset1.ops import ceiling as ceil +from openvino.opset1.ops import clamp +from openvino.opset1.ops import concat +from openvino.opset1.ops import constant +from openvino.opset1.ops import convert +from openvino.opset1.ops import convert_like +from openvino.opset1.ops import convolution +from openvino.opset1.ops import convolution_backprop_data +from openvino.opset1.ops import cos +from openvino.opset1.ops import cosh +from openvino.opset1.ops import ctc_greedy_decoder +from openvino.opset4.ops import ctc_loss +from openvino.opset3.ops import cum_sum +from openvino.opset3.ops import cum_sum as cumsum +from openvino.opset1.ops import deformable_convolution +from openvino.opset1.ops import deformable_psroi_pooling +from openvino.opset1.ops import depth_to_space +from openvino.opset1.ops import detection_output +from openvino.opset1.ops import divide +from openvino.opset1.ops import elu +from openvino.opset3.ops import embedding_bag_offsets_sum +from openvino.opset3.ops import embedding_bag_packed_sum +from openvino.opset3.ops import embedding_segments_sum +from openvino.opset3.ops import extract_image_patches +from openvino.opset1.ops import equal +from openvino.opset1.ops import erf +from openvino.opset1.ops import exp +from openvino.opset1.ops import fake_quantize +from openvino.opset1.ops import floor +from openvino.opset1.ops import floor_mod +from openvino.opset1.ops import gather +from openvino.opset1.ops import gather_tree +from openvino.opset2.ops import gelu +from openvino.opset1.ops import greater +from openvino.opset1.ops import greater_equal +from openvino.opset1.ops import grn +from openvino.opset1.ops import group_convolution +from openvino.opset1.ops import group_convolution_backprop_data +from openvino.opset3.ops import gru_cell +from openvino.opset1.ops import hard_sigmoid +from openvino.opset4.ops import hswish +from openvino.opset1.ops import interpolate +from openvino.opset1.ops import less +from openvino.opset1.ops import less_equal +from openvino.opset1.ops import log +from openvino.opset1.ops import logical_and +from openvino.opset1.ops import logical_not +from openvino.opset1.ops import logical_or +from openvino.opset1.ops import logical_xor +from openvino.opset1.ops import lrn +from openvino.opset4.ops import lstm_cell +from openvino.opset1.ops import matmul +from openvino.opset1.ops import max_pool +from openvino.opset1.ops import maximum +from openvino.opset1.ops import minimum +from openvino.opset4.ops import mish +from openvino.opset1.ops import mod +from openvino.opset1.ops import multiply +from openvino.opset2.ops import mvn +from openvino.opset1.ops import negative +from openvino.opset4.ops import non_max_suppression +from openvino.opset3.ops import non_zero +from openvino.opset1.ops import normalize_l2 +from openvino.opset1.ops import not_equal +from openvino.opset1.ops import one_hot +from openvino.opset1.ops import pad +from openvino.opset1.ops import parameter +from openvino.opset1.ops import power +from openvino.opset1.ops import prelu +from openvino.opset1.ops import prior_box +from openvino.opset1.ops import prior_box_clustered +from openvino.opset1.ops import psroi_pooling +from openvino.opset4.ops import proposal +from openvino.opset1.ops import range +from openvino.opset3.ops import read_value +from openvino.opset4.ops import reduce_l1 +from openvino.opset4.ops import reduce_l2 +from openvino.opset1.ops import reduce_logical_and +from openvino.opset1.ops import reduce_logical_or +from openvino.opset1.ops import reduce_max +from openvino.opset1.ops import reduce_mean +from openvino.opset1.ops import reduce_min +from openvino.opset1.ops import reduce_prod +from openvino.opset1.ops import reduce_sum +from openvino.opset1.ops import region_yolo +from openvino.opset2.ops import reorg_yolo +from openvino.opset1.ops import relu +from openvino.opset1.ops import reshape +from openvino.opset1.ops import result +from openvino.opset1.ops import reverse_sequence +from openvino.opset3.ops import rnn_cell +from openvino.opset3.ops import roi_align +from openvino.opset2.ops import roi_pooling +from openvino.opset3.ops import scatter_elements_update +from openvino.opset4.ops import scatter_nd_update +from openvino.opset3.ops import scatter_update +from openvino.opset1.ops import select +from openvino.opset1.ops import selu +from openvino.opset3.ops import shape_of +from openvino.opset3.ops import shuffle_channels +from openvino.opset1.ops import sigmoid +from openvino.opset1.ops import sign +from openvino.opset1.ops import sin +from openvino.opset1.ops import sinh +from openvino.opset1.ops import softmax +from openvino.opset4.ops import softplus +from openvino.opset2.ops import space_to_batch +from openvino.opset1.ops import space_to_depth +from openvino.opset1.ops import split +from openvino.opset1.ops import sqrt +from openvino.opset1.ops import squared_difference +from openvino.opset1.ops import squeeze +from openvino.opset1.ops import strided_slice +from openvino.opset1.ops import subtract +from openvino.opset4.ops import swish +from openvino.opset1.ops import tan +from openvino.opset1.ops import tanh +from openvino.opset1.ops import tensor_iterator +from openvino.opset1.ops import tile +from openvino.opset3.ops import topk +from openvino.opset1.ops import transpose +from openvino.opset1.ops import unsqueeze +from openvino.opset1.ops import variadic_split diff --git a/src/bindings/python/src/openvino/runtime/opset16/__init__.py b/src/bindings/python/src/openvino/runtime/opset16/__init__.py index ce52690e919fc3..d80ec4fd8ecaa9 100644 --- a/src/bindings/python/src/openvino/runtime/opset16/__init__.py +++ b/src/bindings/python/src/openvino/runtime/opset16/__init__.py @@ -3,7 +3,4 @@ # SPDX-License-Identifier: Apache-2.0 # New operations added in Opset16 -from openvino.runtime.opset16.ops import identity - -# Operators from previous opsets -# TODO (ticket: 156877): Add previous opset operators at the end of opset16 development +from openvino.opset16.ops import identity From e0c86e9acc0ef4c74248aaa620ccde7bb323272d Mon Sep 17 00:00:00 2001 From: Alicja Miloszewska Date: Tue, 12 Nov 2024 13:56:21 +0100 Subject: [PATCH 16/38] Add classes to ov.__init__ Signed-off-by: Alicja Miloszewska --- src/bindings/python/src/openvino/__init__.py | 3 +++ .../python/src/openvino/frontend/jax/jaxpr_decoder.py | 2 +- .../python/src/openvino/frontend/pytorch/fx_decoder.py | 2 +- src/bindings/python/src/openvino/opset_utils.py | 2 +- tools/benchmark_tool/openvino/__init__.py | 4 +++- tools/ovc/openvino/__init__.py | 4 +++- 6 files changed, 12 insertions(+), 5 deletions(-) diff --git a/src/bindings/python/src/openvino/__init__.py b/src/bindings/python/src/openvino/__init__.py index a7a01e1d8b7b08..3071ba9577cde0 100644 --- a/src/bindings/python/src/openvino/__init__.py +++ b/src/bindings/python/src/openvino/__init__.py @@ -34,6 +34,9 @@ from openvino._pyopenvino import Symbol from openvino._pyopenvino import Dimension +from openvino._pyopenvino import Input +from openvino._pyopenvino import Output +from openvino._pyopenvino import Node from openvino._pyopenvino import Strides from openvino._pyopenvino import PartialShape from openvino._pyopenvino import Shape diff --git a/src/bindings/python/src/openvino/frontend/jax/jaxpr_decoder.py b/src/bindings/python/src/openvino/frontend/jax/jaxpr_decoder.py index f71105678062bc..9072598f824939 100644 --- a/src/bindings/python/src/openvino/frontend/jax/jaxpr_decoder.py +++ b/src/bindings/python/src/openvino/frontend/jax/jaxpr_decoder.py @@ -6,7 +6,7 @@ import jax.core from openvino.frontend.jax.py_jax_frontend import _FrontEndJaxDecoder as Decoder -from openvino._pyopenvino import PartialShape, Type as OVType, OVAny +from openvino import PartialShape, Type as OVType, OVAny from openvino.frontend.jax.utils import jax_array_to_ov_const, get_ov_type_for_value, \ ivalue_to_constant, param_to_constants diff --git a/src/bindings/python/src/openvino/frontend/pytorch/fx_decoder.py b/src/bindings/python/src/openvino/frontend/pytorch/fx_decoder.py index 61964624238287..81a2764ee1188d 100644 --- a/src/bindings/python/src/openvino/frontend/pytorch/fx_decoder.py +++ b/src/bindings/python/src/openvino/frontend/pytorch/fx_decoder.py @@ -10,7 +10,7 @@ from openvino.frontend.pytorch.py_pytorch_frontend import _FrontEndPytorchDecoder as Decoder from openvino.frontend.pytorch.py_pytorch_frontend import _Type as DecoderType -from openvino._pyopenvino import PartialShape, Type as OVType, OVAny, Shape +from openvino import PartialShape, Type as OVType, OVAny, Shape from openvino.frontend.pytorch.utils import make_constant, fetch_attr, pt_to_ov_type_map, torch_tensor_to_ov_const logger = logging.getLogger(__name__) diff --git a/src/bindings/python/src/openvino/opset_utils.py b/src/bindings/python/src/openvino/opset_utils.py index 50150e12b072b7..40b29ca52fb29f 100644 --- a/src/bindings/python/src/openvino/opset_utils.py +++ b/src/bindings/python/src/openvino/opset_utils.py @@ -5,7 +5,7 @@ from typing import Optional import numpy as np -from openvino._pyopenvino import Node +from openvino import Node from openvino.utils.decorators import nameable_op from openvino.utils.node_factory import NodeFactory from openvino.utils.types import ( diff --git a/tools/benchmark_tool/openvino/__init__.py b/tools/benchmark_tool/openvino/__init__.py index 4f3e65e0e75de3..3071ba9577cde0 100644 --- a/tools/benchmark_tool/openvino/__init__.py +++ b/tools/benchmark_tool/openvino/__init__.py @@ -18,7 +18,6 @@ # # It is not compared with init files from openvino-dev package. # # # Import all public modules -# from openvino import runtime as runtime from openvino import frontend as frontend from openvino import helpers as helpers from openvino import experimental as experimental @@ -35,6 +34,9 @@ from openvino._pyopenvino import Symbol from openvino._pyopenvino import Dimension +from openvino._pyopenvino import Input +from openvino._pyopenvino import Output +from openvino._pyopenvino import Node from openvino._pyopenvino import Strides from openvino._pyopenvino import PartialShape from openvino._pyopenvino import Shape diff --git a/tools/ovc/openvino/__init__.py b/tools/ovc/openvino/__init__.py index 4f3e65e0e75de3..3071ba9577cde0 100644 --- a/tools/ovc/openvino/__init__.py +++ b/tools/ovc/openvino/__init__.py @@ -18,7 +18,6 @@ # # It is not compared with init files from openvino-dev package. # # # Import all public modules -# from openvino import runtime as runtime from openvino import frontend as frontend from openvino import helpers as helpers from openvino import experimental as experimental @@ -35,6 +34,9 @@ from openvino._pyopenvino import Symbol from openvino._pyopenvino import Dimension +from openvino._pyopenvino import Input +from openvino._pyopenvino import Output +from openvino._pyopenvino import Node from openvino._pyopenvino import Strides from openvino._pyopenvino import PartialShape from openvino._pyopenvino import Shape From 037bcb054390c623ec5ab5392918c1b2764cd8b5 Mon Sep 17 00:00:00 2001 From: Alicja Miloszewska Date: Tue, 12 Nov 2024 19:22:17 +0100 Subject: [PATCH 17/38] fix linters Signed-off-by: Alicja Miloszewska --- src/bindings/python/setup.cfg | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bindings/python/setup.cfg b/src/bindings/python/setup.cfg index 7fc407ad56e7a1..89fabcb659c108 100644 --- a/src/bindings/python/setup.cfg +++ b/src/bindings/python/setup.cfg @@ -66,7 +66,7 @@ show_source = True docstring-convention = google enable-extensions = G per-file-ignores = - src/openvino/runtime/*/ops.py: VNE001,VNE003 + src/openvino/*/ops.py: VNE001,VNE003 src/openvino/preprocess/torchvision/*: N801, VNE001 *__init__.py: F401 From 9142a63fb154f64e3fb21c52def5962b6240a04b Mon Sep 17 00:00:00 2001 From: Alicja Miloszewska Date: Wed, 13 Nov 2024 21:35:57 +0100 Subject: [PATCH 18/38] change imports Signed-off-by: Alicja Miloszewska --- src/bindings/python/src/openvino/frontend/jax/jaxpr_decoder.py | 2 +- src/bindings/python/src/openvino/frontend/pytorch/fx_decoder.py | 2 +- src/bindings/python/src/openvino/opset_utils.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/bindings/python/src/openvino/frontend/jax/jaxpr_decoder.py b/src/bindings/python/src/openvino/frontend/jax/jaxpr_decoder.py index 9072598f824939..f71105678062bc 100644 --- a/src/bindings/python/src/openvino/frontend/jax/jaxpr_decoder.py +++ b/src/bindings/python/src/openvino/frontend/jax/jaxpr_decoder.py @@ -6,7 +6,7 @@ import jax.core from openvino.frontend.jax.py_jax_frontend import _FrontEndJaxDecoder as Decoder -from openvino import PartialShape, Type as OVType, OVAny +from openvino._pyopenvino import PartialShape, Type as OVType, OVAny from openvino.frontend.jax.utils import jax_array_to_ov_const, get_ov_type_for_value, \ ivalue_to_constant, param_to_constants diff --git a/src/bindings/python/src/openvino/frontend/pytorch/fx_decoder.py b/src/bindings/python/src/openvino/frontend/pytorch/fx_decoder.py index 81a2764ee1188d..61964624238287 100644 --- a/src/bindings/python/src/openvino/frontend/pytorch/fx_decoder.py +++ b/src/bindings/python/src/openvino/frontend/pytorch/fx_decoder.py @@ -10,7 +10,7 @@ from openvino.frontend.pytorch.py_pytorch_frontend import _FrontEndPytorchDecoder as Decoder from openvino.frontend.pytorch.py_pytorch_frontend import _Type as DecoderType -from openvino import PartialShape, Type as OVType, OVAny, Shape +from openvino._pyopenvino import PartialShape, Type as OVType, OVAny, Shape from openvino.frontend.pytorch.utils import make_constant, fetch_attr, pt_to_ov_type_map, torch_tensor_to_ov_const logger = logging.getLogger(__name__) diff --git a/src/bindings/python/src/openvino/opset_utils.py b/src/bindings/python/src/openvino/opset_utils.py index 40b29ca52fb29f..50150e12b072b7 100644 --- a/src/bindings/python/src/openvino/opset_utils.py +++ b/src/bindings/python/src/openvino/opset_utils.py @@ -5,7 +5,7 @@ from typing import Optional import numpy as np -from openvino import Node +from openvino._pyopenvino import Node from openvino.utils.decorators import nameable_op from openvino.utils.node_factory import NodeFactory from openvino.utils.types import ( From bb03585425e42e084ab9b013a036191b0ea5155d Mon Sep 17 00:00:00 2001 From: Alicja Miloszewska Date: Thu, 14 Nov 2024 08:45:47 +0100 Subject: [PATCH 19/38] Import Node from _pyopenvino Signed-off-by: Alicja Miloszewska --- src/bindings/python/src/openvino/opset16/ops.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bindings/python/src/openvino/opset16/ops.py b/src/bindings/python/src/openvino/opset16/ops.py index b91dec1ebc9f44..aa3d55b74096b0 100644 --- a/src/bindings/python/src/openvino/opset16/ops.py +++ b/src/bindings/python/src/openvino/opset16/ops.py @@ -6,7 +6,7 @@ from functools import partial from typing import Optional -from openvino import Node +from openvino._pyopenvino import Node from openvino.utils.decorators import nameable_op from openvino.opset_utils import _get_node_factory from openvino.utils.types import NodeInput, as_nodes From b65f2d601ed5e33c5309e7d8fcf52d72fcf4a2ff Mon Sep 17 00:00:00 2001 From: Alicja Miloszewska Date: Thu, 14 Nov 2024 10:43:04 +0100 Subject: [PATCH 20/38] Update relative paths in _add_openvino_libs_to_search_path() Signed-off-by: Alicja Miloszewska --- src/bindings/python/src/openvino/utils/__init__.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/bindings/python/src/openvino/utils/__init__.py b/src/bindings/python/src/openvino/utils/__init__.py index 4e15743fd28447..9f0bc904dccd1f 100644 --- a/src/bindings/python/src/openvino/utils/__init__.py +++ b/src/bindings/python/src/openvino/utils/__init__.py @@ -22,12 +22,12 @@ def _add_openvino_libs_to_search_path() -> None: # If you're using a custom installation of openvino, # add the location of openvino dlls to your system PATH. openvino_libs = [] - if os.path.isdir(os.path.join(os.path.dirname(__file__), "libs")): + if os.path.isdir(os.path.join(os.path.dirname(__file__), "..", "libs")): # looking for the libs in the pip installation path. - openvino_libs.append(os.path.join(os.path.dirname(__file__), "libs")) - elif os.path.isdir(os.path.join(os.path.dirname(__file__), "..", "..", "..", "Library", "bin")): + openvino_libs.append(os.path.join(os.path.dirname(__file__), "..", "libs")) + elif os.path.isdir(os.path.join(os.path.dirname(__file__), "..", "..", "..", "..", "Library", "bin")): # looking for the libs in the conda installation path - openvino_libs.append(os.path.join(os.path.dirname(__file__), "..", "..", "..", "Library", "bin")) + openvino_libs.append(os.path.join(os.path.dirname(__file__), "..", "..", "..", "..", "Library", "bin")) else: # setupvars.bat script set all libs paths to OPENVINO_LIB_PATHS environment variable. openvino_libs_installer = os.getenv("OPENVINO_LIB_PATHS") From 8d498252a0337d49785c3659c9b2660341d043dc Mon Sep 17 00:00:00 2001 From: Alicja Miloszewska Date: Thu, 14 Nov 2024 11:34:53 +0100 Subject: [PATCH 21/38] Fix path for adding dll Signed-off-by: Alicja Miloszewska --- src/bindings/python/src/openvino/utils/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/bindings/python/src/openvino/utils/__init__.py b/src/bindings/python/src/openvino/utils/__init__.py index 9f0bc904dccd1f..5f5908f711b87f 100644 --- a/src/bindings/python/src/openvino/utils/__init__.py +++ b/src/bindings/python/src/openvino/utils/__init__.py @@ -37,7 +37,7 @@ def _add_openvino_libs_to_search_path() -> None: sys.exit("Error: Please set the OPENVINO_LIB_PATHS environment variable. " "If you use an install package, please, run setupvars.bat") for lib in openvino_libs: - lib_path = os.path.join(os.path.dirname(__file__), lib) + lib_path = os.path.join(os.path.dirname(__file__), "..", lib) if os.path.isdir(lib_path): # On Windows, with Python >= 3.8, DLLs are no longer imported from the PATH. os.add_dll_directory(os.path.abspath(lib_path)) From dfa5172a7e30810dc1ebc20ab0073296bd202a97 Mon Sep 17 00:00:00 2001 From: Alicja Miloszewska Date: Thu, 14 Nov 2024 16:30:16 +0100 Subject: [PATCH 22/38] Move _add_openvino_libs_to_search_path() up Signed-off-by: Alicja Miloszewska --- src/bindings/python/src/openvino/__init__.py | 2 +- .../python/src/openvino/build_utils.py | 36 +++++++++++++++++++ .../python/src/openvino/utils/__init__.py | 32 ----------------- tools/benchmark_tool/openvino/__init__.py | 2 +- tools/ovc/openvino/__init__.py | 2 +- 5 files changed, 39 insertions(+), 35 deletions(-) create mode 100644 src/bindings/python/src/openvino/build_utils.py diff --git a/src/bindings/python/src/openvino/__init__.py b/src/bindings/python/src/openvino/__init__.py index 3071ba9577cde0..fb94174f4be437 100644 --- a/src/bindings/python/src/openvino/__init__.py +++ b/src/bindings/python/src/openvino/__init__.py @@ -7,7 +7,7 @@ # Required for Windows OS platforms # Note: always top-level try: - from openvino.utils import _add_openvino_libs_to_search_path + from openvino.build_utils import _add_openvino_libs_to_search_path _add_openvino_libs_to_search_path() except ImportError: pass diff --git a/src/bindings/python/src/openvino/build_utils.py b/src/bindings/python/src/openvino/build_utils.py new file mode 100644 index 00000000000000..dedc231c8a803e --- /dev/null +++ b/src/bindings/python/src/openvino/build_utils.py @@ -0,0 +1,36 @@ +# -*- coding: utf-8 -*- +# Copyright (C) 2018-2024 Intel Corporation +# SPDX-License-Identifier: Apache-2.0 + +import os +import sys + + +def _add_openvino_libs_to_search_path() -> None: + """Add OpenVINO libraries to the DLL search path on Windows.""" + if sys.platform == "win32": + # Installer, yum, pip installs openvino dlls to the different directories + # and those paths need to be visible to the openvino modules + # + # If you're using a custom installation of openvino, + # add the location of openvino dlls to your system PATH. + openvino_libs = [] + if os.path.isdir(os.path.join(os.path.dirname(__file__), "libs")): + # looking for the libs in the pip installation path. + openvino_libs.append(os.path.join(os.path.dirname(__file__), "libs")) + elif os.path.isdir(os.path.join(os.path.dirname(__file__), "..", "..", "..", "Library", "bin")): + # looking for the libs in the conda installation path + openvino_libs.append(os.path.join(os.path.dirname(__file__), "..", "..", "..", "Library", "bin")) + else: + # setupvars.bat script set all libs paths to OPENVINO_LIB_PATHS environment variable. + openvino_libs_installer = os.getenv("OPENVINO_LIB_PATHS") + if openvino_libs_installer: + openvino_libs.extend(openvino_libs_installer.split(";")) + else: + sys.exit("Error: Please set the OPENVINO_LIB_PATHS environment variable. " + "If you use an install package, please, run setupvars.bat") + for lib in openvino_libs: + lib_path = os.path.join(os.path.dirname(__file__), lib) + if os.path.isdir(lib_path): + # On Windows, with Python >= 3.8, DLLs are no longer imported from the PATH. + os.add_dll_directory(os.path.abspath(lib_path)) diff --git a/src/bindings/python/src/openvino/utils/__init__.py b/src/bindings/python/src/openvino/utils/__init__.py index 5f5908f711b87f..e5e1991c812c37 100644 --- a/src/bindings/python/src/openvino/utils/__init__.py +++ b/src/bindings/python/src/openvino/utils/__init__.py @@ -5,44 +5,12 @@ """Generic utilities. Factor related functions out to separate files.""" from openvino._pyopenvino.util import numpy_to_c, replace_node, replace_output_update_name - import os -import sys from functools import wraps from typing import Callable, Any from pathlib import Path -def _add_openvino_libs_to_search_path() -> None: - """Add OpenVINO libraries to the DLL search path on Windows.""" - if sys.platform == "win32": - # Installer, yum, pip installs openvino dlls to the different directories - # and those paths need to be visible to the openvino modules - # - # If you're using a custom installation of openvino, - # add the location of openvino dlls to your system PATH. - openvino_libs = [] - if os.path.isdir(os.path.join(os.path.dirname(__file__), "..", "libs")): - # looking for the libs in the pip installation path. - openvino_libs.append(os.path.join(os.path.dirname(__file__), "..", "libs")) - elif os.path.isdir(os.path.join(os.path.dirname(__file__), "..", "..", "..", "..", "Library", "bin")): - # looking for the libs in the conda installation path - openvino_libs.append(os.path.join(os.path.dirname(__file__), "..", "..", "..", "..", "Library", "bin")) - else: - # setupvars.bat script set all libs paths to OPENVINO_LIB_PATHS environment variable. - openvino_libs_installer = os.getenv("OPENVINO_LIB_PATHS") - if openvino_libs_installer: - openvino_libs.extend(openvino_libs_installer.split(";")) - else: - sys.exit("Error: Please set the OPENVINO_LIB_PATHS environment variable. " - "If you use an install package, please, run setupvars.bat") - for lib in openvino_libs: - lib_path = os.path.join(os.path.dirname(__file__), "..", lib) - if os.path.isdir(lib_path): - # On Windows, with Python >= 3.8, DLLs are no longer imported from the PATH. - os.add_dll_directory(os.path.abspath(lib_path)) - - def get_cmake_path() -> str: """Searches for the directory containing CMake files within the package install directory. diff --git a/tools/benchmark_tool/openvino/__init__.py b/tools/benchmark_tool/openvino/__init__.py index 3071ba9577cde0..fb94174f4be437 100644 --- a/tools/benchmark_tool/openvino/__init__.py +++ b/tools/benchmark_tool/openvino/__init__.py @@ -7,7 +7,7 @@ # Required for Windows OS platforms # Note: always top-level try: - from openvino.utils import _add_openvino_libs_to_search_path + from openvino.build_utils import _add_openvino_libs_to_search_path _add_openvino_libs_to_search_path() except ImportError: pass diff --git a/tools/ovc/openvino/__init__.py b/tools/ovc/openvino/__init__.py index 3071ba9577cde0..fb94174f4be437 100644 --- a/tools/ovc/openvino/__init__.py +++ b/tools/ovc/openvino/__init__.py @@ -7,7 +7,7 @@ # Required for Windows OS platforms # Note: always top-level try: - from openvino.utils import _add_openvino_libs_to_search_path + from openvino.build_utils import _add_openvino_libs_to_search_path _add_openvino_libs_to_search_path() except ImportError: pass From fb52f7ad0ed5fe9edddc45ff8d1c7551adea0f8a Mon Sep 17 00:00:00 2001 From: Alicja Miloszewska Date: Fri, 15 Nov 2024 09:58:09 +0100 Subject: [PATCH 23/38] Move get_cmake_path Signed-off-by: Alicja Miloszewska --- .../python/src/openvino/build_utils.py | 17 +++++++++++++++++ .../python/src/openvino/utils/__init__.py | 19 +------------------ 2 files changed, 18 insertions(+), 18 deletions(-) diff --git a/src/bindings/python/src/openvino/build_utils.py b/src/bindings/python/src/openvino/build_utils.py index dedc231c8a803e..d02e212bf02320 100644 --- a/src/bindings/python/src/openvino/build_utils.py +++ b/src/bindings/python/src/openvino/build_utils.py @@ -4,6 +4,7 @@ import os import sys +from pathlib import Path def _add_openvino_libs_to_search_path() -> None: @@ -34,3 +35,19 @@ def _add_openvino_libs_to_search_path() -> None: if os.path.isdir(lib_path): # On Windows, with Python >= 3.8, DLLs are no longer imported from the PATH. os.add_dll_directory(os.path.abspath(lib_path)) + + +def get_cmake_path() -> str: + """Searches for the directory containing CMake files within the package install directory. + + :return: The path to the directory containing CMake files, if found. Otherwise, returns empty string. + :rtype: str + """ + package_path = Path(__file__).parent + cmake_file = "OpenVINOConfig.cmake" + + for dirpath, _, filenames in os.walk(package_path): + if cmake_file in filenames: + return dirpath + + return "" diff --git a/src/bindings/python/src/openvino/utils/__init__.py b/src/bindings/python/src/openvino/utils/__init__.py index e5e1991c812c37..35343b5a47f69d 100644 --- a/src/bindings/python/src/openvino/utils/__init__.py +++ b/src/bindings/python/src/openvino/utils/__init__.py @@ -5,26 +5,9 @@ """Generic utilities. Factor related functions out to separate files.""" from openvino._pyopenvino.util import numpy_to_c, replace_node, replace_output_update_name -import os +from openvino.build_utils import get_cmake_path from functools import wraps from typing import Callable, Any -from pathlib import Path - - -def get_cmake_path() -> str: - """Searches for the directory containing CMake files within the package install directory. - - :return: The path to the directory containing CMake files, if found. Otherwise, returns empty string. - :rtype: str - """ - package_path = Path(__file__).parent - cmake_file = "OpenVINOConfig.cmake" - - for dirpath, _, filenames in os.walk(package_path): - if cmake_file in filenames: - return dirpath - - return "" def deprecated(name: Any = None, version: str = "", message: str = "", stacklevel: int = 2) -> Callable[..., Any]: From 8f878e504004625931c3b3b4abbbbbb6878e9189 Mon Sep 17 00:00:00 2001 From: Alicja Miloszewska Date: Fri, 15 Nov 2024 11:11:26 +0100 Subject: [PATCH 24/38] Remove aliases Signed-off-by: Alicja Miloszewska --- src/bindings/python/src/openvino/__init__.py | 1 + src/bindings/python/src/openvino/runtime/__init__.py | 6 ------ tools/benchmark_tool/openvino/__init__.py | 1 + tools/ovc/openvino/__init__.py | 1 + 4 files changed, 3 insertions(+), 6 deletions(-) diff --git a/src/bindings/python/src/openvino/__init__.py b/src/bindings/python/src/openvino/__init__.py index fb94174f4be437..ddfa5431def7c2 100644 --- a/src/bindings/python/src/openvino/__init__.py +++ b/src/bindings/python/src/openvino/__init__.py @@ -18,6 +18,7 @@ # # It is not compared with init files from openvino-dev package. # # # Import all public modules +from openvino import runtime as runtime from openvino import frontend as frontend from openvino import helpers as helpers from openvino import experimental as experimental diff --git a/src/bindings/python/src/openvino/runtime/__init__.py b/src/bindings/python/src/openvino/runtime/__init__.py index 0e2a7ee0497c7f..1fcb93a0e8eba9 100644 --- a/src/bindings/python/src/openvino/runtime/__init__.py +++ b/src/bindings/python/src/openvino/runtime/__init__.py @@ -69,12 +69,6 @@ from openvino.runtime import opset12 from openvino.runtime import opset13 - -# Aliases -from openvino import ie_api as ie_api -from openvino import exceptions as exceptions -import openvino.utils as utils - # Import properties API from openvino.runtime import properties diff --git a/tools/benchmark_tool/openvino/__init__.py b/tools/benchmark_tool/openvino/__init__.py index fb94174f4be437..ddfa5431def7c2 100644 --- a/tools/benchmark_tool/openvino/__init__.py +++ b/tools/benchmark_tool/openvino/__init__.py @@ -18,6 +18,7 @@ # # It is not compared with init files from openvino-dev package. # # # Import all public modules +from openvino import runtime as runtime from openvino import frontend as frontend from openvino import helpers as helpers from openvino import experimental as experimental diff --git a/tools/ovc/openvino/__init__.py b/tools/ovc/openvino/__init__.py index fb94174f4be437..ddfa5431def7c2 100644 --- a/tools/ovc/openvino/__init__.py +++ b/tools/ovc/openvino/__init__.py @@ -18,6 +18,7 @@ # # It is not compared with init files from openvino-dev package. # # # Import all public modules +from openvino import runtime as runtime from openvino import frontend as frontend from openvino import helpers as helpers from openvino import experimental as experimental From 1645918d555fbb64e2736a41a86b26f0857875c0 Mon Sep 17 00:00:00 2001 From: Alicja Miloszewska Date: Fri, 15 Nov 2024 12:54:31 +0100 Subject: [PATCH 25/38] Fix ie_api.Model import as attribute of openvino.runtime Signed-off-by: Alicja Miloszewska --- .../python/src/openvino/runtime/__init__.py | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/bindings/python/src/openvino/runtime/__init__.py b/src/bindings/python/src/openvino/runtime/__init__.py index 1fcb93a0e8eba9..e15b59c883754d 100644 --- a/src/bindings/python/src/openvino/runtime/__init__.py +++ b/src/bindings/python/src/openvino/runtime/__init__.py @@ -39,11 +39,11 @@ from openvino._pyopenvino import layout_helpers from openvino._pyopenvino import OVAny from openvino._pyopenvino import RTMap -from openvino.ie_api import Core -from openvino.ie_api import CompiledModel -from openvino.ie_api import InferRequest -from openvino.ie_api import Model -from openvino.ie_api import AsyncInferQueue +from openvino.runtime.ie_api import Core +from openvino.runtime.ie_api import CompiledModel +from openvino.runtime.ie_api import InferRequest +from openvino.runtime.ie_api import Model +from openvino.runtime.ie_api import AsyncInferQueue from openvino._pyopenvino import Version from openvino._pyopenvino import Tensor from openvino._pyopenvino import Extension @@ -73,8 +73,8 @@ from openvino.runtime import properties # Helper functions for openvino module -from openvino.ie_api import tensor_from_file -from openvino.ie_api import compile_model +from openvino.runtime.ie_api import tensor_from_file +from openvino.runtime.ie_api import compile_model from openvino.utils import deprecated From 05796c498e0de1c5f5ed736600e065ef00287542 Mon Sep 17 00:00:00 2001 From: Alicja Miloszewska Date: Fri, 15 Nov 2024 15:09:43 +0100 Subject: [PATCH 26/38] Update mo and openvino_dev __init__s Signed-off-by: Alicja Miloszewska --- tools/mo/openvino/__init__.py | 2 +- tools/openvino_dev/src/openvino/__init__.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/mo/openvino/__init__.py b/tools/mo/openvino/__init__.py index b015570964c520..18b022abad86d9 100644 --- a/tools/mo/openvino/__init__.py +++ b/tools/mo/openvino/__init__.py @@ -7,7 +7,7 @@ # Required for Windows OS platforms # Note: always top-level try: - from openvino.utils import _add_openvino_libs_to_search_path + from openvino.build_utils import _add_openvino_libs_to_search_path _add_openvino_libs_to_search_path() except ImportError: pass diff --git a/tools/openvino_dev/src/openvino/__init__.py b/tools/openvino_dev/src/openvino/__init__.py index b015570964c520..18b022abad86d9 100644 --- a/tools/openvino_dev/src/openvino/__init__.py +++ b/tools/openvino_dev/src/openvino/__init__.py @@ -7,7 +7,7 @@ # Required for Windows OS platforms # Note: always top-level try: - from openvino.utils import _add_openvino_libs_to_search_path + from openvino.build_utils import _add_openvino_libs_to_search_path _add_openvino_libs_to_search_path() except ImportError: pass From 83f4ddef9229c1ec71b03cd84a0b557a29ad7dd2 Mon Sep 17 00:00:00 2001 From: Alicja Miloszewska Date: Mon, 18 Nov 2024 10:31:20 +0100 Subject: [PATCH 27/38] Remove direct imports from _pyopenvino Signed-off-by: Alicja Miloszewska --- src/bindings/python/src/openvino/__init__.py | 48 +++++++++++-------- .../openvino/frontend/jax/jaxpr_decoder.py | 2 +- .../openvino/frontend/pytorch/fx_decoder.py | 2 +- .../frontend/pytorch/torchdynamo/compile.py | 2 +- .../frontend/pytorch/torchdynamo/execute.py | 2 +- .../openvino/frontend/pytorch/ts_decoder.py | 4 +- .../frontend/tensorflow/node_decoder.py | 2 +- .../src/openvino/frontend/tensorflow/utils.py | 2 +- .../python/src/openvino/helpers/packing.py | 2 +- .../python/src/openvino/opset1/ops.py | 2 +- .../python/src/openvino/opset10/ops.py | 2 +- .../python/src/openvino/opset11/ops.py | 2 +- .../python/src/openvino/opset12/ops.py | 2 +- .../python/src/openvino/opset13/ops.py | 2 +- .../python/src/openvino/opset14/ops.py | 2 +- .../python/src/openvino/opset15/ops.py | 2 +- .../python/src/openvino/opset16/ops.py | 2 +- .../python/src/openvino/opset2/ops.py | 2 +- .../python/src/openvino/opset3/ops.py | 2 +- .../python/src/openvino/opset4/ops.py | 2 +- .../python/src/openvino/opset5/ops.py | 2 +- .../python/src/openvino/opset6/ops.py | 2 +- .../python/src/openvino/opset7/ops.py | 2 +- .../python/src/openvino/opset8/ops.py | 2 +- .../python/src/openvino/opset9/ops.py | 2 +- .../python/src/openvino/opset_utils.py | 1 - .../torchvision/torchvision_preprocessing.py | 6 +-- .../python/src/openvino/utils/broadcasting.py | 2 +- .../python/src/openvino/utils/decorators.py | 2 +- .../python/src/openvino/utils/node_factory.py | 2 +- .../python/src/openvino/utils/reduction.py | 2 +- .../python/src/openvino/utils/types.py | 2 +- tools/benchmark_tool/openvino/__init__.py | 48 +++++++++++-------- tools/ovc/openvino/__init__.py | 48 +++++++++++-------- 34 files changed, 120 insertions(+), 91 deletions(-) diff --git a/src/bindings/python/src/openvino/__init__.py b/src/bindings/python/src/openvino/__init__.py index ddfa5431def7c2..4f7c1568b45c03 100644 --- a/src/bindings/python/src/openvino/__init__.py +++ b/src/bindings/python/src/openvino/__init__.py @@ -17,22 +17,18 @@ # # This __init__.py forces checking of runtime modules to propagate errors. # # It is not compared with init files from openvino-dev package. # # -# Import all public modules -from openvino import runtime as runtime -from openvino import frontend as frontend -from openvino import helpers as helpers -from openvino import experimental as experimental -from openvino import preprocess as preprocess -from openvino import utils as utils -from openvino import properties as properties - -# Import most important classes and functions from openvino.runtime -from openvino.ie_api import Model -from openvino.ie_api import Core -from openvino.ie_api import CompiledModel -from openvino.ie_api import InferRequest -from openvino.ie_api import AsyncInferQueue +# Openvino pybind bindings +from openvino._pyopenvino import AxisSet +from openvino._pyopenvino import AxisVector +from openvino._pyopenvino import ConstOutput +from openvino._pyopenvino import Coordinate +from openvino._pyopenvino import CoordinateDiff +from openvino._pyopenvino import DiscreteTypeInfo +from openvino._pyopenvino import Extension +from openvino._pyopenvino import ProfilingInfo +from openvino._pyopenvino import RTMap +from openvino._pyopenvino import Version from openvino._pyopenvino import Symbol from openvino._pyopenvino import Dimension from openvino._pyopenvino import Input @@ -45,20 +41,25 @@ from openvino._pyopenvino import Type from openvino._pyopenvino import Tensor from openvino._pyopenvino import OVAny - -from openvino.ie_api import compile_model from openvino._pyopenvino import get_batch from openvino._pyopenvino import set_batch from openvino._pyopenvino import serialize from openvino._pyopenvino import shutdown -from openvino.ie_api import tensor_from_file from openvino._pyopenvino import save_model from openvino._pyopenvino import layout_helpers - from openvino._pyopenvino import RemoteContext from openvino._pyopenvino import RemoteTensor from openvino._pyopenvino import Op +# Python extended classes and functions +from openvino.ie_api import Model +from openvino.ie_api import Core +from openvino.ie_api import CompiledModel +from openvino.ie_api import InferRequest +from openvino.ie_api import AsyncInferQueue +from openvino.ie_api import tensor_from_file +from openvino.ie_api import compile_model + # libva related: from openvino._pyopenvino import VAContext from openvino._pyopenvino import VASurfaceTensor @@ -67,6 +68,15 @@ from openvino._pyopenvino import get_version __version__ = get_version() +# Import all public modules +from openvino import runtime as runtime +from openvino import frontend as frontend +from openvino import helpers as helpers +from openvino import experimental as experimental +from openvino import preprocess as preprocess +from openvino import utils as utils +from openvino import properties as properties + # Tools try: # Model Conversion API - ovc should reside in the main namespace diff --git a/src/bindings/python/src/openvino/frontend/jax/jaxpr_decoder.py b/src/bindings/python/src/openvino/frontend/jax/jaxpr_decoder.py index f71105678062bc..9072598f824939 100644 --- a/src/bindings/python/src/openvino/frontend/jax/jaxpr_decoder.py +++ b/src/bindings/python/src/openvino/frontend/jax/jaxpr_decoder.py @@ -6,7 +6,7 @@ import jax.core from openvino.frontend.jax.py_jax_frontend import _FrontEndJaxDecoder as Decoder -from openvino._pyopenvino import PartialShape, Type as OVType, OVAny +from openvino import PartialShape, Type as OVType, OVAny from openvino.frontend.jax.utils import jax_array_to_ov_const, get_ov_type_for_value, \ ivalue_to_constant, param_to_constants diff --git a/src/bindings/python/src/openvino/frontend/pytorch/fx_decoder.py b/src/bindings/python/src/openvino/frontend/pytorch/fx_decoder.py index 61964624238287..81a2764ee1188d 100644 --- a/src/bindings/python/src/openvino/frontend/pytorch/fx_decoder.py +++ b/src/bindings/python/src/openvino/frontend/pytorch/fx_decoder.py @@ -10,7 +10,7 @@ from openvino.frontend.pytorch.py_pytorch_frontend import _FrontEndPytorchDecoder as Decoder from openvino.frontend.pytorch.py_pytorch_frontend import _Type as DecoderType -from openvino._pyopenvino import PartialShape, Type as OVType, OVAny, Shape +from openvino import PartialShape, Type as OVType, OVAny, Shape from openvino.frontend.pytorch.utils import make_constant, fetch_attr, pt_to_ov_type_map, torch_tensor_to_ov_const logger = logging.getLogger(__name__) diff --git a/src/bindings/python/src/openvino/frontend/pytorch/torchdynamo/compile.py b/src/bindings/python/src/openvino/frontend/pytorch/torchdynamo/compile.py index a6bec6b521abbd..90c6cba289b704 100644 --- a/src/bindings/python/src/openvino/frontend/pytorch/torchdynamo/compile.py +++ b/src/bindings/python/src/openvino/frontend/pytorch/torchdynamo/compile.py @@ -15,7 +15,7 @@ from openvino.frontend import FrontEndManager from openvino.frontend.pytorch.fx_decoder import TorchFXPythonDecoder from openvino.ie_api import Core -from openvino._pyopenvino import Type, PartialShape, serialize +from openvino import Type, PartialShape, serialize from openvino.frontend.pytorch.torchdynamo.backend_utils import _get_cache_dir, _get_device, _get_config, _is_cache_dir_in_config from typing import Callable, Optional diff --git a/src/bindings/python/src/openvino/frontend/pytorch/torchdynamo/execute.py b/src/bindings/python/src/openvino/frontend/pytorch/torchdynamo/execute.py index 388595ae34c42e..8f07356bf2af5e 100644 --- a/src/bindings/python/src/openvino/frontend/pytorch/torchdynamo/execute.py +++ b/src/bindings/python/src/openvino/frontend/pytorch/torchdynamo/execute.py @@ -21,7 +21,7 @@ from openvino.frontend.pytorch.torchdynamo.partition import Partitioner from openvino.frontend.pytorch.torchdynamo.compile import openvino_compile from openvino.ie_api import Core -from openvino._pyopenvino import Type, PartialShape +from openvino import Type, PartialShape from openvino.frontend.pytorch.torchdynamo.backend_utils import _get_cache_dir, _get_device, _get_aot_autograd from typing import Callable, Optional, Any diff --git a/src/bindings/python/src/openvino/frontend/pytorch/ts_decoder.py b/src/bindings/python/src/openvino/frontend/pytorch/ts_decoder.py index f0bd31031a26ba..e0bff17f3a6414 100644 --- a/src/bindings/python/src/openvino/frontend/pytorch/ts_decoder.py +++ b/src/bindings/python/src/openvino/frontend/pytorch/ts_decoder.py @@ -6,7 +6,7 @@ from openvino.frontend.pytorch.py_pytorch_frontend import _FrontEndPytorchDecoder as Decoder from openvino.frontend.pytorch.py_pytorch_frontend import _Type as DecoderType -from openvino._pyopenvino import op, PartialShape, Type as OVType, OVAny +from openvino import op, PartialShape, Type as OVType, OVAny from openvino.frontend.pytorch.utils import ( ivalue_to_constant, get_value_from_getattr, @@ -15,7 +15,7 @@ convert_quantized_tensor, graph_has_ops, ) -from openvino.runtime import opset11 as ops +from openvino import opset11 as ops from openvino.frontend.pytorch import gptq, patch_model from openvino.frontend.pytorch.module_extension import ModuleExtension diff --git a/src/bindings/python/src/openvino/frontend/tensorflow/node_decoder.py b/src/bindings/python/src/openvino/frontend/tensorflow/node_decoder.py index fff8c1d7fe35a0..d15262cbc30366 100644 --- a/src/bindings/python/src/openvino/frontend/tensorflow/node_decoder.py +++ b/src/bindings/python/src/openvino/frontend/tensorflow/node_decoder.py @@ -7,7 +7,7 @@ import numpy as np import tensorflow as tf from openvino.frontend.tensorflow.py_tensorflow_frontend import _FrontEndDecoderBase as DecoderBase -from openvino._pyopenvino import PartialShape, Type, OVAny, Tensor +from openvino import PartialShape, Type, OVAny, Tensor def tf_type_to_ov_type(tf_type_int): diff --git a/src/bindings/python/src/openvino/frontend/tensorflow/utils.py b/src/bindings/python/src/openvino/frontend/tensorflow/utils.py index 6e52b82979fb26..7de5dc950be53e 100644 --- a/src/bindings/python/src/openvino/frontend/tensorflow/utils.py +++ b/src/bindings/python/src/openvino/frontend/tensorflow/utils.py @@ -8,7 +8,7 @@ import logging as log import numpy as np import sys -from openvino._pyopenvino import PartialShape, Dimension, Type +from openvino import PartialShape, Dimension, Type from packaging.version import parse, Version from typing import List, Dict, Union diff --git a/src/bindings/python/src/openvino/helpers/packing.py b/src/bindings/python/src/openvino/helpers/packing.py index 74458ddb857722..d0956e09fc6261 100644 --- a/src/bindings/python/src/openvino/helpers/packing.py +++ b/src/bindings/python/src/openvino/helpers/packing.py @@ -5,7 +5,7 @@ import numpy as np from typing import Union -from openvino._pyopenvino import Type, Shape +from openvino import Type, Shape def pack_data(array: np.ndarray, type: Type) -> np.ndarray: diff --git a/src/bindings/python/src/openvino/opset1/ops.py b/src/bindings/python/src/openvino/opset1/ops.py index 32ef9f3794f3e4..fb60cb47d9b423 100644 --- a/src/bindings/python/src/openvino/opset1/ops.py +++ b/src/bindings/python/src/openvino/opset1/ops.py @@ -8,7 +8,7 @@ import numpy as np from functools import partial -from openvino._pyopenvino import Node, PartialShape, Type +from openvino import Node, PartialShape, Type from openvino.op import Constant, Parameter, tensor_iterator from openvino.opset_utils import _get_node_factory from openvino.utils.decorators import binary_op, nameable_op, unary_op diff --git a/src/bindings/python/src/openvino/opset10/ops.py b/src/bindings/python/src/openvino/opset10/ops.py index 3b0b1376bb1ab9..7d240bde287c11 100644 --- a/src/bindings/python/src/openvino/opset10/ops.py +++ b/src/bindings/python/src/openvino/opset10/ops.py @@ -6,7 +6,7 @@ from functools import partial from typing import List, Optional -from openvino._pyopenvino import Node +from openvino import Node from openvino.opset_utils import _get_node_factory from openvino.utils.decorators import nameable_op from openvino.utils.types import ( diff --git a/src/bindings/python/src/openvino/opset11/ops.py b/src/bindings/python/src/openvino/opset11/ops.py index d3a882f9d40768..0d0c354e4c5d8d 100644 --- a/src/bindings/python/src/openvino/opset11/ops.py +++ b/src/bindings/python/src/openvino/opset11/ops.py @@ -6,7 +6,7 @@ from functools import partial from typing import List, Optional -from openvino._pyopenvino import Node +from openvino import Node from openvino.opset_utils import _get_node_factory from openvino.utils.decorators import nameable_op from openvino.utils.types import ( diff --git a/src/bindings/python/src/openvino/opset12/ops.py b/src/bindings/python/src/openvino/opset12/ops.py index a37c6ca1e53617..0025b108f87929 100644 --- a/src/bindings/python/src/openvino/opset12/ops.py +++ b/src/bindings/python/src/openvino/opset12/ops.py @@ -6,7 +6,7 @@ from functools import partial from typing import Optional -from openvino._pyopenvino import Node +from openvino import Node from openvino.opset_utils import _get_node_factory from openvino.utils.decorators import nameable_op from openvino.utils.types import ( diff --git a/src/bindings/python/src/openvino/opset13/ops.py b/src/bindings/python/src/openvino/opset13/ops.py index ad8136c96e989c..8d0877c3d8fbcf 100644 --- a/src/bindings/python/src/openvino/opset13/ops.py +++ b/src/bindings/python/src/openvino/opset13/ops.py @@ -11,7 +11,7 @@ log = logging.getLogger(__name__) -from openvino._pyopenvino import Node, Shape, Type, Output, Tensor +from openvino import Node, Shape, Type, Output, Tensor from openvino.op import Constant, Result from openvino.opset1 import convert_like from openvino.opset_utils import _get_node_factory diff --git a/src/bindings/python/src/openvino/opset14/ops.py b/src/bindings/python/src/openvino/opset14/ops.py index ed672370409a5f..89508a65ad5150 100644 --- a/src/bindings/python/src/openvino/opset14/ops.py +++ b/src/bindings/python/src/openvino/opset14/ops.py @@ -7,7 +7,7 @@ from typing import Union, Optional, List -from openvino._pyopenvino import Node, Type +from openvino import Node, Type from openvino.opset_utils import _get_node_factory from openvino.utils.types import TensorShape from openvino.utils.decorators import nameable_op diff --git a/src/bindings/python/src/openvino/opset15/ops.py b/src/bindings/python/src/openvino/opset15/ops.py index 00bc63d9d2e89f..98008d43bb749f 100644 --- a/src/bindings/python/src/openvino/opset15/ops.py +++ b/src/bindings/python/src/openvino/opset15/ops.py @@ -7,7 +7,7 @@ from typing import List, Literal, Optional import numpy as np -from openvino._pyopenvino import Node, Type +from openvino import Node, Type from openvino.opset1 import convert_like from openvino.opset14 import constant from openvino.opset_utils import _get_node_factory diff --git a/src/bindings/python/src/openvino/opset16/ops.py b/src/bindings/python/src/openvino/opset16/ops.py index aa3d55b74096b0..b91dec1ebc9f44 100644 --- a/src/bindings/python/src/openvino/opset16/ops.py +++ b/src/bindings/python/src/openvino/opset16/ops.py @@ -6,7 +6,7 @@ from functools import partial from typing import Optional -from openvino._pyopenvino import Node +from openvino import Node from openvino.utils.decorators import nameable_op from openvino.opset_utils import _get_node_factory from openvino.utils.types import NodeInput, as_nodes diff --git a/src/bindings/python/src/openvino/opset2/ops.py b/src/bindings/python/src/openvino/opset2/ops.py index 74a9c058195b7e..6350e75500e728 100644 --- a/src/bindings/python/src/openvino/opset2/ops.py +++ b/src/bindings/python/src/openvino/opset2/ops.py @@ -9,7 +9,7 @@ from functools import partial import warnings -from openvino._pyopenvino import Node, Shape +from openvino import Node, Shape from openvino.op import Constant, Parameter from openvino.opset_utils import _get_node_factory from openvino.utils.decorators import binary_op, nameable_op, unary_op diff --git a/src/bindings/python/src/openvino/opset3/ops.py b/src/bindings/python/src/openvino/opset3/ops.py index 8b25f1f50e0a7b..388ebb2df6a117 100644 --- a/src/bindings/python/src/openvino/opset3/ops.py +++ b/src/bindings/python/src/openvino/opset3/ops.py @@ -8,7 +8,7 @@ import numpy as np from functools import partial -from openvino._pyopenvino import Node, Shape +from openvino import Node, Shape from openvino.op import Constant, Parameter from openvino.opset_utils import _get_node_factory from openvino.utils.decorators import binary_op, nameable_op, unary_op diff --git a/src/bindings/python/src/openvino/opset4/ops.py b/src/bindings/python/src/openvino/opset4/ops.py index 6a322615033582..af2e455114c0dd 100644 --- a/src/bindings/python/src/openvino/opset4/ops.py +++ b/src/bindings/python/src/openvino/opset4/ops.py @@ -8,7 +8,7 @@ import numpy as np from functools import partial -from openvino._pyopenvino import Node, Shape +from openvino import Node, Shape from openvino.op import Constant, Parameter from openvino.opset_utils import _get_node_factory from openvino.utils.decorators import binary_op, nameable_op, unary_op diff --git a/src/bindings/python/src/openvino/opset5/ops.py b/src/bindings/python/src/openvino/opset5/ops.py index 1082fcd113cea8..a7d3b8e63e07d0 100644 --- a/src/bindings/python/src/openvino/opset5/ops.py +++ b/src/bindings/python/src/openvino/opset5/ops.py @@ -8,7 +8,7 @@ import numpy as np from functools import partial -from openvino._pyopenvino import Node, Shape +from openvino import Node, Shape from openvino.op import Constant, Parameter, loop from openvino.opset_utils import _get_node_factory from openvino.utils.decorators import binary_op, nameable_op, unary_op diff --git a/src/bindings/python/src/openvino/opset6/ops.py b/src/bindings/python/src/openvino/opset6/ops.py index 2b75dc2d79cc42..79b8ac697e4b07 100644 --- a/src/bindings/python/src/openvino/opset6/ops.py +++ b/src/bindings/python/src/openvino/opset6/ops.py @@ -9,7 +9,7 @@ from functools import partial, singledispatch -from openvino._pyopenvino import Node, Type, PartialShape, Output, Shape +from openvino import Node, Type, PartialShape, Output, Shape from openvino.op import assign, Constant, Parameter from openvino.op import read_value as _read_value from openvino.op.util import VariableInfo, Variable diff --git a/src/bindings/python/src/openvino/opset7/ops.py b/src/bindings/python/src/openvino/opset7/ops.py index 584a9e28f6cd35..42111df88b9237 100644 --- a/src/bindings/python/src/openvino/opset7/ops.py +++ b/src/bindings/python/src/openvino/opset7/ops.py @@ -7,7 +7,7 @@ from typing import Callable, Iterable, List, Optional, Set, Union import numpy as np -from openvino._pyopenvino import Node, Shape +from openvino import Node, Shape from openvino.op import Constant, Parameter from openvino.opset_utils import _get_node_factory from openvino.utils.decorators import binary_op, nameable_op, unary_op diff --git a/src/bindings/python/src/openvino/opset8/ops.py b/src/bindings/python/src/openvino/opset8/ops.py index 5a04bb2dbdb904..245e4e630eb013 100644 --- a/src/bindings/python/src/openvino/opset8/ops.py +++ b/src/bindings/python/src/openvino/opset8/ops.py @@ -9,7 +9,7 @@ import numpy as np from openvino.exceptions import UserInputError from openvino.op import Constant, Parameter, if_op -from openvino._pyopenvino import Node +from openvino import Node from openvino.opset_utils import _get_node_factory from openvino.utils.decorators import nameable_op from openvino.utils.input_validation import ( diff --git a/src/bindings/python/src/openvino/opset9/ops.py b/src/bindings/python/src/openvino/opset9/ops.py index 1c7b574f0915b6..22254c06febb4e 100644 --- a/src/bindings/python/src/openvino/opset9/ops.py +++ b/src/bindings/python/src/openvino/opset9/ops.py @@ -7,7 +7,7 @@ from typing import Optional import numpy as np -from openvino._pyopenvino import Node +from openvino import Node from openvino.opset_utils import _get_node_factory from openvino.utils.decorators import nameable_op from openvino.utils.types import ( diff --git a/src/bindings/python/src/openvino/opset_utils.py b/src/bindings/python/src/openvino/opset_utils.py index 50150e12b072b7..da578a30f82f54 100644 --- a/src/bindings/python/src/openvino/opset_utils.py +++ b/src/bindings/python/src/openvino/opset_utils.py @@ -5,7 +5,6 @@ from typing import Optional import numpy as np -from openvino._pyopenvino import Node from openvino.utils.decorators import nameable_op from openvino.utils.node_factory import NodeFactory from openvino.utils.types import ( diff --git a/src/bindings/python/src/openvino/preprocess/torchvision/torchvision_preprocessing.py b/src/bindings/python/src/openvino/preprocess/torchvision/torchvision_preprocessing.py index 224962da54f9ec..945996502afd12 100644 --- a/src/bindings/python/src/openvino/preprocess/torchvision/torchvision_preprocessing.py +++ b/src/bindings/python/src/openvino/preprocess/torchvision/torchvision_preprocessing.py @@ -21,9 +21,9 @@ from torchvision.transforms import InterpolationMode import openvino.runtime as ov -import openvino.runtime.opset11 as ops -from openvino._pyopenvino import Layout, Type -from openvino.runtime.utils.decorators import custom_preprocess_function +import openvino.opset11 as ops +from openvino import Layout, Type +from openvino.utils.decorators import custom_preprocess_function from openvino.preprocess import PrePostProcessor, ResizeAlgorithm, ColorFormat diff --git a/src/bindings/python/src/openvino/utils/broadcasting.py b/src/bindings/python/src/openvino/utils/broadcasting.py index a178fffbc07953..300170ceeb4b7e 100644 --- a/src/bindings/python/src/openvino/utils/broadcasting.py +++ b/src/bindings/python/src/openvino/utils/broadcasting.py @@ -5,7 +5,7 @@ import logging from typing import List, Optional -from openvino._pyopenvino import AxisSet, Node +from openvino import AxisSet from openvino.utils.types import ( NodeInput, TensorShape, diff --git a/src/bindings/python/src/openvino/utils/decorators.py b/src/bindings/python/src/openvino/utils/decorators.py index 7f0b7892b20647..9418c359d129e8 100644 --- a/src/bindings/python/src/openvino/utils/decorators.py +++ b/src/bindings/python/src/openvino/utils/decorators.py @@ -6,7 +6,7 @@ from inspect import signature from typing import Any, Callable, Dict, Optional, Union, get_origin, get_args -from openvino._pyopenvino import Node, Output +from openvino import Node, Output from openvino.utils.types import NodeInput, as_node, as_nodes diff --git a/src/bindings/python/src/openvino/utils/node_factory.py b/src/bindings/python/src/openvino/utils/node_factory.py index 35f2e004565798..143c458b9356e2 100644 --- a/src/bindings/python/src/openvino/utils/node_factory.py +++ b/src/bindings/python/src/openvino/utils/node_factory.py @@ -10,7 +10,7 @@ from openvino._pyopenvino import NodeFactory as _NodeFactory -from openvino._pyopenvino import Node, Output, Extension +from openvino import Node, Output, Extension from openvino.exceptions import UserInputError diff --git a/src/bindings/python/src/openvino/utils/reduction.py b/src/bindings/python/src/openvino/utils/reduction.py index 88bf407d02fbb3..e6be6d0ac9a104 100644 --- a/src/bindings/python/src/openvino/utils/reduction.py +++ b/src/bindings/python/src/openvino/utils/reduction.py @@ -4,7 +4,7 @@ from typing import Iterable, Optional -from openvino._pyopenvino import Node +from openvino import Node def get_reduction_axes(node: Node, reduction_axes: Optional[Iterable[int]]) -> Iterable[int]: diff --git a/src/bindings/python/src/openvino/utils/types.py b/src/bindings/python/src/openvino/utils/types.py index 1e9d71a7e4a5b3..b3543739741d94 100644 --- a/src/bindings/python/src/openvino/utils/types.py +++ b/src/bindings/python/src/openvino/utils/types.py @@ -10,7 +10,7 @@ import numpy as np from openvino.exceptions import OVTypeError -from openvino._pyopenvino import Node, Shape, Output, Type +from openvino import Node, Shape, Output, Type from openvino.op import Constant log = logging.getLogger(__name__) diff --git a/tools/benchmark_tool/openvino/__init__.py b/tools/benchmark_tool/openvino/__init__.py index ddfa5431def7c2..4f7c1568b45c03 100644 --- a/tools/benchmark_tool/openvino/__init__.py +++ b/tools/benchmark_tool/openvino/__init__.py @@ -17,22 +17,18 @@ # # This __init__.py forces checking of runtime modules to propagate errors. # # It is not compared with init files from openvino-dev package. # # -# Import all public modules -from openvino import runtime as runtime -from openvino import frontend as frontend -from openvino import helpers as helpers -from openvino import experimental as experimental -from openvino import preprocess as preprocess -from openvino import utils as utils -from openvino import properties as properties - -# Import most important classes and functions from openvino.runtime -from openvino.ie_api import Model -from openvino.ie_api import Core -from openvino.ie_api import CompiledModel -from openvino.ie_api import InferRequest -from openvino.ie_api import AsyncInferQueue +# Openvino pybind bindings +from openvino._pyopenvino import AxisSet +from openvino._pyopenvino import AxisVector +from openvino._pyopenvino import ConstOutput +from openvino._pyopenvino import Coordinate +from openvino._pyopenvino import CoordinateDiff +from openvino._pyopenvino import DiscreteTypeInfo +from openvino._pyopenvino import Extension +from openvino._pyopenvino import ProfilingInfo +from openvino._pyopenvino import RTMap +from openvino._pyopenvino import Version from openvino._pyopenvino import Symbol from openvino._pyopenvino import Dimension from openvino._pyopenvino import Input @@ -45,20 +41,25 @@ from openvino._pyopenvino import Type from openvino._pyopenvino import Tensor from openvino._pyopenvino import OVAny - -from openvino.ie_api import compile_model from openvino._pyopenvino import get_batch from openvino._pyopenvino import set_batch from openvino._pyopenvino import serialize from openvino._pyopenvino import shutdown -from openvino.ie_api import tensor_from_file from openvino._pyopenvino import save_model from openvino._pyopenvino import layout_helpers - from openvino._pyopenvino import RemoteContext from openvino._pyopenvino import RemoteTensor from openvino._pyopenvino import Op +# Python extended classes and functions +from openvino.ie_api import Model +from openvino.ie_api import Core +from openvino.ie_api import CompiledModel +from openvino.ie_api import InferRequest +from openvino.ie_api import AsyncInferQueue +from openvino.ie_api import tensor_from_file +from openvino.ie_api import compile_model + # libva related: from openvino._pyopenvino import VAContext from openvino._pyopenvino import VASurfaceTensor @@ -67,6 +68,15 @@ from openvino._pyopenvino import get_version __version__ = get_version() +# Import all public modules +from openvino import runtime as runtime +from openvino import frontend as frontend +from openvino import helpers as helpers +from openvino import experimental as experimental +from openvino import preprocess as preprocess +from openvino import utils as utils +from openvino import properties as properties + # Tools try: # Model Conversion API - ovc should reside in the main namespace diff --git a/tools/ovc/openvino/__init__.py b/tools/ovc/openvino/__init__.py index ddfa5431def7c2..4f7c1568b45c03 100644 --- a/tools/ovc/openvino/__init__.py +++ b/tools/ovc/openvino/__init__.py @@ -17,22 +17,18 @@ # # This __init__.py forces checking of runtime modules to propagate errors. # # It is not compared with init files from openvino-dev package. # # -# Import all public modules -from openvino import runtime as runtime -from openvino import frontend as frontend -from openvino import helpers as helpers -from openvino import experimental as experimental -from openvino import preprocess as preprocess -from openvino import utils as utils -from openvino import properties as properties - -# Import most important classes and functions from openvino.runtime -from openvino.ie_api import Model -from openvino.ie_api import Core -from openvino.ie_api import CompiledModel -from openvino.ie_api import InferRequest -from openvino.ie_api import AsyncInferQueue +# Openvino pybind bindings +from openvino._pyopenvino import AxisSet +from openvino._pyopenvino import AxisVector +from openvino._pyopenvino import ConstOutput +from openvino._pyopenvino import Coordinate +from openvino._pyopenvino import CoordinateDiff +from openvino._pyopenvino import DiscreteTypeInfo +from openvino._pyopenvino import Extension +from openvino._pyopenvino import ProfilingInfo +from openvino._pyopenvino import RTMap +from openvino._pyopenvino import Version from openvino._pyopenvino import Symbol from openvino._pyopenvino import Dimension from openvino._pyopenvino import Input @@ -45,20 +41,25 @@ from openvino._pyopenvino import Type from openvino._pyopenvino import Tensor from openvino._pyopenvino import OVAny - -from openvino.ie_api import compile_model from openvino._pyopenvino import get_batch from openvino._pyopenvino import set_batch from openvino._pyopenvino import serialize from openvino._pyopenvino import shutdown -from openvino.ie_api import tensor_from_file from openvino._pyopenvino import save_model from openvino._pyopenvino import layout_helpers - from openvino._pyopenvino import RemoteContext from openvino._pyopenvino import RemoteTensor from openvino._pyopenvino import Op +# Python extended classes and functions +from openvino.ie_api import Model +from openvino.ie_api import Core +from openvino.ie_api import CompiledModel +from openvino.ie_api import InferRequest +from openvino.ie_api import AsyncInferQueue +from openvino.ie_api import tensor_from_file +from openvino.ie_api import compile_model + # libva related: from openvino._pyopenvino import VAContext from openvino._pyopenvino import VASurfaceTensor @@ -67,6 +68,15 @@ from openvino._pyopenvino import get_version __version__ = get_version() +# Import all public modules +from openvino import runtime as runtime +from openvino import frontend as frontend +from openvino import helpers as helpers +from openvino import experimental as experimental +from openvino import preprocess as preprocess +from openvino import utils as utils +from openvino import properties as properties + # Tools try: # Model Conversion API - ovc should reside in the main namespace From 6e857a1f84679cb01c6220e03b45725dbfacc1d5 Mon Sep 17 00:00:00 2001 From: Alicja Miloszewska Date: Mon, 18 Nov 2024 16:03:53 +0100 Subject: [PATCH 28/38] remove circular import and update ovc Signed-off-by: Alicja Miloszewska --- src/bindings/python/src/openvino/__init__.py | 9 --------- tools/benchmark_tool/openvino/__init__.py | 9 --------- tools/ovc/openvino/__init__.py | 9 --------- tools/ovc/openvino/tools/ovc/__init__.py | 2 +- tools/ovc/openvino/tools/ovc/cli_parser.py | 2 +- tools/ovc/openvino/tools/ovc/convert.py | 2 +- tools/ovc/openvino/tools/ovc/convert_impl.py | 4 ++-- tools/ovc/openvino/tools/ovc/main.py | 2 +- tools/ovc/openvino/tools/ovc/moc_frontend/analysis.py | 5 +++-- tools/ovc/openvino/tools/ovc/moc_frontend/extractor.py | 4 ++-- .../ovc/openvino/tools/ovc/moc_frontend/layout_utils.py | 4 ++-- tools/ovc/openvino/tools/ovc/moc_frontend/moc_emit_ir.py | 2 +- tools/ovc/openvino/tools/ovc/moc_frontend/pipeline.py | 4 ++-- .../ovc/openvino/tools/ovc/moc_frontend/preprocessing.py | 3 ++- .../tools/ovc/moc_frontend/pytorch_frontend_utils.py | 2 +- tools/ovc/openvino/tools/ovc/moc_frontend/shape_utils.py | 2 +- tools/ovc/openvino/tools/ovc/moc_frontend/type_utils.py | 2 +- tools/ovc/openvino/tools/ovc/telemetry_utils.py | 4 ++-- tools/ovc/openvino/tools/ovc/version.py | 4 ++-- 19 files changed, 25 insertions(+), 50 deletions(-) diff --git a/src/bindings/python/src/openvino/__init__.py b/src/bindings/python/src/openvino/__init__.py index 4f7c1568b45c03..359c369f18ab6e 100644 --- a/src/bindings/python/src/openvino/__init__.py +++ b/src/bindings/python/src/openvino/__init__.py @@ -68,15 +68,6 @@ from openvino._pyopenvino import get_version __version__ = get_version() -# Import all public modules -from openvino import runtime as runtime -from openvino import frontend as frontend -from openvino import helpers as helpers -from openvino import experimental as experimental -from openvino import preprocess as preprocess -from openvino import utils as utils -from openvino import properties as properties - # Tools try: # Model Conversion API - ovc should reside in the main namespace diff --git a/tools/benchmark_tool/openvino/__init__.py b/tools/benchmark_tool/openvino/__init__.py index 4f7c1568b45c03..359c369f18ab6e 100644 --- a/tools/benchmark_tool/openvino/__init__.py +++ b/tools/benchmark_tool/openvino/__init__.py @@ -68,15 +68,6 @@ from openvino._pyopenvino import get_version __version__ = get_version() -# Import all public modules -from openvino import runtime as runtime -from openvino import frontend as frontend -from openvino import helpers as helpers -from openvino import experimental as experimental -from openvino import preprocess as preprocess -from openvino import utils as utils -from openvino import properties as properties - # Tools try: # Model Conversion API - ovc should reside in the main namespace diff --git a/tools/ovc/openvino/__init__.py b/tools/ovc/openvino/__init__.py index 4f7c1568b45c03..359c369f18ab6e 100644 --- a/tools/ovc/openvino/__init__.py +++ b/tools/ovc/openvino/__init__.py @@ -68,15 +68,6 @@ from openvino._pyopenvino import get_version __version__ = get_version() -# Import all public modules -from openvino import runtime as runtime -from openvino import frontend as frontend -from openvino import helpers as helpers -from openvino import experimental as experimental -from openvino import preprocess as preprocess -from openvino import utils as utils -from openvino import properties as properties - # Tools try: # Model Conversion API - ovc should reside in the main namespace diff --git a/tools/ovc/openvino/tools/ovc/__init__.py b/tools/ovc/openvino/tools/ovc/__init__.py index 5b750b58969d24..e16767708a7b52 100644 --- a/tools/ovc/openvino/tools/ovc/__init__.py +++ b/tools/ovc/openvino/tools/ovc/__init__.py @@ -11,7 +11,7 @@ except importlib_metadata.PackageNotFoundError: optimum_version = None -from openvino.runtime import get_version as get_rt_version # pylint: disable=no-name-in-module,import-error +from openvino._pyopenvino import get_version as get_rt_version # pylint: disable=no-name-in-module,import-error telemetry = init_ovc_telemetry('OpenVINO') telemetry.send_event("ov", "import", "general_import") diff --git a/tools/ovc/openvino/tools/ovc/cli_parser.py b/tools/ovc/openvino/tools/ovc/cli_parser.py index ab4099a17f7093..2f6d10c15f002b 100644 --- a/tools/ovc/openvino/tools/ovc/cli_parser.py +++ b/tools/ovc/openvino/tools/ovc/cli_parser.py @@ -10,7 +10,7 @@ from typing import List, Union import openvino -from openvino.runtime import PartialShape, Dimension, Type # pylint: disable=no-name-in-module,import-error +from openvino._pyopenvino import PartialShape, Dimension, Type # pylint: disable=no-name-in-module,import-error from openvino.tools.ovc.error import Error from openvino.tools.ovc.help import get_convert_model_help_specifics from openvino.tools.ovc.moc_frontend.shape_utils import to_partial_shape, is_shape_type diff --git a/tools/ovc/openvino/tools/ovc/convert.py b/tools/ovc/openvino/tools/ovc/convert.py index 77693ad4be2ca1..a66b9ce5e4f072 100644 --- a/tools/ovc/openvino/tools/ovc/convert.py +++ b/tools/ovc/openvino/tools/ovc/convert.py @@ -4,7 +4,7 @@ import pathlib from typing import Any -from openvino.runtime import Model # pylint: disable=no-name-in-module,import-error +from openvino.ie_api import Model # pylint: disable=no-name-in-module,import-error from openvino.tools.ovc.cli_parser import get_all_cli_parser from openvino.tools.ovc.convert_impl import _convert from openvino.tools.ovc.logger import get_logger_state, restore_logger_state diff --git a/tools/ovc/openvino/tools/ovc/convert_impl.py b/tools/ovc/openvino/tools/ovc/convert_impl.py index aef054f8aafc24..a86dabc1d8c5b6 100644 --- a/tools/ovc/openvino/tools/ovc/convert_impl.py +++ b/tools/ovc/openvino/tools/ovc/convert_impl.py @@ -44,8 +44,8 @@ # pylint: disable=no-name-in-module,import-error from openvino.frontend import FrontEndManager, OpConversionFailure, TelemetryExtension -from openvino.runtime import get_version as get_rt_version -from openvino.runtime import PartialShape +from openvino._pyopenvino import get_version as get_rt_version +from openvino._pyopenvino import PartialShape try: from openvino.frontend.tensorflow.utils import create_tf_graph_iterator, type_supported_by_tf_fe, \ diff --git a/tools/ovc/openvino/tools/ovc/main.py b/tools/ovc/openvino/tools/ovc/main.py index 1118999dcd5a7b..242514dc635aca 100644 --- a/tools/ovc/openvino/tools/ovc/main.py +++ b/tools/ovc/openvino/tools/ovc/main.py @@ -17,7 +17,7 @@ import_openvino_tokenizers() # pylint: disable=no-name-in-module,import-error -from openvino.runtime import save_model +from openvino._pyopenvino import save_model def main(): diff --git a/tools/ovc/openvino/tools/ovc/moc_frontend/analysis.py b/tools/ovc/openvino/tools/ovc/moc_frontend/analysis.py index 827a8e4338af96..9c659b44c73ea6 100644 --- a/tools/ovc/openvino/tools/ovc/moc_frontend/analysis.py +++ b/tools/ovc/openvino/tools/ovc/moc_frontend/analysis.py @@ -3,8 +3,9 @@ import json -from openvino.runtime import PartialShape, Model, Type # pylint: disable=no-name-in-module,import-error -from openvino.runtime.utils.types import get_dtype # pylint: disable=no-name-in-module,import-error +from openvino._pyopenvino import PartialShape, Type +from openvino.ie_api import Model # pylint: disable=no-name-in-module,import-error +from openvino.utils.types import get_dtype # pylint: disable=no-name-in-module,import-error def json_model_analysis_dump(framework_model: Model): diff --git a/tools/ovc/openvino/tools/ovc/moc_frontend/extractor.py b/tools/ovc/openvino/tools/ovc/moc_frontend/extractor.py index 3693a54230f9c2..ca223365d41b4b 100644 --- a/tools/ovc/openvino/tools/ovc/moc_frontend/extractor.py +++ b/tools/ovc/openvino/tools/ovc/moc_frontend/extractor.py @@ -377,7 +377,7 @@ def convert_params_lists_to_dicts(input_model, input_user_data_types_dict - dictionary where key is input name, value is type from user; freeze_placeholder - dictionary where key is input name, value is input value from user; """ - from openvino.runtime import PartialShape # pylint: disable=no-name-in-module,import-error + from openvino._pyopenvino import PartialShape # pylint: disable=no-name-in-module,import-error model_inputs = input_model.get_inputs() input_user_data_types_dict = {} input_user_shapes_dict = {} @@ -396,7 +396,7 @@ def convert_params_lists_to_dicts(input_model, # input_user_data_types is list only if unnamed inputs were used if isinstance(input_user_data_types, list): - from openvino.runtime import Type # pylint: disable=no-name-in-module,import-error + from openvino._pyopenvino import Type # pylint: disable=no-name-in-module,import-error if input_user_shapes_dict is None: input_user_shapes_dict = {} diff --git a/tools/ovc/openvino/tools/ovc/moc_frontend/layout_utils.py b/tools/ovc/openvino/tools/ovc/moc_frontend/layout_utils.py index 68c4406622f9b6..597f60abcc381e 100644 --- a/tools/ovc/openvino/tools/ovc/moc_frontend/layout_utils.py +++ b/tools/ovc/openvino/tools/ovc/moc_frontend/layout_utils.py @@ -3,7 +3,7 @@ from typing import Callable -from openvino.runtime import PartialShape # pylint: disable=no-name-in-module,import-error +from openvino._pyopenvino import PartialShape # pylint: disable=no-name-in-module,import-error from openvino.tools.ovc.error import Error from openvino.tools.ovc.utils import refer_to_faq_msg @@ -62,7 +62,7 @@ def get_dimension_index_by_label(input_shape: PartialShape, input_names: list, l layout = layout_value.get('source_layout', None) if layout is None: return default_dim, True - from openvino.runtime import Layout # pylint: disable=no-name-in-module,import-error + from openvino._pyopenvino import Layout # pylint: disable=no-name-in-module,import-error layout_parsed = Layout(layout) if layout_parsed.has_name(dimension_label): return layout_parsed.get_index_by_name(dimension_label), False diff --git a/tools/ovc/openvino/tools/ovc/moc_frontend/moc_emit_ir.py b/tools/ovc/openvino/tools/ovc/moc_frontend/moc_emit_ir.py index 9e8e2507dea1a3..e4658edb51c37f 100644 --- a/tools/ovc/openvino/tools/ovc/moc_frontend/moc_emit_ir.py +++ b/tools/ovc/openvino/tools/ovc/moc_frontend/moc_emit_ir.py @@ -3,7 +3,7 @@ import argparse -from openvino.runtime import Model # pylint: disable=no-name-in-module,import-error +from openvino.ie_api import Model # pylint: disable=no-name-in-module,import-error from openvino.tools.ovc.moc_frontend.preprocessing import apply_preprocessing diff --git a/tools/ovc/openvino/tools/ovc/moc_frontend/pipeline.py b/tools/ovc/openvino/tools/ovc/moc_frontend/pipeline.py index 4a297707a0e537..1857f00d9f2716 100644 --- a/tools/ovc/openvino/tools/ovc/moc_frontend/pipeline.py +++ b/tools/ovc/openvino/tools/ovc/moc_frontend/pipeline.py @@ -11,8 +11,8 @@ from openvino.frontend import FrontEnd, InputModel, NotImplementedFailure, \ Place # pylint: disable=no-name-in-module,import-error -from openvino.runtime import PartialShape, Type # pylint: disable=no-name-in-module,import-error -from openvino.runtime.utils.types import get_element_type, \ +from openvino._pyopenvino import PartialShape, Type # pylint: disable=no-name-in-module,import-error +from openvino.utils.types import get_element_type, \ get_numpy_ctype # pylint: disable=no-name-in-module,import-error from openvino.tools.ovc.moc_frontend.analysis import json_model_analysis_dump from openvino.tools.ovc.moc_frontend.extractor import fe_user_data_repack, convert_params_lists_to_dicts, \ diff --git a/tools/ovc/openvino/tools/ovc/moc_frontend/preprocessing.py b/tools/ovc/openvino/tools/ovc/moc_frontend/preprocessing.py index 0195960065d88e..b23942a28463ad 100644 --- a/tools/ovc/openvino/tools/ovc/moc_frontend/preprocessing.py +++ b/tools/ovc/openvino/tools/ovc/moc_frontend/preprocessing.py @@ -6,7 +6,8 @@ from openvino.preprocess import PrePostProcessor # pylint: disable=no-name-in-module,import-error # pylint: disable=no-name-in-module,import-error -from openvino.runtime import Model, Layout, PartialShape +from openvino.ie_api import Model +from openvino._pyopenvino import Layout, PartialShape from openvino.tools.ovc.error import Error from openvino.tools.ovc.moc_frontend.layout_utils import update_layout_to_dict from openvino.tools.ovc.utils import refer_to_faq_msg diff --git a/tools/ovc/openvino/tools/ovc/moc_frontend/pytorch_frontend_utils.py b/tools/ovc/openvino/tools/ovc/moc_frontend/pytorch_frontend_utils.py index 486f72d87fd89d..6355abad17287d 100644 --- a/tools/ovc/openvino/tools/ovc/moc_frontend/pytorch_frontend_utils.py +++ b/tools/ovc/openvino/tools/ovc/moc_frontend/pytorch_frontend_utils.py @@ -8,7 +8,7 @@ import numpy as np # pylint: disable=no-name-in-module,import-error -from openvino.runtime import Tensor, PartialShape +from openvino._pyopenvino import Tensor, PartialShape from openvino.tools.ovc.cli_parser import single_input_to_input_cut_info, _InputCutInfo from openvino.tools.ovc.error import Error diff --git a/tools/ovc/openvino/tools/ovc/moc_frontend/shape_utils.py b/tools/ovc/openvino/tools/ovc/moc_frontend/shape_utils.py index 739f0f53b0ef16..a797db530d4bb5 100644 --- a/tools/ovc/openvino/tools/ovc/moc_frontend/shape_utils.py +++ b/tools/ovc/openvino/tools/ovc/moc_frontend/shape_utils.py @@ -4,7 +4,7 @@ import sys import numpy as np -from openvino.runtime import Shape, PartialShape, Dimension # pylint: disable=no-name-in-module,import-error +from openvino._pyopenvino import Shape, PartialShape, Dimension # pylint: disable=no-name-in-module,import-error from openvino.tools.ovc.error import Error diff --git a/tools/ovc/openvino/tools/ovc/moc_frontend/type_utils.py b/tools/ovc/openvino/tools/ovc/moc_frontend/type_utils.py index b7f7c8b0abc1ce..57dcf6070fc5af 100644 --- a/tools/ovc/openvino/tools/ovc/moc_frontend/type_utils.py +++ b/tools/ovc/openvino/tools/ovc/moc_frontend/type_utils.py @@ -6,7 +6,7 @@ import numpy as np import openvino as ov -from openvino.runtime import Type +from openvino._pyopenvino import Type def is_type(val): diff --git a/tools/ovc/openvino/tools/ovc/telemetry_utils.py b/tools/ovc/openvino/tools/ovc/telemetry_utils.py index 412d9b9607541e..155d88a6c0f91e 100644 --- a/tools/ovc/openvino/tools/ovc/telemetry_utils.py +++ b/tools/ovc/openvino/tools/ovc/telemetry_utils.py @@ -4,7 +4,7 @@ import argparse import numbers import os -from openvino.runtime import get_version as get_rt_version # pylint: disable=no-name-in-module,import-error +from openvino._pyopenvino import get_version as get_rt_version # pylint: disable=no-name-in-module,import-error from openvino.tools.ovc.cli_parser import get_params_with_paths_list from openvino.tools.ovc.telemetry_params import telemetry_params from openvino.tools.ovc.utils import check_values_equal @@ -89,7 +89,7 @@ def send_conversion_result(conversion_result: str, need_shutdown=False): def arg_to_str(arg): # This method converts to string only known types, otherwise returns string with name of the type - from openvino.runtime import PartialShape, Shape, Type, Layout # pylint: disable=no-name-in-module,import-error + from openvino._pyopenvino import PartialShape, Shape, Type, Layout # pylint: disable=no-name-in-module,import-error if isinstance(arg, (PartialShape, Shape, Type, Layout)): return str(arg) if isinstance(arg, (str, numbers.Number, bool)): diff --git a/tools/ovc/openvino/tools/ovc/version.py b/tools/ovc/openvino/tools/ovc/version.py index 34e0128af929da..178f45494fb7a5 100644 --- a/tools/ovc/openvino/tools/ovc/version.py +++ b/tools/ovc/openvino/tools/ovc/version.py @@ -3,7 +3,7 @@ import re -from openvino.runtime import get_version as get_ie_version # pylint: disable=no-name-in-module,import-error +from openvino._pyopenvino import get_version as get_ie_version # pylint: disable=no-name-in-module,import-error def extract_release_version(version: str): @@ -29,7 +29,7 @@ def simplify_version(version: str): def get_simplified_ie_version(version=None): - from openvino.runtime import get_version # pylint: disable=no-name-in-module,import-error + from openvino._pyopenvino import get_version # pylint: disable=no-name-in-module,import-error if version is None: version = get_version() From 914174705baed37f0900abd32b9637d96de46edb Mon Sep 17 00:00:00 2001 From: Alicja Miloszewska Date: Mon, 18 Nov 2024 16:07:00 +0100 Subject: [PATCH 29/38] fix comment Signed-off-by: Alicja Miloszewska --- src/bindings/python/src/openvino/__init__.py | 2 +- tools/benchmark_tool/openvino/__init__.py | 2 +- tools/ovc/openvino/__init__.py | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/bindings/python/src/openvino/__init__.py b/src/bindings/python/src/openvino/__init__.py index 359c369f18ab6e..df4cc25f101a72 100644 --- a/src/bindings/python/src/openvino/__init__.py +++ b/src/bindings/python/src/openvino/__init__.py @@ -18,7 +18,7 @@ # # It is not compared with init files from openvino-dev package. # # -# Openvino pybind bindings +# Openvino pybind bindings from openvino._pyopenvino import AxisSet from openvino._pyopenvino import AxisVector from openvino._pyopenvino import ConstOutput diff --git a/tools/benchmark_tool/openvino/__init__.py b/tools/benchmark_tool/openvino/__init__.py index 359c369f18ab6e..df4cc25f101a72 100644 --- a/tools/benchmark_tool/openvino/__init__.py +++ b/tools/benchmark_tool/openvino/__init__.py @@ -18,7 +18,7 @@ # # It is not compared with init files from openvino-dev package. # # -# Openvino pybind bindings +# Openvino pybind bindings from openvino._pyopenvino import AxisSet from openvino._pyopenvino import AxisVector from openvino._pyopenvino import ConstOutput diff --git a/tools/ovc/openvino/__init__.py b/tools/ovc/openvino/__init__.py index 359c369f18ab6e..df4cc25f101a72 100644 --- a/tools/ovc/openvino/__init__.py +++ b/tools/ovc/openvino/__init__.py @@ -18,7 +18,7 @@ # # It is not compared with init files from openvino-dev package. # # -# Openvino pybind bindings +# Openvino pybind bindings from openvino._pyopenvino import AxisSet from openvino._pyopenvino import AxisVector from openvino._pyopenvino import ConstOutput From e302e69db1dafc2f6e4a553e1962a8801f2741ef Mon Sep 17 00:00:00 2001 From: Alicja Miloszewska Date: Tue, 19 Nov 2024 11:35:59 +0100 Subject: [PATCH 30/38] Remove direct imports from ie_api.py Signed-off-by: Alicja Miloszewska --- src/bindings/python/src/openvino/frontend/frontend.py | 2 +- .../src/openvino/frontend/pytorch/torchdynamo/backend_utils.py | 2 +- .../src/openvino/frontend/pytorch/torchdynamo/compile.py | 3 +-- .../src/openvino/frontend/pytorch/torchdynamo/execute.py | 3 +-- 4 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/bindings/python/src/openvino/frontend/frontend.py b/src/bindings/python/src/openvino/frontend/frontend.py index bd975f203bc34c..6a16d5a573b7d7 100644 --- a/src/bindings/python/src/openvino/frontend/frontend.py +++ b/src/bindings/python/src/openvino/frontend/frontend.py @@ -7,7 +7,7 @@ from openvino._pyopenvino import FrontEnd as FrontEndBase from openvino._pyopenvino import FrontEndManager as FrontEndManagerBase from openvino._pyopenvino import InputModel -from openvino.ie_api import Model +from openvino import Model class FrontEnd(FrontEndBase): diff --git a/src/bindings/python/src/openvino/frontend/pytorch/torchdynamo/backend_utils.py b/src/bindings/python/src/openvino/frontend/pytorch/torchdynamo/backend_utils.py index 288acaba956dcf..c9a772b3feac42 100644 --- a/src/bindings/python/src/openvino/frontend/pytorch/torchdynamo/backend_utils.py +++ b/src/bindings/python/src/openvino/frontend/pytorch/torchdynamo/backend_utils.py @@ -5,7 +5,7 @@ # mypy: ignore-errors from typing import Optional, Any -from openvino.ie_api import Core +from openvino import Core def _get_device(options) -> Optional[Any]: diff --git a/src/bindings/python/src/openvino/frontend/pytorch/torchdynamo/compile.py b/src/bindings/python/src/openvino/frontend/pytorch/torchdynamo/compile.py index 90c6cba289b704..ca8d5478e76c15 100644 --- a/src/bindings/python/src/openvino/frontend/pytorch/torchdynamo/compile.py +++ b/src/bindings/python/src/openvino/frontend/pytorch/torchdynamo/compile.py @@ -14,8 +14,7 @@ from openvino.frontend import FrontEndManager from openvino.frontend.pytorch.fx_decoder import TorchFXPythonDecoder -from openvino.ie_api import Core -from openvino import Type, PartialShape, serialize +from openvino import Core, Type, PartialShape, serialize from openvino.frontend.pytorch.torchdynamo.backend_utils import _get_cache_dir, _get_device, _get_config, _is_cache_dir_in_config from typing import Callable, Optional diff --git a/src/bindings/python/src/openvino/frontend/pytorch/torchdynamo/execute.py b/src/bindings/python/src/openvino/frontend/pytorch/torchdynamo/execute.py index 8f07356bf2af5e..7527ad7acb37a4 100644 --- a/src/bindings/python/src/openvino/frontend/pytorch/torchdynamo/execute.py +++ b/src/bindings/python/src/openvino/frontend/pytorch/torchdynamo/execute.py @@ -20,8 +20,7 @@ from openvino.frontend.pytorch.fx_decoder import TorchFXPythonDecoder from openvino.frontend.pytorch.torchdynamo.partition import Partitioner from openvino.frontend.pytorch.torchdynamo.compile import openvino_compile -from openvino.ie_api import Core -from openvino import Type, PartialShape +from openvino import Core, Type, PartialShape from openvino.frontend.pytorch.torchdynamo.backend_utils import _get_cache_dir, _get_device, _get_aot_autograd from typing import Callable, Optional, Any From fa1416aca7a0184159fe2358b14c814941bb6f9b Mon Sep 17 00:00:00 2001 From: Alicja Miloszewska Date: Tue, 19 Nov 2024 16:06:04 +0100 Subject: [PATCH 31/38] Replace .. with os.pardir Signed-off-by: Alicja Miloszewska --- src/bindings/python/src/openvino/build_utils.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/bindings/python/src/openvino/build_utils.py b/src/bindings/python/src/openvino/build_utils.py index d02e212bf02320..79e61923685e6d 100644 --- a/src/bindings/python/src/openvino/build_utils.py +++ b/src/bindings/python/src/openvino/build_utils.py @@ -19,9 +19,9 @@ def _add_openvino_libs_to_search_path() -> None: if os.path.isdir(os.path.join(os.path.dirname(__file__), "libs")): # looking for the libs in the pip installation path. openvino_libs.append(os.path.join(os.path.dirname(__file__), "libs")) - elif os.path.isdir(os.path.join(os.path.dirname(__file__), "..", "..", "..", "Library", "bin")): + elif os.path.isdir(os.path.join(os.path.dirname(__file__), os.pardir, os.pardir, os.pardir, "Library", "bin")): # looking for the libs in the conda installation path - openvino_libs.append(os.path.join(os.path.dirname(__file__), "..", "..", "..", "Library", "bin")) + openvino_libs.append(os.path.join(os.path.dirname(__file__), os.pardir, os.pardir, os.pardir, "Library", "bin")) else: # setupvars.bat script set all libs paths to OPENVINO_LIB_PATHS environment variable. openvino_libs_installer = os.getenv("OPENVINO_LIB_PATHS") From f05ff74becf7eb16d22975d69e1f589a984f1c0a Mon Sep 17 00:00:00 2001 From: Alicja Miloszewska Date: Tue, 19 Nov 2024 16:30:05 +0100 Subject: [PATCH 32/38] Rename build_utils.py to package_utils.py Signed-off-by: Alicja Miloszewska --- src/bindings/python/src/openvino/__init__.py | 2 +- .../python/src/openvino/{build_utils.py => package_utils.py} | 0 src/bindings/python/src/openvino/utils/__init__.py | 2 +- tools/benchmark_tool/openvino/__init__.py | 2 +- tools/mo/openvino/__init__.py | 2 +- tools/openvino_dev/src/openvino/__init__.py | 2 +- tools/ovc/openvino/__init__.py | 2 +- 7 files changed, 6 insertions(+), 6 deletions(-) rename src/bindings/python/src/openvino/{build_utils.py => package_utils.py} (100%) diff --git a/src/bindings/python/src/openvino/__init__.py b/src/bindings/python/src/openvino/__init__.py index df4cc25f101a72..b9b4f5bbef622c 100644 --- a/src/bindings/python/src/openvino/__init__.py +++ b/src/bindings/python/src/openvino/__init__.py @@ -7,7 +7,7 @@ # Required for Windows OS platforms # Note: always top-level try: - from openvino.build_utils import _add_openvino_libs_to_search_path + from openvino.package_utils import _add_openvino_libs_to_search_path _add_openvino_libs_to_search_path() except ImportError: pass diff --git a/src/bindings/python/src/openvino/build_utils.py b/src/bindings/python/src/openvino/package_utils.py similarity index 100% rename from src/bindings/python/src/openvino/build_utils.py rename to src/bindings/python/src/openvino/package_utils.py diff --git a/src/bindings/python/src/openvino/utils/__init__.py b/src/bindings/python/src/openvino/utils/__init__.py index 35343b5a47f69d..2261235fa0aeab 100644 --- a/src/bindings/python/src/openvino/utils/__init__.py +++ b/src/bindings/python/src/openvino/utils/__init__.py @@ -5,7 +5,7 @@ """Generic utilities. Factor related functions out to separate files.""" from openvino._pyopenvino.util import numpy_to_c, replace_node, replace_output_update_name -from openvino.build_utils import get_cmake_path +from openvino.package_utils import get_cmake_path from functools import wraps from typing import Callable, Any diff --git a/tools/benchmark_tool/openvino/__init__.py b/tools/benchmark_tool/openvino/__init__.py index df4cc25f101a72..b9b4f5bbef622c 100644 --- a/tools/benchmark_tool/openvino/__init__.py +++ b/tools/benchmark_tool/openvino/__init__.py @@ -7,7 +7,7 @@ # Required for Windows OS platforms # Note: always top-level try: - from openvino.build_utils import _add_openvino_libs_to_search_path + from openvino.package_utils import _add_openvino_libs_to_search_path _add_openvino_libs_to_search_path() except ImportError: pass diff --git a/tools/mo/openvino/__init__.py b/tools/mo/openvino/__init__.py index 18b022abad86d9..46e35babdc9fad 100644 --- a/tools/mo/openvino/__init__.py +++ b/tools/mo/openvino/__init__.py @@ -7,7 +7,7 @@ # Required for Windows OS platforms # Note: always top-level try: - from openvino.build_utils import _add_openvino_libs_to_search_path + from openvino.package_utils import _add_openvino_libs_to_search_path _add_openvino_libs_to_search_path() except ImportError: pass diff --git a/tools/openvino_dev/src/openvino/__init__.py b/tools/openvino_dev/src/openvino/__init__.py index 18b022abad86d9..46e35babdc9fad 100644 --- a/tools/openvino_dev/src/openvino/__init__.py +++ b/tools/openvino_dev/src/openvino/__init__.py @@ -7,7 +7,7 @@ # Required for Windows OS platforms # Note: always top-level try: - from openvino.build_utils import _add_openvino_libs_to_search_path + from openvino.package_utils import _add_openvino_libs_to_search_path _add_openvino_libs_to_search_path() except ImportError: pass diff --git a/tools/ovc/openvino/__init__.py b/tools/ovc/openvino/__init__.py index df4cc25f101a72..b9b4f5bbef622c 100644 --- a/tools/ovc/openvino/__init__.py +++ b/tools/ovc/openvino/__init__.py @@ -7,7 +7,7 @@ # Required for Windows OS platforms # Note: always top-level try: - from openvino.build_utils import _add_openvino_libs_to_search_path + from openvino.package_utils import _add_openvino_libs_to_search_path _add_openvino_libs_to_search_path() except ImportError: pass From 3e91a366c52b07a369604a46704b073c2dd8432b Mon Sep 17 00:00:00 2001 From: Alicja Miloszewska Date: Thu, 21 Nov 2024 13:04:50 +0100 Subject: [PATCH 33/38] Add LazyLoader for runtime Signed-off-by: Alicja Miloszewska --- src/bindings/python/src/openvino/__init__.py | 3 +++ src/bindings/python/src/openvino/package_utils.py | 15 +++++++++++++++ tools/benchmark_tool/openvino/__init__.py | 3 +++ tools/ovc/openvino/__init__.py | 3 +++ 4 files changed, 24 insertions(+) diff --git a/src/bindings/python/src/openvino/__init__.py b/src/bindings/python/src/openvino/__init__.py index b9b4f5bbef622c..cf40af48ec812a 100644 --- a/src/bindings/python/src/openvino/__init__.py +++ b/src/bindings/python/src/openvino/__init__.py @@ -68,6 +68,9 @@ from openvino._pyopenvino import get_version __version__ = get_version() +from openvino.package_utils import lazy_import +runtime = lazy_import('openvino.runtime') + # Tools try: # Model Conversion API - ovc should reside in the main namespace diff --git a/src/bindings/python/src/openvino/package_utils.py b/src/bindings/python/src/openvino/package_utils.py index 79e61923685e6d..b9ebe6e1831435 100644 --- a/src/bindings/python/src/openvino/package_utils.py +++ b/src/bindings/python/src/openvino/package_utils.py @@ -5,6 +5,7 @@ import os import sys from pathlib import Path +import importlib.util def _add_openvino_libs_to_search_path() -> None: @@ -51,3 +52,17 @@ def get_cmake_path() -> str: return dirpath return "" + + +def lazy_import(module_name): + spec = importlib.util.find_spec(module_name) + if spec is None: + raise ImportError(f"Module {module_name} not found") + + + loader = importlib.util.LazyLoader(spec.loader) + module = importlib.util.module_from_spec(spec) + sys.modules[module_name] = module + + loader.exec_module(module) + return module diff --git a/tools/benchmark_tool/openvino/__init__.py b/tools/benchmark_tool/openvino/__init__.py index b9b4f5bbef622c..cf40af48ec812a 100644 --- a/tools/benchmark_tool/openvino/__init__.py +++ b/tools/benchmark_tool/openvino/__init__.py @@ -68,6 +68,9 @@ from openvino._pyopenvino import get_version __version__ = get_version() +from openvino.package_utils import lazy_import +runtime = lazy_import('openvino.runtime') + # Tools try: # Model Conversion API - ovc should reside in the main namespace diff --git a/tools/ovc/openvino/__init__.py b/tools/ovc/openvino/__init__.py index b9b4f5bbef622c..cf40af48ec812a 100644 --- a/tools/ovc/openvino/__init__.py +++ b/tools/ovc/openvino/__init__.py @@ -68,6 +68,9 @@ from openvino._pyopenvino import get_version __version__ = get_version() +from openvino.package_utils import lazy_import +runtime = lazy_import('openvino.runtime') + # Tools try: # Model Conversion API - ovc should reside in the main namespace From a2972ea61c52bc3df5c3f126b04048dfd30d07d4 Mon Sep 17 00:00:00 2001 From: Alicja Miloszewska Date: Thu, 21 Nov 2024 13:31:02 +0100 Subject: [PATCH 34/38] Load fixes Signed-off-by: Alicja Miloszewska --- src/bindings/python/src/openvino/__init__.py | 2 +- src/bindings/python/src/openvino/package_utils.py | 6 +++--- tools/benchmark_tool/openvino/__init__.py | 2 +- tools/ovc/openvino/__init__.py | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/bindings/python/src/openvino/__init__.py b/src/bindings/python/src/openvino/__init__.py index cf40af48ec812a..7f81f97ed08296 100644 --- a/src/bindings/python/src/openvino/__init__.py +++ b/src/bindings/python/src/openvino/__init__.py @@ -69,7 +69,7 @@ __version__ = get_version() from openvino.package_utils import lazy_import -runtime = lazy_import('openvino.runtime') +runtime = lazy_import("openvino.runtime") # Tools try: diff --git a/src/bindings/python/src/openvino/package_utils.py b/src/bindings/python/src/openvino/package_utils.py index b9ebe6e1831435..f36059c377c928 100644 --- a/src/bindings/python/src/openvino/package_utils.py +++ b/src/bindings/python/src/openvino/package_utils.py @@ -6,6 +6,7 @@ import sys from pathlib import Path import importlib.util +from types import ModuleType def _add_openvino_libs_to_search_path() -> None: @@ -54,12 +55,11 @@ def get_cmake_path() -> str: return "" -def lazy_import(module_name): +def lazy_import(module_name: str) -> ModuleType: spec = importlib.util.find_spec(module_name) - if spec is None: + if spec is None or spec.loader is None: raise ImportError(f"Module {module_name} not found") - loader = importlib.util.LazyLoader(spec.loader) module = importlib.util.module_from_spec(spec) sys.modules[module_name] = module diff --git a/tools/benchmark_tool/openvino/__init__.py b/tools/benchmark_tool/openvino/__init__.py index cf40af48ec812a..7f81f97ed08296 100644 --- a/tools/benchmark_tool/openvino/__init__.py +++ b/tools/benchmark_tool/openvino/__init__.py @@ -69,7 +69,7 @@ __version__ = get_version() from openvino.package_utils import lazy_import -runtime = lazy_import('openvino.runtime') +runtime = lazy_import("openvino.runtime") # Tools try: diff --git a/tools/ovc/openvino/__init__.py b/tools/ovc/openvino/__init__.py index cf40af48ec812a..7f81f97ed08296 100644 --- a/tools/ovc/openvino/__init__.py +++ b/tools/ovc/openvino/__init__.py @@ -69,7 +69,7 @@ __version__ = get_version() from openvino.package_utils import lazy_import -runtime = lazy_import('openvino.runtime') +runtime = lazy_import("openvino.runtime") # Tools try: From 3f944ec11c91601aa8e48a58ef8ad1dbc7cc65c8 Mon Sep 17 00:00:00 2001 From: Alicja Miloszewska Date: Thu, 21 Nov 2024 14:43:46 +0100 Subject: [PATCH 35/38] Rename openvino/ie_api.py to _ov_api.py Signed-off-by: Alicja Miloszewska --- src/bindings/python/src/openvino/__init__.py | 21 ++++++++++++------- .../src/openvino/{ie_api.py => _ov_api.py} | 0 .../python/src/openvino/runtime/ie_api.py | 2 +- tools/benchmark_tool/openvino/__init__.py | 21 ++++++++++++------- tools/ovc/openvino/__init__.py | 21 ++++++++++++------- tools/ovc/openvino/tools/ovc/convert.py | 2 +- .../tools/ovc/moc_frontend/analysis.py | 2 +- .../tools/ovc/moc_frontend/moc_emit_ir.py | 2 +- .../tools/ovc/moc_frontend/preprocessing.py | 2 +- 9 files changed, 47 insertions(+), 26 deletions(-) rename src/bindings/python/src/openvino/{ie_api.py => _ov_api.py} (100%) diff --git a/src/bindings/python/src/openvino/__init__.py b/src/bindings/python/src/openvino/__init__.py index 7f81f97ed08296..dd344c55c07012 100644 --- a/src/bindings/python/src/openvino/__init__.py +++ b/src/bindings/python/src/openvino/__init__.py @@ -52,13 +52,13 @@ from openvino._pyopenvino import Op # Python extended classes and functions -from openvino.ie_api import Model -from openvino.ie_api import Core -from openvino.ie_api import CompiledModel -from openvino.ie_api import InferRequest -from openvino.ie_api import AsyncInferQueue -from openvino.ie_api import tensor_from_file -from openvino.ie_api import compile_model +from openvino._ov_api import Model +from openvino._ov_api import Core +from openvino._ov_api import CompiledModel +from openvino._ov_api import InferRequest +from openvino._ov_api import AsyncInferQueue +from openvino._ov_api import tensor_from_file +from openvino._ov_api import compile_model # libva related: from openvino._pyopenvino import VAContext @@ -68,8 +68,15 @@ from openvino._pyopenvino import get_version __version__ = get_version() +# Import all public modules from openvino.package_utils import lazy_import runtime = lazy_import("openvino.runtime") +from openvino import frontend as frontend +from openvino import helpers as helpers +from openvino import experimental as experimental +from openvino import preprocess as preprocess +from openvino import utils as utils +from openvino import properties as properties # Tools try: diff --git a/src/bindings/python/src/openvino/ie_api.py b/src/bindings/python/src/openvino/_ov_api.py similarity index 100% rename from src/bindings/python/src/openvino/ie_api.py rename to src/bindings/python/src/openvino/_ov_api.py diff --git a/src/bindings/python/src/openvino/runtime/ie_api.py b/src/bindings/python/src/openvino/runtime/ie_api.py index 4859172ba1b58e..80a3d46383f781 100644 --- a/src/bindings/python/src/openvino/runtime/ie_api.py +++ b/src/bindings/python/src/openvino/runtime/ie_api.py @@ -2,4 +2,4 @@ # Copyright (C) 2018-2024 Intel Corporation # SPDX-License-Identifier: Apache-2.0 -from openvino.ie_api import * # noqa: F403 +from openvino._ov_api import * # noqa: F403 diff --git a/tools/benchmark_tool/openvino/__init__.py b/tools/benchmark_tool/openvino/__init__.py index 7f81f97ed08296..dd344c55c07012 100644 --- a/tools/benchmark_tool/openvino/__init__.py +++ b/tools/benchmark_tool/openvino/__init__.py @@ -52,13 +52,13 @@ from openvino._pyopenvino import Op # Python extended classes and functions -from openvino.ie_api import Model -from openvino.ie_api import Core -from openvino.ie_api import CompiledModel -from openvino.ie_api import InferRequest -from openvino.ie_api import AsyncInferQueue -from openvino.ie_api import tensor_from_file -from openvino.ie_api import compile_model +from openvino._ov_api import Model +from openvino._ov_api import Core +from openvino._ov_api import CompiledModel +from openvino._ov_api import InferRequest +from openvino._ov_api import AsyncInferQueue +from openvino._ov_api import tensor_from_file +from openvino._ov_api import compile_model # libva related: from openvino._pyopenvino import VAContext @@ -68,8 +68,15 @@ from openvino._pyopenvino import get_version __version__ = get_version() +# Import all public modules from openvino.package_utils import lazy_import runtime = lazy_import("openvino.runtime") +from openvino import frontend as frontend +from openvino import helpers as helpers +from openvino import experimental as experimental +from openvino import preprocess as preprocess +from openvino import utils as utils +from openvino import properties as properties # Tools try: diff --git a/tools/ovc/openvino/__init__.py b/tools/ovc/openvino/__init__.py index 7f81f97ed08296..dd344c55c07012 100644 --- a/tools/ovc/openvino/__init__.py +++ b/tools/ovc/openvino/__init__.py @@ -52,13 +52,13 @@ from openvino._pyopenvino import Op # Python extended classes and functions -from openvino.ie_api import Model -from openvino.ie_api import Core -from openvino.ie_api import CompiledModel -from openvino.ie_api import InferRequest -from openvino.ie_api import AsyncInferQueue -from openvino.ie_api import tensor_from_file -from openvino.ie_api import compile_model +from openvino._ov_api import Model +from openvino._ov_api import Core +from openvino._ov_api import CompiledModel +from openvino._ov_api import InferRequest +from openvino._ov_api import AsyncInferQueue +from openvino._ov_api import tensor_from_file +from openvino._ov_api import compile_model # libva related: from openvino._pyopenvino import VAContext @@ -68,8 +68,15 @@ from openvino._pyopenvino import get_version __version__ = get_version() +# Import all public modules from openvino.package_utils import lazy_import runtime = lazy_import("openvino.runtime") +from openvino import frontend as frontend +from openvino import helpers as helpers +from openvino import experimental as experimental +from openvino import preprocess as preprocess +from openvino import utils as utils +from openvino import properties as properties # Tools try: diff --git a/tools/ovc/openvino/tools/ovc/convert.py b/tools/ovc/openvino/tools/ovc/convert.py index a66b9ce5e4f072..f76e779fb30232 100644 --- a/tools/ovc/openvino/tools/ovc/convert.py +++ b/tools/ovc/openvino/tools/ovc/convert.py @@ -4,7 +4,7 @@ import pathlib from typing import Any -from openvino.ie_api import Model # pylint: disable=no-name-in-module,import-error +from openvino import Model # pylint: disable=no-name-in-module,import-error from openvino.tools.ovc.cli_parser import get_all_cli_parser from openvino.tools.ovc.convert_impl import _convert from openvino.tools.ovc.logger import get_logger_state, restore_logger_state diff --git a/tools/ovc/openvino/tools/ovc/moc_frontend/analysis.py b/tools/ovc/openvino/tools/ovc/moc_frontend/analysis.py index 9c659b44c73ea6..e1e5bf8342b34d 100644 --- a/tools/ovc/openvino/tools/ovc/moc_frontend/analysis.py +++ b/tools/ovc/openvino/tools/ovc/moc_frontend/analysis.py @@ -4,7 +4,7 @@ import json from openvino._pyopenvino import PartialShape, Type -from openvino.ie_api import Model # pylint: disable=no-name-in-module,import-error +from openvino import Model # pylint: disable=no-name-in-module,import-error from openvino.utils.types import get_dtype # pylint: disable=no-name-in-module,import-error diff --git a/tools/ovc/openvino/tools/ovc/moc_frontend/moc_emit_ir.py b/tools/ovc/openvino/tools/ovc/moc_frontend/moc_emit_ir.py index e4658edb51c37f..b786a59b02a1e8 100644 --- a/tools/ovc/openvino/tools/ovc/moc_frontend/moc_emit_ir.py +++ b/tools/ovc/openvino/tools/ovc/moc_frontend/moc_emit_ir.py @@ -3,7 +3,7 @@ import argparse -from openvino.ie_api import Model # pylint: disable=no-name-in-module,import-error +from openvino import Model # pylint: disable=no-name-in-module,import-error from openvino.tools.ovc.moc_frontend.preprocessing import apply_preprocessing diff --git a/tools/ovc/openvino/tools/ovc/moc_frontend/preprocessing.py b/tools/ovc/openvino/tools/ovc/moc_frontend/preprocessing.py index b23942a28463ad..4ea0adfb088169 100644 --- a/tools/ovc/openvino/tools/ovc/moc_frontend/preprocessing.py +++ b/tools/ovc/openvino/tools/ovc/moc_frontend/preprocessing.py @@ -6,7 +6,7 @@ from openvino.preprocess import PrePostProcessor # pylint: disable=no-name-in-module,import-error # pylint: disable=no-name-in-module,import-error -from openvino.ie_api import Model +from openvino import Model from openvino._pyopenvino import Layout, PartialShape from openvino.tools.ovc.error import Error from openvino.tools.ovc.moc_frontend.layout_utils import update_layout_to_dict From ff00a3d50561a2d9bfadfed74963166956ab9319 Mon Sep 17 00:00:00 2001 From: Alicja Miloszewska Date: Thu, 21 Nov 2024 15:21:18 +0100 Subject: [PATCH 36/38] Update tools/ovc Signed-off-by: Alicja Miloszewska --- tools/ovc/openvino/tools/ovc/cli_parser.py | 2 +- tools/ovc/openvino/tools/ovc/convert_impl.py | 4 ++-- tools/ovc/openvino/tools/ovc/main.py | 2 +- tools/ovc/openvino/tools/ovc/moc_frontend/analysis.py | 2 +- tools/ovc/openvino/tools/ovc/moc_frontend/extractor.py | 4 ++-- tools/ovc/openvino/tools/ovc/moc_frontend/layout_utils.py | 4 ++-- tools/ovc/openvino/tools/ovc/moc_frontend/pipeline.py | 2 +- tools/ovc/openvino/tools/ovc/moc_frontend/preprocessing.py | 2 +- .../openvino/tools/ovc/moc_frontend/pytorch_frontend_utils.py | 2 +- tools/ovc/openvino/tools/ovc/moc_frontend/shape_utils.py | 2 +- tools/ovc/openvino/tools/ovc/moc_frontend/type_utils.py | 2 +- tools/ovc/openvino/tools/ovc/telemetry_utils.py | 4 ++-- tools/ovc/openvino/tools/ovc/version.py | 4 ++-- 13 files changed, 18 insertions(+), 18 deletions(-) diff --git a/tools/ovc/openvino/tools/ovc/cli_parser.py b/tools/ovc/openvino/tools/ovc/cli_parser.py index 2f6d10c15f002b..e2eb55669ccadf 100644 --- a/tools/ovc/openvino/tools/ovc/cli_parser.py +++ b/tools/ovc/openvino/tools/ovc/cli_parser.py @@ -10,7 +10,7 @@ from typing import List, Union import openvino -from openvino._pyopenvino import PartialShape, Dimension, Type # pylint: disable=no-name-in-module,import-error +from openvino import PartialShape, Dimension, Type # pylint: disable=no-name-in-module,import-error from openvino.tools.ovc.error import Error from openvino.tools.ovc.help import get_convert_model_help_specifics from openvino.tools.ovc.moc_frontend.shape_utils import to_partial_shape, is_shape_type diff --git a/tools/ovc/openvino/tools/ovc/convert_impl.py b/tools/ovc/openvino/tools/ovc/convert_impl.py index a86dabc1d8c5b6..370e8fe9be4058 100644 --- a/tools/ovc/openvino/tools/ovc/convert_impl.py +++ b/tools/ovc/openvino/tools/ovc/convert_impl.py @@ -44,8 +44,8 @@ # pylint: disable=no-name-in-module,import-error from openvino.frontend import FrontEndManager, OpConversionFailure, TelemetryExtension -from openvino._pyopenvino import get_version as get_rt_version -from openvino._pyopenvino import PartialShape +from openvino import get_version as get_rt_version +from openvino import PartialShape try: from openvino.frontend.tensorflow.utils import create_tf_graph_iterator, type_supported_by_tf_fe, \ diff --git a/tools/ovc/openvino/tools/ovc/main.py b/tools/ovc/openvino/tools/ovc/main.py index 242514dc635aca..762ecb258f0c11 100644 --- a/tools/ovc/openvino/tools/ovc/main.py +++ b/tools/ovc/openvino/tools/ovc/main.py @@ -17,7 +17,7 @@ import_openvino_tokenizers() # pylint: disable=no-name-in-module,import-error -from openvino._pyopenvino import save_model +from openvino import save_model def main(): diff --git a/tools/ovc/openvino/tools/ovc/moc_frontend/analysis.py b/tools/ovc/openvino/tools/ovc/moc_frontend/analysis.py index e1e5bf8342b34d..bb542c5c23752c 100644 --- a/tools/ovc/openvino/tools/ovc/moc_frontend/analysis.py +++ b/tools/ovc/openvino/tools/ovc/moc_frontend/analysis.py @@ -3,7 +3,7 @@ import json -from openvino._pyopenvino import PartialShape, Type +from openvino import PartialShape, Type from openvino import Model # pylint: disable=no-name-in-module,import-error from openvino.utils.types import get_dtype # pylint: disable=no-name-in-module,import-error diff --git a/tools/ovc/openvino/tools/ovc/moc_frontend/extractor.py b/tools/ovc/openvino/tools/ovc/moc_frontend/extractor.py index ca223365d41b4b..539dc83ba92652 100644 --- a/tools/ovc/openvino/tools/ovc/moc_frontend/extractor.py +++ b/tools/ovc/openvino/tools/ovc/moc_frontend/extractor.py @@ -377,7 +377,7 @@ def convert_params_lists_to_dicts(input_model, input_user_data_types_dict - dictionary where key is input name, value is type from user; freeze_placeholder - dictionary where key is input name, value is input value from user; """ - from openvino._pyopenvino import PartialShape # pylint: disable=no-name-in-module,import-error + from openvino import PartialShape # pylint: disable=no-name-in-module,import-error model_inputs = input_model.get_inputs() input_user_data_types_dict = {} input_user_shapes_dict = {} @@ -396,7 +396,7 @@ def convert_params_lists_to_dicts(input_model, # input_user_data_types is list only if unnamed inputs were used if isinstance(input_user_data_types, list): - from openvino._pyopenvino import Type # pylint: disable=no-name-in-module,import-error + from openvino import Type # pylint: disable=no-name-in-module,import-error if input_user_shapes_dict is None: input_user_shapes_dict = {} diff --git a/tools/ovc/openvino/tools/ovc/moc_frontend/layout_utils.py b/tools/ovc/openvino/tools/ovc/moc_frontend/layout_utils.py index 597f60abcc381e..62d85d18d0df81 100644 --- a/tools/ovc/openvino/tools/ovc/moc_frontend/layout_utils.py +++ b/tools/ovc/openvino/tools/ovc/moc_frontend/layout_utils.py @@ -3,7 +3,7 @@ from typing import Callable -from openvino._pyopenvino import PartialShape # pylint: disable=no-name-in-module,import-error +from openvino import PartialShape # pylint: disable=no-name-in-module,import-error from openvino.tools.ovc.error import Error from openvino.tools.ovc.utils import refer_to_faq_msg @@ -62,7 +62,7 @@ def get_dimension_index_by_label(input_shape: PartialShape, input_names: list, l layout = layout_value.get('source_layout', None) if layout is None: return default_dim, True - from openvino._pyopenvino import Layout # pylint: disable=no-name-in-module,import-error + from openvino import Layout # pylint: disable=no-name-in-module,import-error layout_parsed = Layout(layout) if layout_parsed.has_name(dimension_label): return layout_parsed.get_index_by_name(dimension_label), False diff --git a/tools/ovc/openvino/tools/ovc/moc_frontend/pipeline.py b/tools/ovc/openvino/tools/ovc/moc_frontend/pipeline.py index 1857f00d9f2716..58cc07ed5dc319 100644 --- a/tools/ovc/openvino/tools/ovc/moc_frontend/pipeline.py +++ b/tools/ovc/openvino/tools/ovc/moc_frontend/pipeline.py @@ -11,7 +11,7 @@ from openvino.frontend import FrontEnd, InputModel, NotImplementedFailure, \ Place # pylint: disable=no-name-in-module,import-error -from openvino._pyopenvino import PartialShape, Type # pylint: disable=no-name-in-module,import-error +from openvino import PartialShape, Type # pylint: disable=no-name-in-module,import-error from openvino.utils.types import get_element_type, \ get_numpy_ctype # pylint: disable=no-name-in-module,import-error from openvino.tools.ovc.moc_frontend.analysis import json_model_analysis_dump diff --git a/tools/ovc/openvino/tools/ovc/moc_frontend/preprocessing.py b/tools/ovc/openvino/tools/ovc/moc_frontend/preprocessing.py index 4ea0adfb088169..570be66a7bc6c1 100644 --- a/tools/ovc/openvino/tools/ovc/moc_frontend/preprocessing.py +++ b/tools/ovc/openvino/tools/ovc/moc_frontend/preprocessing.py @@ -7,7 +7,7 @@ from openvino.preprocess import PrePostProcessor # pylint: disable=no-name-in-module,import-error # pylint: disable=no-name-in-module,import-error from openvino import Model -from openvino._pyopenvino import Layout, PartialShape +from openvino import Layout, PartialShape from openvino.tools.ovc.error import Error from openvino.tools.ovc.moc_frontend.layout_utils import update_layout_to_dict from openvino.tools.ovc.utils import refer_to_faq_msg diff --git a/tools/ovc/openvino/tools/ovc/moc_frontend/pytorch_frontend_utils.py b/tools/ovc/openvino/tools/ovc/moc_frontend/pytorch_frontend_utils.py index 6355abad17287d..830a066562a6e0 100644 --- a/tools/ovc/openvino/tools/ovc/moc_frontend/pytorch_frontend_utils.py +++ b/tools/ovc/openvino/tools/ovc/moc_frontend/pytorch_frontend_utils.py @@ -8,7 +8,7 @@ import numpy as np # pylint: disable=no-name-in-module,import-error -from openvino._pyopenvino import Tensor, PartialShape +from openvino import Tensor, PartialShape from openvino.tools.ovc.cli_parser import single_input_to_input_cut_info, _InputCutInfo from openvino.tools.ovc.error import Error diff --git a/tools/ovc/openvino/tools/ovc/moc_frontend/shape_utils.py b/tools/ovc/openvino/tools/ovc/moc_frontend/shape_utils.py index a797db530d4bb5..9145fad3b1bb06 100644 --- a/tools/ovc/openvino/tools/ovc/moc_frontend/shape_utils.py +++ b/tools/ovc/openvino/tools/ovc/moc_frontend/shape_utils.py @@ -4,7 +4,7 @@ import sys import numpy as np -from openvino._pyopenvino import Shape, PartialShape, Dimension # pylint: disable=no-name-in-module,import-error +from openvino import Shape, PartialShape, Dimension # pylint: disable=no-name-in-module,import-error from openvino.tools.ovc.error import Error diff --git a/tools/ovc/openvino/tools/ovc/moc_frontend/type_utils.py b/tools/ovc/openvino/tools/ovc/moc_frontend/type_utils.py index 57dcf6070fc5af..50a3ffdc3e9fce 100644 --- a/tools/ovc/openvino/tools/ovc/moc_frontend/type_utils.py +++ b/tools/ovc/openvino/tools/ovc/moc_frontend/type_utils.py @@ -6,7 +6,7 @@ import numpy as np import openvino as ov -from openvino._pyopenvino import Type +from openvino import Type def is_type(val): diff --git a/tools/ovc/openvino/tools/ovc/telemetry_utils.py b/tools/ovc/openvino/tools/ovc/telemetry_utils.py index 155d88a6c0f91e..5167f258e5eca1 100644 --- a/tools/ovc/openvino/tools/ovc/telemetry_utils.py +++ b/tools/ovc/openvino/tools/ovc/telemetry_utils.py @@ -4,7 +4,7 @@ import argparse import numbers import os -from openvino._pyopenvino import get_version as get_rt_version # pylint: disable=no-name-in-module,import-error +from openvino import get_version as get_rt_version # pylint: disable=no-name-in-module,import-error from openvino.tools.ovc.cli_parser import get_params_with_paths_list from openvino.tools.ovc.telemetry_params import telemetry_params from openvino.tools.ovc.utils import check_values_equal @@ -89,7 +89,7 @@ def send_conversion_result(conversion_result: str, need_shutdown=False): def arg_to_str(arg): # This method converts to string only known types, otherwise returns string with name of the type - from openvino._pyopenvino import PartialShape, Shape, Type, Layout # pylint: disable=no-name-in-module,import-error + from openvino import PartialShape, Shape, Type, Layout # pylint: disable=no-name-in-module,import-error if isinstance(arg, (PartialShape, Shape, Type, Layout)): return str(arg) if isinstance(arg, (str, numbers.Number, bool)): diff --git a/tools/ovc/openvino/tools/ovc/version.py b/tools/ovc/openvino/tools/ovc/version.py index 178f45494fb7a5..f7509efa7ab4c5 100644 --- a/tools/ovc/openvino/tools/ovc/version.py +++ b/tools/ovc/openvino/tools/ovc/version.py @@ -3,7 +3,7 @@ import re -from openvino._pyopenvino import get_version as get_ie_version # pylint: disable=no-name-in-module,import-error +from openvino import get_version as get_ie_version # pylint: disable=no-name-in-module,import-error def extract_release_version(version: str): @@ -29,7 +29,7 @@ def simplify_version(version: str): def get_simplified_ie_version(version=None): - from openvino._pyopenvino import get_version # pylint: disable=no-name-in-module,import-error + from openvino import get_version # pylint: disable=no-name-in-module,import-error if version is None: version = get_version() From c07d4bdfd551981af5f867e3dc4e411d7788db85 Mon Sep 17 00:00:00 2001 From: Alicja Miloszewska Date: Fri, 22 Nov 2024 10:57:49 +0100 Subject: [PATCH 37/38] remove warning Signed-off-by: Alicja Miloszewska --- src/bindings/python/src/openvino/runtime/__init__.py | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/src/bindings/python/src/openvino/runtime/__init__.py b/src/bindings/python/src/openvino/runtime/__init__.py index e15b59c883754d..df2cab57bd0aba 100644 --- a/src/bindings/python/src/openvino/runtime/__init__.py +++ b/src/bindings/python/src/openvino/runtime/__init__.py @@ -5,16 +5,6 @@ """openvino module namespace, exposing factory functions for all ops and other classes.""" # noqa: F401 -import warnings -warnings.simplefilter("always", DeprecationWarning) - -warnings.warn( - "The `openvino.runtime` module is deprecated and will be removed in the 2026.0 release. " - "Please replace `openvino.runtime` with `openvino` after 25.1 release.", - DeprecationWarning, - stacklevel=2 -) - from openvino._pyopenvino import get_version __version__ = get_version() From ce8c32dece52ed4650b5ce7f554e7f0520498a63 Mon Sep 17 00:00:00 2001 From: almilosz Date: Wed, 27 Nov 2024 13:44:51 +0000 Subject: [PATCH 38/38] Revert changes to tools/ovc/openvino/ Revert changes to tools/ovc/openvino/ beside tools/ovc/openvino/__init__.py --- tools/ovc/openvino/tools/ovc/__init__.py | 2 +- tools/ovc/openvino/tools/ovc/cli_parser.py | 2 +- tools/ovc/openvino/tools/ovc/convert.py | 2 +- tools/ovc/openvino/tools/ovc/convert_impl.py | 4 ++-- tools/ovc/openvino/tools/ovc/main.py | 2 +- tools/ovc/openvino/tools/ovc/moc_frontend/analysis.py | 5 ++--- tools/ovc/openvino/tools/ovc/moc_frontend/extractor.py | 4 ++-- tools/ovc/openvino/tools/ovc/moc_frontend/layout_utils.py | 4 ++-- tools/ovc/openvino/tools/ovc/moc_frontend/moc_emit_ir.py | 2 +- tools/ovc/openvino/tools/ovc/moc_frontend/pipeline.py | 4 ++-- tools/ovc/openvino/tools/ovc/moc_frontend/preprocessing.py | 3 +-- .../tools/ovc/moc_frontend/pytorch_frontend_utils.py | 2 +- tools/ovc/openvino/tools/ovc/moc_frontend/shape_utils.py | 2 +- tools/ovc/openvino/tools/ovc/moc_frontend/type_utils.py | 2 +- tools/ovc/openvino/tools/ovc/telemetry_utils.py | 4 ++-- tools/ovc/openvino/tools/ovc/version.py | 4 ++-- 16 files changed, 23 insertions(+), 25 deletions(-) diff --git a/tools/ovc/openvino/tools/ovc/__init__.py b/tools/ovc/openvino/tools/ovc/__init__.py index e16767708a7b52..5b750b58969d24 100644 --- a/tools/ovc/openvino/tools/ovc/__init__.py +++ b/tools/ovc/openvino/tools/ovc/__init__.py @@ -11,7 +11,7 @@ except importlib_metadata.PackageNotFoundError: optimum_version = None -from openvino._pyopenvino import get_version as get_rt_version # pylint: disable=no-name-in-module,import-error +from openvino.runtime import get_version as get_rt_version # pylint: disable=no-name-in-module,import-error telemetry = init_ovc_telemetry('OpenVINO') telemetry.send_event("ov", "import", "general_import") diff --git a/tools/ovc/openvino/tools/ovc/cli_parser.py b/tools/ovc/openvino/tools/ovc/cli_parser.py index e2eb55669ccadf..ab4099a17f7093 100644 --- a/tools/ovc/openvino/tools/ovc/cli_parser.py +++ b/tools/ovc/openvino/tools/ovc/cli_parser.py @@ -10,7 +10,7 @@ from typing import List, Union import openvino -from openvino import PartialShape, Dimension, Type # pylint: disable=no-name-in-module,import-error +from openvino.runtime import PartialShape, Dimension, Type # pylint: disable=no-name-in-module,import-error from openvino.tools.ovc.error import Error from openvino.tools.ovc.help import get_convert_model_help_specifics from openvino.tools.ovc.moc_frontend.shape_utils import to_partial_shape, is_shape_type diff --git a/tools/ovc/openvino/tools/ovc/convert.py b/tools/ovc/openvino/tools/ovc/convert.py index f76e779fb30232..77693ad4be2ca1 100644 --- a/tools/ovc/openvino/tools/ovc/convert.py +++ b/tools/ovc/openvino/tools/ovc/convert.py @@ -4,7 +4,7 @@ import pathlib from typing import Any -from openvino import Model # pylint: disable=no-name-in-module,import-error +from openvino.runtime import Model # pylint: disable=no-name-in-module,import-error from openvino.tools.ovc.cli_parser import get_all_cli_parser from openvino.tools.ovc.convert_impl import _convert from openvino.tools.ovc.logger import get_logger_state, restore_logger_state diff --git a/tools/ovc/openvino/tools/ovc/convert_impl.py b/tools/ovc/openvino/tools/ovc/convert_impl.py index 370e8fe9be4058..aef054f8aafc24 100644 --- a/tools/ovc/openvino/tools/ovc/convert_impl.py +++ b/tools/ovc/openvino/tools/ovc/convert_impl.py @@ -44,8 +44,8 @@ # pylint: disable=no-name-in-module,import-error from openvino.frontend import FrontEndManager, OpConversionFailure, TelemetryExtension -from openvino import get_version as get_rt_version -from openvino import PartialShape +from openvino.runtime import get_version as get_rt_version +from openvino.runtime import PartialShape try: from openvino.frontend.tensorflow.utils import create_tf_graph_iterator, type_supported_by_tf_fe, \ diff --git a/tools/ovc/openvino/tools/ovc/main.py b/tools/ovc/openvino/tools/ovc/main.py index 762ecb258f0c11..1118999dcd5a7b 100644 --- a/tools/ovc/openvino/tools/ovc/main.py +++ b/tools/ovc/openvino/tools/ovc/main.py @@ -17,7 +17,7 @@ import_openvino_tokenizers() # pylint: disable=no-name-in-module,import-error -from openvino import save_model +from openvino.runtime import save_model def main(): diff --git a/tools/ovc/openvino/tools/ovc/moc_frontend/analysis.py b/tools/ovc/openvino/tools/ovc/moc_frontend/analysis.py index bb542c5c23752c..827a8e4338af96 100644 --- a/tools/ovc/openvino/tools/ovc/moc_frontend/analysis.py +++ b/tools/ovc/openvino/tools/ovc/moc_frontend/analysis.py @@ -3,9 +3,8 @@ import json -from openvino import PartialShape, Type -from openvino import Model # pylint: disable=no-name-in-module,import-error -from openvino.utils.types import get_dtype # pylint: disable=no-name-in-module,import-error +from openvino.runtime import PartialShape, Model, Type # pylint: disable=no-name-in-module,import-error +from openvino.runtime.utils.types import get_dtype # pylint: disable=no-name-in-module,import-error def json_model_analysis_dump(framework_model: Model): diff --git a/tools/ovc/openvino/tools/ovc/moc_frontend/extractor.py b/tools/ovc/openvino/tools/ovc/moc_frontend/extractor.py index 539dc83ba92652..3693a54230f9c2 100644 --- a/tools/ovc/openvino/tools/ovc/moc_frontend/extractor.py +++ b/tools/ovc/openvino/tools/ovc/moc_frontend/extractor.py @@ -377,7 +377,7 @@ def convert_params_lists_to_dicts(input_model, input_user_data_types_dict - dictionary where key is input name, value is type from user; freeze_placeholder - dictionary where key is input name, value is input value from user; """ - from openvino import PartialShape # pylint: disable=no-name-in-module,import-error + from openvino.runtime import PartialShape # pylint: disable=no-name-in-module,import-error model_inputs = input_model.get_inputs() input_user_data_types_dict = {} input_user_shapes_dict = {} @@ -396,7 +396,7 @@ def convert_params_lists_to_dicts(input_model, # input_user_data_types is list only if unnamed inputs were used if isinstance(input_user_data_types, list): - from openvino import Type # pylint: disable=no-name-in-module,import-error + from openvino.runtime import Type # pylint: disable=no-name-in-module,import-error if input_user_shapes_dict is None: input_user_shapes_dict = {} diff --git a/tools/ovc/openvino/tools/ovc/moc_frontend/layout_utils.py b/tools/ovc/openvino/tools/ovc/moc_frontend/layout_utils.py index 62d85d18d0df81..68c4406622f9b6 100644 --- a/tools/ovc/openvino/tools/ovc/moc_frontend/layout_utils.py +++ b/tools/ovc/openvino/tools/ovc/moc_frontend/layout_utils.py @@ -3,7 +3,7 @@ from typing import Callable -from openvino import PartialShape # pylint: disable=no-name-in-module,import-error +from openvino.runtime import PartialShape # pylint: disable=no-name-in-module,import-error from openvino.tools.ovc.error import Error from openvino.tools.ovc.utils import refer_to_faq_msg @@ -62,7 +62,7 @@ def get_dimension_index_by_label(input_shape: PartialShape, input_names: list, l layout = layout_value.get('source_layout', None) if layout is None: return default_dim, True - from openvino import Layout # pylint: disable=no-name-in-module,import-error + from openvino.runtime import Layout # pylint: disable=no-name-in-module,import-error layout_parsed = Layout(layout) if layout_parsed.has_name(dimension_label): return layout_parsed.get_index_by_name(dimension_label), False diff --git a/tools/ovc/openvino/tools/ovc/moc_frontend/moc_emit_ir.py b/tools/ovc/openvino/tools/ovc/moc_frontend/moc_emit_ir.py index b786a59b02a1e8..9e8e2507dea1a3 100644 --- a/tools/ovc/openvino/tools/ovc/moc_frontend/moc_emit_ir.py +++ b/tools/ovc/openvino/tools/ovc/moc_frontend/moc_emit_ir.py @@ -3,7 +3,7 @@ import argparse -from openvino import Model # pylint: disable=no-name-in-module,import-error +from openvino.runtime import Model # pylint: disable=no-name-in-module,import-error from openvino.tools.ovc.moc_frontend.preprocessing import apply_preprocessing diff --git a/tools/ovc/openvino/tools/ovc/moc_frontend/pipeline.py b/tools/ovc/openvino/tools/ovc/moc_frontend/pipeline.py index 58cc07ed5dc319..4a297707a0e537 100644 --- a/tools/ovc/openvino/tools/ovc/moc_frontend/pipeline.py +++ b/tools/ovc/openvino/tools/ovc/moc_frontend/pipeline.py @@ -11,8 +11,8 @@ from openvino.frontend import FrontEnd, InputModel, NotImplementedFailure, \ Place # pylint: disable=no-name-in-module,import-error -from openvino import PartialShape, Type # pylint: disable=no-name-in-module,import-error -from openvino.utils.types import get_element_type, \ +from openvino.runtime import PartialShape, Type # pylint: disable=no-name-in-module,import-error +from openvino.runtime.utils.types import get_element_type, \ get_numpy_ctype # pylint: disable=no-name-in-module,import-error from openvino.tools.ovc.moc_frontend.analysis import json_model_analysis_dump from openvino.tools.ovc.moc_frontend.extractor import fe_user_data_repack, convert_params_lists_to_dicts, \ diff --git a/tools/ovc/openvino/tools/ovc/moc_frontend/preprocessing.py b/tools/ovc/openvino/tools/ovc/moc_frontend/preprocessing.py index 570be66a7bc6c1..0195960065d88e 100644 --- a/tools/ovc/openvino/tools/ovc/moc_frontend/preprocessing.py +++ b/tools/ovc/openvino/tools/ovc/moc_frontend/preprocessing.py @@ -6,8 +6,7 @@ from openvino.preprocess import PrePostProcessor # pylint: disable=no-name-in-module,import-error # pylint: disable=no-name-in-module,import-error -from openvino import Model -from openvino import Layout, PartialShape +from openvino.runtime import Model, Layout, PartialShape from openvino.tools.ovc.error import Error from openvino.tools.ovc.moc_frontend.layout_utils import update_layout_to_dict from openvino.tools.ovc.utils import refer_to_faq_msg diff --git a/tools/ovc/openvino/tools/ovc/moc_frontend/pytorch_frontend_utils.py b/tools/ovc/openvino/tools/ovc/moc_frontend/pytorch_frontend_utils.py index 830a066562a6e0..486f72d87fd89d 100644 --- a/tools/ovc/openvino/tools/ovc/moc_frontend/pytorch_frontend_utils.py +++ b/tools/ovc/openvino/tools/ovc/moc_frontend/pytorch_frontend_utils.py @@ -8,7 +8,7 @@ import numpy as np # pylint: disable=no-name-in-module,import-error -from openvino import Tensor, PartialShape +from openvino.runtime import Tensor, PartialShape from openvino.tools.ovc.cli_parser import single_input_to_input_cut_info, _InputCutInfo from openvino.tools.ovc.error import Error diff --git a/tools/ovc/openvino/tools/ovc/moc_frontend/shape_utils.py b/tools/ovc/openvino/tools/ovc/moc_frontend/shape_utils.py index 9145fad3b1bb06..739f0f53b0ef16 100644 --- a/tools/ovc/openvino/tools/ovc/moc_frontend/shape_utils.py +++ b/tools/ovc/openvino/tools/ovc/moc_frontend/shape_utils.py @@ -4,7 +4,7 @@ import sys import numpy as np -from openvino import Shape, PartialShape, Dimension # pylint: disable=no-name-in-module,import-error +from openvino.runtime import Shape, PartialShape, Dimension # pylint: disable=no-name-in-module,import-error from openvino.tools.ovc.error import Error diff --git a/tools/ovc/openvino/tools/ovc/moc_frontend/type_utils.py b/tools/ovc/openvino/tools/ovc/moc_frontend/type_utils.py index 50a3ffdc3e9fce..b7f7c8b0abc1ce 100644 --- a/tools/ovc/openvino/tools/ovc/moc_frontend/type_utils.py +++ b/tools/ovc/openvino/tools/ovc/moc_frontend/type_utils.py @@ -6,7 +6,7 @@ import numpy as np import openvino as ov -from openvino import Type +from openvino.runtime import Type def is_type(val): diff --git a/tools/ovc/openvino/tools/ovc/telemetry_utils.py b/tools/ovc/openvino/tools/ovc/telemetry_utils.py index 5167f258e5eca1..412d9b9607541e 100644 --- a/tools/ovc/openvino/tools/ovc/telemetry_utils.py +++ b/tools/ovc/openvino/tools/ovc/telemetry_utils.py @@ -4,7 +4,7 @@ import argparse import numbers import os -from openvino import get_version as get_rt_version # pylint: disable=no-name-in-module,import-error +from openvino.runtime import get_version as get_rt_version # pylint: disable=no-name-in-module,import-error from openvino.tools.ovc.cli_parser import get_params_with_paths_list from openvino.tools.ovc.telemetry_params import telemetry_params from openvino.tools.ovc.utils import check_values_equal @@ -89,7 +89,7 @@ def send_conversion_result(conversion_result: str, need_shutdown=False): def arg_to_str(arg): # This method converts to string only known types, otherwise returns string with name of the type - from openvino import PartialShape, Shape, Type, Layout # pylint: disable=no-name-in-module,import-error + from openvino.runtime import PartialShape, Shape, Type, Layout # pylint: disable=no-name-in-module,import-error if isinstance(arg, (PartialShape, Shape, Type, Layout)): return str(arg) if isinstance(arg, (str, numbers.Number, bool)): diff --git a/tools/ovc/openvino/tools/ovc/version.py b/tools/ovc/openvino/tools/ovc/version.py index f7509efa7ab4c5..34e0128af929da 100644 --- a/tools/ovc/openvino/tools/ovc/version.py +++ b/tools/ovc/openvino/tools/ovc/version.py @@ -3,7 +3,7 @@ import re -from openvino import get_version as get_ie_version # pylint: disable=no-name-in-module,import-error +from openvino.runtime import get_version as get_ie_version # pylint: disable=no-name-in-module,import-error def extract_release_version(version: str): @@ -29,7 +29,7 @@ def simplify_version(version: str): def get_simplified_ie_version(version=None): - from openvino import get_version # pylint: disable=no-name-in-module,import-error + from openvino.runtime import get_version # pylint: disable=no-name-in-module,import-error if version is None: version = get_version()