Skip to content

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

[PyOV] Initial support for type hinting using stub `.pyi` files (#29139)

Przemyslaw Wysockiefec10c18673
diff --git a/.gitignore b/.gitignore
index 195ddce2117..a875a0b93b5 100644
--- a/.gitignore
+++ b/.gitignore
@@ -3,9 +3,11 @@ _*
[Bb]uild*/
cmake-build*
-# but ensure we don't skip __init__.py and __main__.py
+# but ensure we don't skip Python files
!__init__.py
!__main__.py
+!*.pyi
+
# and sphinx documentation folders
!docs/sphinx_setup/_*
diff --git a/src/bindings/python/CMakeLists.txt b/src/bindings/python/CMakeLists.txt
index eceec4710a4..cceb51fd412 100644
--- a/src/bindings/python/CMakeLists.txt
+++ b/src/bindings/python/CMakeLists.txt
@@ -271,6 +271,8 @@ macro(ov_define_setup_py_dependencies)
endforeach()
file(GLOB_RECURSE openvino_py_files ${OpenVINOPython_SOURCE_DIR}/src/openvino/*.py)
+ file(GLOB_RECURSE openvino_pyi_files ${OpenVINOPython_SOURCE_DIR}/src/openvino/*.pyi)
+ list(APPEND openvino_py_files ${openvino_pyi_files})
list(APPEND ov_setup_py_deps
${openvino_py_files}
@@ -411,3 +413,36 @@ if(OpenVINODeveloperPackage_FOUND)
ov_cpack(${OV_CPACK_COMPONENTS_ALL})
endif()
+
+# only for developers, skip on CI
+if(NOT DEFINED ENV{CI_BUILD_DEV_TAG} AND NOT DEFINED CI_BUILD_NUMBER)
+
+ # check pybind11-stubgen package
+ execute_process(COMMAND ${Python3_EXECUTABLE} -m pip show pybind11-stubgen
+ OUTPUT_VARIABLE pybind11_stubgen_info OUTPUT_STRIP_TRAILING_WHITESPACE
+ RESULT_VARIABLE pybind11_stubgen_result)
+ string(REGEX MATCH "Version: ([\\.0-9]+)" pybind11_stubgen_version "${pybind11_stubgen_info}")
+ if(pybind11_stubgen_result OR NOT pybind11_stubgen_version)
+ message(FATAL_ERROR "pybind11-stubgen package is not installed or version is not detected. This package is necessary for developing Python API.")
+ endif()
+
+ # check pre-commit package
+ execute_process(COMMAND ${Python3_EXECUTABLE} -m pip show pre-commit
+ OUTPUT_VARIABLE precommit_pkg_info OUTPUT_STRIP_TRAILING_WHITESPACE
+ RESULT_VARIABLE precommit_pkg_result)
+ string(REGEX MATCH "Version: ([\\.0-9]+)" precommit_pkg_version "${precommit_pkg_info}")
+ if(precommit_pkg_result OR NOT precommit_pkg_version)
+ message(FATAL_ERROR "pre-commit package is not installed or version is not detected. This package is necessary for developing Python API.")
+ endif()
+
+ # attach the pre-commit hook for Python stub generation
+ execute_process(COMMAND pre-commit install -c "${CMAKE_CURRENT_SOURCE_DIR}/scripts/stub_generation_precommit.yaml"
+ RESULT_VARIABLE precommit_install_result
+ ERROR_VARIABLE precommit_install_error
+ OUTPUT_STRIP_TRAILING_WHITESPACE
+ ERROR_STRIP_TRAILING_WHITESPACE)
+ if(NOT precommit_install_result EQUAL "0")
+ message(FATAL_ERROR "pre-commit hook install failed with error: ${precommit_install_error}")
+ endif()
+ message(STATUS "pre-commit hook for Python API stub generation has been installed")
+endif()
diff --git a/src/bindings/python/requirements_test.txt b/src/bindings/python/requirements_test.txt
index d7d0125e4c2..57e4ca071aa 100644
--- a/src/bindings/python/requirements_test.txt
+++ b/src/bindings/python/requirements_test.txt
@@ -36,3 +36,5 @@ retrying
tox
types-setuptools
wheel
+pybind11-stubgen<2.6
+pre-commit<4.3
diff --git a/src/bindings/python/scripts/generate_pyapi_stubs.bat b/src/bindings/python/scripts/generate_pyapi_stubs.bat
new file mode 100644
index 00000000000..a073b4b46a0
--- /dev/null
+++ b/src/bindings/python/scripts/generate_pyapi_stubs.bat
@@ -0,0 +1,126 @@
+@echo off
+
+REM Copyright (C) 2018-2025 Intel Corporation
+REM SPDX-License-Identifier: Apache-2.0
+
+setlocal EnableDelayedExpansion
+
+REM Invalid expressions
+set "invalid_expressions=ov::op::v1::Add ov::op::v1::Divide ov::op::v1::Multiply ov::op::v1::Subtract ov::op::v1::Divide ov::Node ov::Input<ov::Node> ov::descriptor::Tensor <Type: 'undefined'> ov::Output<ov::Node const> ov::float16 ov::EncryptionCallbacks ov::streams::Num <Dimension: dynamic ov::pass::pattern::PatternSymbolValue <RTMap>"
+
+REM Invalid identifiers
+set "invalid_identifiers=<locals>"
+
+REM Unresolved names
+set "unresolved_names=InferRequestWrapper RemoteTensorWrapper capsule VASurfaceTensorWrapper _abc._abc_data openvino._ov_api.undefined_deprecated InputCutInfo ParamData"
+
+REM Function to escape characters for regex
+:escape_characters
+set "escaped_error=%~1"
+set "escaped_error=!escaped_error:\=\\!"
+set "escaped_error=!escaped_error:/=\/!"
+set "escaped_error=!escaped_error:$=\$!"
+set "escaped_error=!escaped_error:*=\*!"
+set "escaped_error=!escaped_error:.=\.!"
+set "escaped_error=!escaped_error:^=\^!"
+set "escaped_error=!escaped_error:|=\|!"
+exit /b 0
+
+REM Create regex pattern
+set "invalid_expressions_regex="
+for %%e in (%invalid_expressions%) do (
+ call :escape_characters "%%e"
+ set "invalid_expressions_regex=!invalid_expressions_regex!.*!escaped_error!.*|"
+)
+set "invalid_expressions_regex=%invalid_expressions_regex:~0,-1%"
+
+set "invalid_identifiers_regex="
+for %%e in (%invalid_identifiers%) do (
+ call :escape_characters "%%e"
+ set "invalid_identifiers_regex=!invalid_identifiers_regex!.*!escaped_error!.*|"
+)
+set "invalid_identifiers_regex=%invalid_identifiers_regex:~0,-1%"
+
+set "unresolved_names_regex="
+for %%e in (%unresolved_names%) do (
+ call :escape_characters "%%e"
+ set "unresolved_names_regex=!unresolved_names_regex!.*!escaped_error!.*|"
+)
+set "unresolved_names_regex=%unresolved_names_regex:~0,-1%"
+
+REM Set the output directory
+if "%~1"=="" (
+ set "output_dir=%~dp0.."
+) else (
+ set "output_dir=%~1"
+)
+
+REM Generate stubs for C++ bindings
+python -m pybind11_stubgen --output-dir "%output_dir%" --root-suffix "" --ignore-invalid-expressions "%invalid_expressions_regex%" --ignore-invalid-identifiers "%invalid_identifiers_regex%" --ignore-unresolved-names "%unresolved_names_regex%" --print-invalid-expressions-as-is --numpy-array-use-type-var --exit-code openvino
+
+REM Check if the command was successful
+if %errorlevel% neq 0 (
+ echo Error: pybind11-stubgen failed.
+ exit /b 1
+)
+
+REM Check if the stubs were actually generated
+if exist "%output_dir%\openvino" (
+ echo Stub files generated successfully.
+) else (
+ echo No stub files were generated.
+ exit /b 1
+)
+
+REM Workaround for pybind11-stubgen issue where it doesn't import some modules for stubs generated from .py files
+REM Ticket: 163225
+set "pyi_file=%output_dir%\openvino\_ov_api.pyi"
+if exist "%pyi_file%" (
+ powershell -Command "(gc '%pyi_file%') -replace '(^.*$)', 'import typing`r`nimport pathlib`r`n$1' | Out-File -encoding ASCII '%pyi_file%'"
+) else (
+ echo File %pyi_file% not found.
+ exit /b 1
+)
+
+REM Find all changed .pyi files
+for /f "tokens=*" %%f in ('git diff --name-only ^| findstr /r "\.pyi$"') do (
+ REM Process each changed .pyi file
+ powershell -Command "(gc '%%f') -replace '<function _get_node_factory at 0x[0-9a-fA-F]+>', '<function _get_node_factory at memory_address>' | Out-File -encoding ASCII '%%f'"
+ powershell -Command "(gc '%%f') -replace '__version__: str = ''[^'']*''', '__version__: str = ''version_string''' | Out-File -encoding ASCII '%%f'"
+ powershell -Command "(gc '%%f') -replace '<function <lambda> at 0x[0-9a-fA-F]+>', '<function <lambda> at memory_address>' | Out-File -encoding ASCII '%%f'"
+ powershell -Command "(gc '%%f') -replace ': \.\.\.', ': typing.Any' | Out-File -encoding ASCII '%%f'"
+ powershell -Command "(gc '%%f') -replace 'pass: MatcherPass', 'matcher_pass: MatcherPass' | Out-File -encoding ASCII '%%f'"
+ REM Sort consecutive import statements at the beginning of the file
+ powershell -Command @"
+ \$content = Get-Content '%%f'
+ \$in_imports = \$false
+ \$start = 0
+ \$imports = @()
+
+ foreach (\$line in \$content) {
+ if (\$line -match '^from ' -or \$line -match '^import ') {
+ if (-not \$in_imports) {
+ \$start = \$true
+ }
+ \$in_imports = \$true
+ \$imports += \$line
+ } else {
+ if (\$in_imports) {
+ \$imports = \$imports | Sort-Object
+ \$imports | Out-File -Append -Encoding ASCII '%%f'
+ \$in_imports = \$false
+ \$imports = @()
+ }
+ Add-Content -Path '%%f' -Value \$line
+ }
+ }
+
+ if (\$in_imports) {
+ \$imports = \$imports | Sort-Object
+ \$imports | Out-File -Append -Encoding ASCII '%%f'
+ }
+ Add-Content -Path '%%f' -Value '# type: ignore'
+"@
+)
+
+endlocal
diff --git a/src/bindings/python/scripts/generate_pyapi_stubs.sh b/src/bindings/python/scripts/generate_pyapi_stubs.sh
new file mode 100755
index 00000000000..3c929fc1a7b
--- /dev/null
+++ b/src/bindings/python/scripts/generate_pyapi_stubs.sh
@@ -0,0 +1,142 @@
+#!/bin/bash
+
+# Copyright (C) 2018-2025 Intel Corporation
+# SPDX-License-Identifier: Apache-2.0
+
+# When removing xfails remember to remove them from .bat script as well
+invalid_expressions=(
+ # The classes bindings' will be soon added to pyopenvino. Ticket: 163077
+ "ov::op::v1::Add"
+ "ov::op::v1::Divide"
+ "ov::op::v1::Multiply"
+ "ov::op::v1::Subtract"
+ "ov::op::v1::Divide"
+
+ # Circular dependency Input/Output/Node/Tensor. Ticket: 163078
+ "ov::Node"
+ "ov::Input<ov::Node>"
+ "ov::descriptor::Tensor"
+ "<Type: 'undefined'>"
+ "ov::Output<ov::Node const>"
+
+ # New bindings required, ticket: 163094
+ "ov::float16"
+ "ov::EncryptionCallbacks"
+ "ov::streams::Num"
+ "ov::pass::pattern::PatternSymbolValue"
+
+ # Other issues, ticket: 163094
+ "<Dimension:"
+ "dynamic"
+ "<RTMap>"
+)
+
+invalid_identifiers=(
+ # Ticket: 163093
+ "<locals>"
+)
+
+unresolved_names=(
+ # Circular dependencies, ticket: 163078
+ "InferRequestWrapper"
+
+ # Other issues, ticket: 163094
+ "RemoteTensorWrapper"
+ "capsule"
+ "VASurfaceTensorWrapper"
+ "_abc._abc_data"
+ "openvino._ov_api.undefined_deprecated"
+ "InputCutInfo"
+ "ParamData"
+)
+
+create_regex_pattern() {
+ local errors=("$@")
+ local regex_pattern=""
+
+ for error in "${errors[@]}"; do
+ escaped_error=$(printf '%s\n' "$error" | sed -e 's/[]\/$*.^|[]/\\&/g')
+ regex_pattern+=".*$escaped_error.*|"
+ done
+ regex_pattern="${regex_pattern%|}"
+ echo "$regex_pattern"
+}
+
+invalid_expressions_regex=$(create_regex_pattern "${invalid_expressions[@]}")
+invalid_identifiers_regex=$(create_regex_pattern "${invalid_identifiers[@]}")
+unresolved_names_regex=$(create_regex_pattern "${unresolved_names[@]}")
+
+# Set the output directory
+if [ -z "$1" ]; then
+ output_dir="$(dirname "$0")/../src"
+else
+ output_dir="$1"
+fi
+
+# Generate stubs for C++ bindings
+if ! python -m pybind11_stubgen \
+ --output-dir "$output_dir" \
+ --root-suffix "" \
+ --ignore-invalid-expressions "$invalid_expressions_regex" \
+ --ignore-invalid-identifiers "$invalid_identifiers_regex" \
+ --ignore-unresolved-names "$unresolved_names_regex" \
+ --numpy-array-use-type-var \
+ --exit-code \
+ openvino; then
+ echo "Error: pybind11-stubgen failed."
+ exit 1
+fi
+
+# Workaround for pybind11-stubgen issue where it doesn't import some modules for stubs generated from .py files
+# Ticket: 163225
+pyi_file="$output_dir/openvino/_ov_api.pyi"
+if [ -f "$pyi_file" ]; then
+ sed -i '2i import typing' "$pyi_file"
+ sed -i '2i import pathlib' "$pyi_file"
+else
+ echo "File $pyi_file not found."
+ exit 1
+fi
+
+# Find all changed .pyi files
+changed_files=$(git diff --name-only | grep '\.pyi$')
+# Process each changed .pyi file
+for file in $changed_files; do
+ sed -i 's/<function _get_node_factory at 0x[0-9a-fA-F]\+>/<function _get_node_factory at memory_address>/' "$file"
+ sed -i "s/__version__: str = '[^']*'/__version__: str = 'version_string'/" "$file"
+ sed -i 's/<function <lambda> at 0x[0-9a-fA-F]\{1,\}>/<function <lambda> at memory_address>/g' "$file"
+ sed -i 's/: \.\.\./: typing.Any/g' "$file"
+ sed -i 's/pass: MatcherPass/matcher_pass: MatcherPass/g' "$file"
+ # Sort consecutive import statements
+ awk '
+ BEGIN { in_imports = 0; }
+ /^from / || /^import / {
+ if (in_imports == 0) {
+ start = NR;
+ }
+ in_imports++;
+ imports[in_imports] = $0;
+ next;
+ }
+ {
+ if (in_imports > 0) {
+ for (i = 1; i <= in_imports; i++) {
+ print imports[i] | "sort";
+ }
+ close("sort");
+ in_imports = 0;
+ }
+ print;
+ }
+ END {
+ if (in_imports > 0) {
+ for (i = 1; i <= in_imports; i++) {
+ print imports[i] | "sort";
+ }
+ close("sort");
+ }
+ }
+ ' "$file" > "$file.sorted"
+ mv "$file.sorted" "$file"
+ sed -i '1i # type: ignore' "$file"
+done
diff --git a/src/bindings/python/scripts/stub_generation_precommit.yaml b/src/bindings/python/scripts/stub_generation_precommit.yaml
new file mode 100644
index 00000000000..f715679437b
--- /dev/null
+++ b/src/bindings/python/scripts/stub_generation_precommit.yaml
@@ -0,0 +1,22 @@
+repos:
+ - repo: local
+ hooks:
+ - id: generate_stubs
+ name: Generate .pyi files
+ language: system
+ entry: >
+ bash -c 'if [[ "$OSTYPE" == "msys" ]]; then
+ "$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)/src/bindings/python/scripts/generate_pyapi_stubs.bat";
+ else
+ "$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)/src/bindings/python/scripts/generate_pyapi_stubs.sh";
+ fi;
+ if [ $? -ne 0 ]; then
+ echo "Stub generation failed. Aborting commit.";
+ exit 1;
+ fi;
+
+ git add ./*.pyi'
+ files: .*src/bindings/python/.*
+ pass_filenames: false
+ verbose: true
+ stages: [pre-commit]
diff --git a/src/bindings/python/src/openvino/__init__.pyi b/src/bindings/python/src/openvino/__init__.pyi
new file mode 100644
index 00000000000..64337fb47b8
--- /dev/null
+++ b/src/bindings/python/src/openvino/__init__.pyi
@@ -0,0 +1,79 @@
+# type: ignore
+from __future__ import annotations
+from . import exceptions
+from . import experimental
+from . import frontend
+from . import helpers
+from . import op
+from . import _op_base
+from . import opset1
+from . import opset10
+from . import opset11
+from . import opset12
+from . import opset13
+from . import opset14
+from . import opset15
+from . import opset16
+from . import opset2
+from . import opset3
+from . import opset4
+from . import opset5
+from . import opset6
+from . import opset7
+from . import opset8
+from . import opset9
+from . import _ov_api
+from . import package_utils
+from . import preprocess
+from . import properties
+from . import _pyopenvino
+from . import tools
+from . import utils
+from openvino._op_base import Op
+from openvino._ov_api import AsyncInferQueue
+from openvino._ov_api import CompiledModel
+from openvino._ov_api import compile_model
+from openvino._ov_api import Core
+from openvino._ov_api import InferRequest
+from openvino._ov_api import Model
+from openvino.package_utils import _add_openvino_libs_to_search_path
+from openvino.package_utils import LazyLoader
+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 Dimension
+from openvino._pyopenvino import DiscreteTypeInfo
+from openvino._pyopenvino import Extension
+from openvino._pyopenvino import get_batch
+from openvino._pyopenvino import get_version
+from openvino._pyopenvino import Input
+from openvino._pyopenvino import Layout
+from openvino._pyopenvino import layout_helpers
+from openvino._pyopenvino import Node
+from openvino._pyopenvino import OpExtension
+from openvino._pyopenvino import Output
+from openvino._pyopenvino import OVAny
+from openvino._pyopenvino import PartialShape
+from openvino._pyopenvino import ProfilingInfo
+from openvino._pyopenvino import RemoteContext
+from openvino._pyopenvino import RemoteTensor
+from openvino._pyopenvino import RTMap
+from openvino._pyopenvino import save_model
+from openvino._pyopenvino import serialize
+from openvino._pyopenvino import set_batch
+from openvino._pyopenvino import Shape
+from openvino._pyopenvino import shutdown
+from openvino._pyopenvino import Strides
+from openvino._pyopenvino import Symbol
+from openvino._pyopenvino import Tensor
+from openvino._pyopenvino import Type
+from openvino._pyopenvino import VAContext
+from openvino._pyopenvino import VASurfaceTensor
+from openvino._pyopenvino import Version
+from openvino.tools.ovc.convert import convert_model
+from openvino.utils.data_helpers.wrappers import tensor_from_file
+__all__ = ['AsyncInferQueue', 'AxisSet', 'AxisVector', 'CompiledModel', 'ConstOutput', 'Coordinate', 'CoordinateDiff', 'Core', 'Dimension', 'DiscreteTypeInfo', 'Extension', 'InferRequest', 'Input', 'Layout', 'LazyLoader', 'Model', 'Node', 'OVAny', 'Op', 'OpExtension', 'Output', 'PartialShape', 'ProfilingInfo', 'RTMap', 'RemoteContext', 'RemoteTensor', 'Shape', 'Strides', 'Symbol', 'Tensor', 'Type', 'VAContext', 'VASurfaceTensor', 'Version', 'compile_model', 'convert_model', 'exceptions', 'experimental', 'frontend', 'get_batch', 'get_version', 'helpers', 'layout_helpers', 'op', 'opset1', 'opset10', 'opset11', 'opset12', 'opset13', 'opset14', 'opset15', 'opset16', 'opset2', 'opset3', 'opset4', 'opset5', 'opset6', 'opset7', 'opset8', 'opset9', 'package_utils', 'preprocess', 'properties', 'runtime', 'save_model', 'serialize', 'set_batch', 'shutdown', 'tensor_from_file', 'tools', 'utils']
+__version__: str = 'version_string'
+runtime: package_utils.LazyLoader # value = <LazyLoader for module 'openvino.runtime'>
diff --git a/src/bindings/python/src/openvino/_op_base.pyi b/src/bindings/python/src/openvino/_op_base.pyi
new file mode 100644
index 00000000000..020249a7789
--- /dev/null
+++ b/src/bindings/python/src/openvino/_op_base.pyi
@@ -0,0 +1,10 @@
+# type: ignore
+from __future__ import annotations
+from openvino._pyopenvino import Node
+from openvino._pyopenvino import Op as OpBase
+from openvino._pyopenvino import Output
+import openvino._pyopenvino
+__all__ = ['Node', 'Op', 'OpBase', 'Output']
+class Op(openvino._pyopenvino.Op):
+ def __init__(self, py_obj: Op, inputs: typing.Union[typing.List[typing.Union[openvino._pyopenvino.Node, openvino._pyopenvino.Output]], typing.Tuple[typing.Union[openvino._pyopenvino.Node, openvino._pyopenvino.Output, typing.List[typing.Union[openvino._pyopenvino.Node, openvino._pyopenvino.Output]]]], NoneType] = None) -> None:
+ ...
diff --git a/src/bindings/python/src/openvino/_ov_api.py b/src/bindings/python/src/openvino/_ov_api.py
index ecc23af590f..076acaa2ed8 100644
--- a/src/bindings/python/src/openvino/_ov_api.py
+++ b/src/bindings/python/src/openvino/_ov_api.py
@@ -7,6 +7,7 @@ from types import TracebackType
from typing import Any, Iterable, Union, Optional, Dict
from typing import Type as TypingType
from pathlib import Path
+import traceback # noqa: F811
from openvino._pyopenvino import Model as ModelBase
@@ -92,7 +93,7 @@ class Model(object, metaclass=ModelMeta):
def __enter__(self) -> "Model":
return self
- def __exit__(self, exc_type: TypingType[BaseException], exc_value: BaseException, traceback: TracebackType) -> None:
+ def __exit__(self, exc_type: TypingType[BaseException], exc_value: BaseException, traceback: TracebackType) -> None: # noqa: F811
del self.__model
self.__model = None
@@ -554,7 +555,7 @@ class Core(CoreBase):
self,
model: Union[str, bytes, object, io.BytesIO],
weights: Union[object, str, bytes, Tensor, io.BytesIO] = None,
- config: Optional[dict] = None
+ config: Optional[Dict[str, Any]] = None
) -> Model:
config = {} if config is None else config
if isinstance(model, Model):
@@ -573,7 +574,7 @@ class Core(CoreBase):
self,
model: Union[Model, str, Path],
device_name: Optional[str] = None,
- config: Optional[dict] = None,
+ config: Optional[Dict[str, Any]] = None,
*,
weights: Optional[bytes] = None,
) -> CompiledModel:
@@ -627,7 +628,7 @@ class Core(CoreBase):
self,
model: Model,
device_name: str,
- config: Optional[dict] = None,
+ config: Optional[Dict[str, Any]] = None,
) -> dict:
return super().query_model(model._Model__model,
device_name,
@@ -637,7 +638,7 @@ class Core(CoreBase):
self,
model_stream: bytes,
device_name: str,
- config: Optional[dict] = None,
+ config: Optional[Dict[str, Any]] = None,
) -> CompiledModel:
"""Imports a compiled model from a previously exported one.
@@ -690,7 +691,7 @@ class Core(CoreBase):
def compile_model(
model: Union[Model, str, Path],
device_name: Optional[str] = "AUTO",
- config: Optional[dict] = None,
+ config: Optional[Dict[str, Any]] = None,
) -> CompiledModel:
"""Compact method to compile model with AUTO plugin.
diff --git a/src/bindings/python/src/openvino/_ov_api.pyi b/src/bindings/python/src/openvino/_ov_api.pyi
new file mode 100644
index 00000000000..1822d3ad3ff
--- /dev/null
+++ b/src/bindings/python/src/openvino/_ov_api.pyi
@@ -0,0 +1,528 @@
+# type: ignore
+from builtins import traceback as TracebackType
+from __future__ import annotations
+from openvino.package_utils import deprecatedclassproperty
+from openvino._pyopenvino import AsyncInferQueue as AsyncInferQueueBase
+from openvino._pyopenvino import CompiledModel as CompiledModelBase
+from openvino._pyopenvino import Core as CoreBase
+from openvino._pyopenvino import Model as ModelBase
+from openvino._pyopenvino import Node
+from openvino._pyopenvino import Tensor
+from openvino._pyopenvino import Type
+from openvino.utils.data_helpers.data_dispatcher import _data_dispatch
+from openvino.utils.data_helpers.wrappers import _InferRequestWrapper
+from openvino.utils.data_helpers.wrappers import OVDict
+from openvino.utils.data_helpers.wrappers import tensor_from_file
+from pathlib import Path
+from typing import Any
+import io as io
+import openvino._pyopenvino
+import openvino.utils.data_helpers.wrappers
+import pathlib
+import traceback as traceback
+import typing
+import typing
+__all__ = ['Any', 'AsyncInferQueue', 'AsyncInferQueueBase', 'CompiledModel', 'CompiledModelBase', 'Core', 'CoreBase', 'InferRequest', 'Model', 'ModelBase', 'ModelMeta', 'Node', 'OVDict', 'Path', 'Tensor', 'TracebackType', 'Type', 'TypingType', 'compile_model', 'deprecatedclassproperty', 'io', 'tensor_from_file', 'traceback']
+class AsyncInferQueue(openvino._pyopenvino.AsyncInferQueue):
+ """
+ AsyncInferQueue with a pool of asynchronous requests.
+
+ AsyncInferQueue represents a helper that creates a pool of asynchronous
+ InferRequests and provides synchronization functions to control flow of
+ a simple pipeline.
+
+ """
+ def __getitem__(self, i: int) -> InferRequest:
+ """
+ Gets InferRequest from the pool with given i id.
+
+ Resulting object is guaranteed to work with read-only methods like getting tensors.
+ Any mutating methods (e.g. start_async, set_callback) of a request
+ will put the parent AsyncInferQueue object in an invalid state.
+
+ :param i: InferRequest id.
+ :type i: int
+ :return: InferRequests from the pool with given id.
+ :rtype: openvino.InferRequest
+
+ """
+ def __iter__(self) -> typing.Iterable[openvino._ov_api.InferRequest]:
+ """
+ Allows to iterate over AsyncInferQueue.
+
+ Resulting objects are guaranteed to work with read-only methods like getting tensors.
+ Any mutating methods (e.g. start_async, set_callback) of a single request
+ will put the parent AsyncInferQueue object in an invalid state.
+
+ :return: a generator that yields InferRequests.
+ :rtype: Iterable[openvino.InferRequest]
+
+ """
+ def start_async(self, inputs: typing.Any = None, userdata: typing.Any = None, share_inputs: bool = False) -> None:
+ """
+ Run asynchronous inference using the next available InferRequest from the pool.
+
+ The allowed types of keys in the `inputs` dictionary are:
+
+ (1) `int`
+ (2) `str`
+ (3) `openvino.ConstOutput`
+
+ The allowed types of values in the `inputs` are:
+
+ (1) `numpy.ndarray` and all the types that are castable to it, e.g. `torch.Tensor`
+ (2) `openvino.Tensor`
+
+ Can be called with only one `openvino.Tensor` or `numpy.ndarray`,
+ it will work only with one-input models. When model has more inputs,
+ function throws error.
+
+ :param inputs: Data to be set on input tensors of the next available InferRequest.
+ :type inputs: Any, optional
+ :param userdata: Any data that will be passed to a callback.
+ :type userdata: Any, optional
+ :param share_inputs: Enables `share_inputs` mode. Controls memory usage on inference's inputs.
+
+ If set to `False` inputs the data dispatcher will safely copy data
+ to existing Tensors (including up- or down-casting according to data type,
+ resizing of the input Tensor). Keeps Tensor inputs "as-is".
+
+ If set to `True` the data dispatcher tries to provide "zero-copy"
+ Tensors for every input in form of:
+ * `numpy.ndarray` and all the types that are castable to it, e.g. `torch.Tensor`
+ Data that is going to be copied:
+ * `numpy.ndarray` which are not C contiguous and/or not writable (WRITEABLE flag is set to False)
+ * inputs which data types are mismatched from Infer Request's inputs
+ * inputs that should be in `BF16` data type
+ * scalar inputs (i.e. `np.float_`/`str`/`bytes`/`int`/`float`)
+ * lists of simple data types (i.e. `str`/`bytes`/`int`/`float`)
+ Keeps Tensor inputs "as-is".
+
+ Note: Use with extra care, shared data can be modified during runtime!
+ Note: Using `share_inputs` may result in extra memory overhead.
+
+ Default value: False
+ :type share_inputs: bool, optional
+
+ """
+class CompiledModel(openvino._pyopenvino.CompiledModel):
+ """
+ CompiledModel class.
+
+ CompiledModel represents Model that is compiled for a specific device by applying
+ multiple optimization transformations, then mapping to compute kernels.
+
+ """
+ def __call__(self, inputs: typing.Any = None, share_inputs: bool = True, share_outputs: bool = False, *, decode_strings: bool = True) -> openvino.utils.data_helpers.wrappers.OVDict:
+ """
+ Callable infer wrapper for CompiledModel.
+
+ Infers specified input(s) in synchronous mode.
+
+ Blocks all methods of CompiledModel while request is running.
+
+ Method creates new temporary InferRequest and run inference on it.
+ It is advised to use a dedicated InferRequest class for performance,
+ optimizing workflows, and creating advanced pipelines.
+
+ This method stores created `InferRequest` inside `CompiledModel` object,
+ which can be later reused in consecutive calls.
+
+ The allowed types of keys in the `inputs` dictionary are:
+
+ (1) `int`
+ (2) `str`
+ (3) `openvino.ConstOutput`
+
+ The allowed types of values in the `inputs` are:
+
+ (1) `numpy.ndarray` and all the types that are castable to it, e.g. `torch.Tensor`
+ (2) `openvino.Tensor`
+
+ Can be called with only one `openvino.Tensor` or `numpy.ndarray`,
+ it will work only with one-input models. When model has more inputs,
+ function throws error.
+
+ :param inputs: Data to be set on input tensors.
+ :type inputs: Any, optional
+ :param share_inputs: Enables `share_inputs` mode. Controls memory usage on inference's inputs.
+
+ If set to `False` inputs the data dispatcher will safely copy data
+ to existing Tensors (including up- or down-casting according to data type,
+ resizing of the input Tensor). Keeps Tensor inputs "as-is".
+
+ If set to `True` the data dispatcher tries to provide "zero-copy"
+ Tensors for every input in form of:
+ * `numpy.ndarray` and all the types that are castable to it, e.g. `torch.Tensor`
+ Data that is going to be copied:
+ * `numpy.ndarray` which are not C contiguous and/or not writable (WRITEABLE flag is set to False)
+ * inputs which data types are mismatched from Infer Request's inputs
+ * inputs that should be in `BF16` data type
+ * scalar inputs (i.e. `np.float_`/`str`/`bytes`/`int`/`float`)
+ * lists of simple data types (i.e. `str`/`bytes`/`int`/`float`)
+ Keeps Tensor inputs "as-is".
+
+ Note: Use with extra care, shared data can be modified during runtime!
+ Note: Using `share_inputs` may result in extra memory overhead.
+
+ Default value: True
+ :type share_inputs: bool, optional
+ :param share_outputs: Enables `share_outputs` mode. Controls memory usage on inference's outputs.
+
+ If set to `False` outputs will safely copy data to numpy arrays.
+
+ If set to `True` the data will be returned in form of views of output Tensors.
+ This mode still returns the data in format of numpy arrays but lifetime of the data
+ is connected to OpenVINO objects.
+
+ Note: Use with extra care, shared data can be modified or lost during runtime!
+ Note: String/textual data will always be copied!
+
+ Default value: False
+ :type share_outputs: bool, optional
+ :param decode_strings: Controls decoding outputs of textual based data.
+
+ If set to `True` string outputs will be returned as numpy arrays of `U` kind.
+
+ If set to `False` string outputs will be returned as numpy arrays of `S` kind.
+
+ Default value: True
+ :type decode_strings: bool, optional, keyword-only
+
+ :return: Dictionary of results from output tensors with port/int/str as keys.
+ :rtype: OVDict
+
+ """
+ def __init__(self, other: openvino._pyopenvino.CompiledModel, weights: typing.Optional[bytes] = None) -> None:
+ ...
+ def create_infer_request(self) -> InferRequest:
+ """
+ Creates an inference request object used to infer the compiled model.
+
+ The created request has allocated input and output tensors.
+
+ :return: New InferRequest object.
+ :rtype: openvino.InferRequest
+
+ """
+ def get_runtime_model(self) -> Model:
+ ...
+ def infer_new_request(self, inputs: typing.Any = None) -> openvino.utils.data_helpers.wrappers.OVDict:
+ """
+ Infers specified input(s) in synchronous mode.
+
+ Blocks all methods of CompiledModel while request is running.
+
+ Method creates new temporary InferRequest and run inference on it.
+ It is advised to use a dedicated InferRequest class for performance,
+ optimizing workflows, and creating advanced pipelines.
+
+ The allowed types of keys in the `inputs` dictionary are:
+
+ (1) `int`
+ (2) `str`
+ (3) `openvino.ConstOutput`
+
+ The allowed types of values in the `inputs` are:
+
+ (1) `numpy.ndarray` and all the types that are castable to it, e.g. `torch.Tensor`
+ (2) `openvino.Tensor`
+
+ Can be called with only one `openvino.Tensor` or `numpy.ndarray`,
+ it will work only with one-input models. When model has more inputs,
+ function throws error.
+
+ :param inputs: Data to be set on input tensors.
+ :type inputs: Any, optional
+ :return: Dictionary of results from output tensors with port/int/str keys.
+ :rtype: OVDict
+
+ """
+ def query_state(self) -> None:
+ """
+ Gets state control interface for the underlaying infer request.
+
+ :return: List of VariableState objects.
+ :rtype: List[openvino.VariableState]
+
+ """
+ def reset_state(self) -> None:
+ """
+ Resets all internal variable states of the underlaying infer request.
+
+ Resets all internal variable states to a value specified as default for
+ the corresponding `ReadValue` node.
+
+ """
+class Core(openvino._pyopenvino.Core):
+ """
+ Core class represents OpenVINO runtime Core entity.
+
+ User applications can create several Core class instances, but in this
+ case, the underlying plugins are created multiple times and not shared
+ between several Core instances. The recommended way is to have a single
+ Core instance per application.
+
+ """
+ def compile_model(self, model: typing.Union[openvino._ov_api.Model, str, pathlib.Path], device_name: typing.Optional[str] = None, config: typing.Optional[typing.Dict[str, typing.Any]] = None, *, weights: typing.Optional[bytes] = None) -> CompiledModel:
+ """
+ Creates a compiled model.
+
+ Creates a compiled model from a source Model object or
+ reads model and creates a compiled model from IR / ONNX / PDPD / TF and TFLite file or
+ creates a compiled model from a IR xml and weights in memory.
+ This can be more efficient than using read_model + compile_model(model_in_memory_object) flow,
+ especially for cases when caching is enabled and cached model is available.
+ If device_name is not specified, the default OpenVINO device will be selected by AUTO plugin.
+ Users can create as many compiled models as they need, and use them simultaneously
+ (up to the limitation of the hardware resources).
+
+ :param model: Model acquired from read_model function or a path to a model in IR / ONNX / PDPD /
+ TF and TFLite format.
+ :type model: Union[openvino.Model, str, pathlib.Path]
+ :param device_name: Optional. Name of the device to load the model to. If not specified,
+ the default OpenVINO device will be selected by AUTO plugin.
+ :type device_name: str
+ :param config: Optional dict of pairs:
+ (property name, property value) relevant only for this load operation.
+ :type config: dict, optional
+ :param weights: Optional. Weights of model in memory to be loaded to the model.
+ :type weights: bytes, optional, keyword-only
+ :return: A compiled model.
+ :rtype: openvino.CompiledModel
+
+ """
+ def import_model(self, model_stream: bytes, device_name: str, config: typing.Optional[typing.Dict[str, typing.Any]] = None) -> CompiledModel:
+ """
+ Imports a compiled model from a previously exported one.
+
+ :param model_stream: Input stream, containing a model previously exported, using export_model method.
+ :type model_stream: bytes
+ :param device_name: Name of device to which compiled model is imported.
+ Note: if device_name is not used to compile the original model,
+ an exception is thrown.
+ :type device_name: str
+ :param config: Optional dict of pairs:
+ (property name, property value) relevant only for this load operation.
+ :type config: dict, optional
+ :return: A compiled model.
+ :rtype: openvino.CompiledModel
+
+ :Example:
+
+ .. code-block:: python
+
+ user_stream = compiled.export_model()
+
+ with open('./my_model', 'wb') as f:
+ f.write(user_stream)
+
+ # ...
+
+ new_compiled = core.import_model(user_stream, "CPU")
+
+ .. code-block:: python
+
+ user_stream = io.BytesIO()
+ compiled.export_model(user_stream)
+
+ with open('./my_model', 'wb') as f:
+ f.write(user_stream.getvalue()) # or read() if seek(0) was applied before
+
+ # ...
+
+ new_compiled = core.import_model(user_stream, "CPU")
+
+ """
+ def query_model(self, model: Model, device_name: str, config: typing.Optional[typing.Dict[str, typing.Any]] = None) -> dict:
+ ...
+ def read_model(self, model: typing.Union[str, bytes, object, _io.BytesIO], weights: typing.Union[object, str, bytes, openvino._pyopenvino.Tensor, _io.BytesIO] = None, config: typing.Optional[typing.Dict[str, typing.Any]] = None) -> Model:
+ ...
+class InferRequest(openvino.utils.data_helpers.wrappers._InferRequestWrapper):
+ """
+ InferRequest class represents infer request which can be run in asynchronous or synchronous manners.
+ """
+ def get_compiled_model(self) -> CompiledModel:
+ """
+ Gets the compiled model this InferRequest is using.
+
+ :return: a CompiledModel object
+ :rtype: openvino.CompiledModel
+
+ """
+ def infer(self, inputs: typing.Any = None, share_inputs: bool = False, share_outputs: bool = False, *, decode_strings: bool = True) -> openvino.utils.data_helpers.wrappers.OVDict:
+ """
+ Infers specified input(s) in synchronous mode.
+
+ Blocks all methods of InferRequest while request is running.
+ Calling any method will lead to throwing exceptions.
+
+ The allowed types of keys in the `inputs` dictionary are:
+
+ (1) `int`
+ (2) `str`
+ (3) `openvino.ConstOutput`
+
+ The allowed types of values in the `inputs` are:
+
+ (1) `numpy.ndarray` and all the types that are castable to it, e.g. `torch.Tensor`
+ (2) `openvino.Tensor`
+
+ Can be called with only one `openvino.Tensor` or `numpy.ndarray`,
+ it will work only with one-input models. When model has more inputs,
+ function throws error.
+
+ :param inputs: Data to be set on input tensors.
+ :type inputs: Any, optional
+ :param share_inputs: Enables `share_inputs` mode. Controls memory usage on inference's inputs.
+
+ If set to `False` inputs the data dispatcher will safely copy data
+ to existing Tensors (including up- or down-casting according to data type,
+ resizing of the input Tensor). Keeps Tensor inputs "as-is".
+
+ If set to `True` the data dispatcher tries to provide "zero-copy"
+ Tensors for every input in form of:
+ * `numpy.ndarray` and all the types that are castable to it, e.g. `torch.Tensor`
+ Data that is going to be copied:
+ * `numpy.ndarray` which are not C contiguous and/or not writable (WRITEABLE flag is set to False)
+ * inputs which data types are mismatched from Infer Request's inputs
+ * inputs that should be in `BF16` data type
+ * scalar inputs (i.e. `np.float_`/`str`/`bytes`/`int`/`float`)
+ * lists of simple data types (i.e. `str`/`bytes`/`int`/`float`)
+ Keeps Tensor inputs "as-is".
+
+ Note: Use with extra care, shared data can be modified during runtime!
+ Note: Using `share_inputs` may result in extra memory overhead.
+
+ Default value: False
+ :type share_inputs: bool, optional
+ :param share_outputs: Enables `share_outputs` mode. Controls memory usage on inference's outputs.
+
+ If set to `False` outputs will safely copy data to numpy arrays.
+
+ If set to `True` the data will be returned in form of views of output Tensors.
+ This mode still returns the data in format of numpy arrays but lifetime of the data
+ is connected to OpenVINO objects.
+
+ Note: Use with extra care, shared data can be modified or lost during runtime!
+ Note: String/textual data will always be copied!
+
+ Default value: False
+ :type share_outputs: bool, optional
+ :param decode_strings: Controls decoding outputs of textual based data.
+
+ If set to `True` string outputs will be returned as numpy arrays of `U` kind.
+
+ If set to `False` string outputs will be returned as numpy arrays of `S` kind.
+
+ Default value: True
+ :type decode_strings: bool, optional, keyword-only
+
+ :return: Dictionary of results from output tensors with port/int/str keys.
+ :rtype: OVDict
+
+ """
+ def start_async(self, inputs: typing.Any = None, userdata: typing.Any = None, share_inputs: bool = False) -> None:
+ """
+ Starts inference of specified input(s) in asynchronous mode.
+
+ Returns immediately. Inference starts also immediately.
+ Calling any method on the `InferRequest` object while the request is running
+ will lead to throwing exceptions.
+
+ The allowed types of keys in the `inputs` dictionary are:
+
+ (1) `int`
+ (2) `str`
+ (3) `openvino.ConstOutput`
+
+ The allowed types of values in the `inputs` are:
+
+ (1) `numpy.ndarray` and all the types that are castable to it, e.g. `torch.Tensor`
+ (2) `openvino.Tensor`
+
+ Can be called with only one `openvino.Tensor` or `numpy.ndarray`,
+ it will work only with one-input models. When model has more inputs,
+ function throws error.
+
+ :param inputs: Data to be set on input tensors.
+ :type inputs: Any, optional
+ :param userdata: Any data that will be passed inside the callback.
+ :type userdata: Any
+ :param share_inputs: Enables `share_inputs` mode. Controls memory usage on inference's inputs.
+
+ If set to `False` inputs the data dispatcher will safely copy data
+ to existing Tensors (including up- or down-casting according to data type,
+ resizing of the input Tensor). Keeps Tensor inputs "as-is".
+
+ If set to `True` the data dispatcher tries to provide "zero-copy"
+ Tensors for every input in form of:
+ * `numpy.ndarray` and all the types that are castable to it, e.g. `torch.Tensor`
+ Data that is going to be copied:
+ * `numpy.ndarray` which are not C contiguous and/or not writable (WRITEABLE flag is set to False)
+ * inputs which data types are mismatched from Infer Request's inputs
+ * inputs that should be in `BF16` data type
+ * scalar inputs (i.e. `np.float_`/`str`/`bytes`/`int`/`float`)
+ * lists of simple data types (i.e. `str`/`bytes`/`int`/`float`)
+ Keeps Tensor inputs "as-is".
+
+ Note: Use with extra care, shared data can be modified during runtime!
+ Note: Using `share_inputs` may result in extra memory overhead.
+
+ Default value: False
+ :type share_inputs: bool, optional
+
+ """
+ @property
+ def results(self) -> openvino.utils.data_helpers.wrappers.OVDict:
+ """
+ Gets all outputs tensors of this InferRequest.
+
+ :return: Dictionary of results from output tensors with ports as keys.
+ :rtype: Dict[openvino.ConstOutput, numpy.array]
+
+ """
+class Model:
+ def __copy__(self) -> Model:
+ ...
+ def __deepcopy__(self, memo: typing.Dict) -> Model:
+ """
+ Returns a deepcopy of Model.
+
+ :return: A copy of Model.
+ :rtype: openvino.Model
+
+ """
+ def __enter__(self) -> Model:
+ ...
+ def __exit__(self, exc_type: typing.Type[BaseException], exc_value: BaseException, traceback: traceback) -> None:
+ ...
+ def __getattr__(self, name: str) -> typing.Any:
+ ...
+ def __init__(self, *args: typing.Any, **kwargs: typing.Any) -> None:
+ ...
+ def __repr__(self) -> str:
+ ...
+ def clone(self) -> Model:
+ ...
+class ModelMeta(type):
+ pass
+def compile_model(model: typing.Union[openvino._ov_api.Model, str, pathlib.Path], device_name: typing.Optional[str] = 'AUTO', config: typing.Optional[typing.Dict[str, typing.Any]] = None) -> CompiledModel:
+ """
+ Compact method to compile model with AUTO plugin.
+
+ :param model: Model acquired from read_model function or a path to a model in IR / ONNX / PDPD /
+ TF and TFLite format.
+ :type model: Union[openvino.Model, str, pathlib.Path]
+ :param device_name: Optional. Name of the device to load the model to. If not specified,
+ the default OpenVINO device will be selected by AUTO plugin.
+ :type device_name: str
+ :param config: Optional dict of pairs:
+ (property name, property value) relevant only for this load operation.
+ :type config: dict, optional
+ :return: A compiled model.
+ :rtype: openvino.CompiledModel
+
+
+ """
+TypingType: typing._SpecialGenericAlias # value = typing.Type
diff --git a/src/bindings/python/src/openvino/_pyopenvino/__init__.pyi b/src/bindings/python/src/openvino/_pyopenvino/__init__.pyi
new file mode 100644
index 00000000000..a520623f93c
--- /dev/null
+++ b/src/bindings/python/src/openvino/_pyopenvino/__init__.pyi
@@ -0,0 +1,5134 @@
+# type: ignore
+"""
+Package openvino._pyopenvino which wraps openvino C++ APIs
+"""
+from __future__ import annotations
+from . import experimental
+from . import frontend
+from . import layout_helpers
+from . import _offline_transformations
+from . import op
+from . import passes
+from . import preprocess
+from . import properties
+from . import util
+import datetime
+import numpy
+import typing
+__all__ = ['AsyncInferQueue', 'AttributeVisitor', 'AxisSet', 'AxisVector', 'CompiledModel', 'ConstOutput', 'ConversionExtension', 'ConversionExtensionBase', 'Coordinate', 'CoordinateDiff', 'Core', 'DecoderTransformationExtension', 'DescriptorTensor', 'Dimension', 'DiscreteTypeInfo', 'Extension', 'FrontEnd', 'FrontEndManager', 'GeneralFailure', 'InferRequest', 'InitializationFailure', 'Input', 'InputModel', 'Iterator', 'Layout', 'Model', 'Node', 'NodeContext', 'NodeFactory', 'NotImplementedFailure', 'OVAny', 'Op', 'OpConversionFailure', 'OpExtension', 'OpValidationFailure', 'Output', 'PartialShape', 'Place', 'ProfilingInfo', 'ProgressReporterExtension', 'RTMap', 'RemoteContext', 'RemoteTensor', 'Shape', 'Strides', 'Symbol', 'TelemetryExtension', 'Tensor', 'Type', 'VAContext', 'VASurfaceTensor', 'VariableState', 'Version', 'experimental', 'frontend', 'get_batch', 'get_version', 'layout_helpers', 'op', 'passes', 'preprocess', 'properties', 'save_model', 'serialize', 'set_batch', 'shutdown', 'util']
+class AsyncInferQueue:
+ """
+ openvino.AsyncInferQueue represents a helper that creates a pool of asynchronousInferRequests and provides synchronization functions to control flow of a simple pipeline.
+ """
+ def __getitem__(self, arg0: int) -> InferRequest:
+ """
+ :param i: InferRequest id
+ :type i: int
+ :return: InferRequests from the pool with given id.
+ :rtype: openvino.InferRequest
+ """
+ def __init__(self, model: CompiledModel, jobs: int = 0) -> None:
+ """
+ Creates AsyncInferQueue.
+
+ :param model: Model to be used to create InferRequests in a pool.
+ :type model: openvino.CompiledModel
+ :param jobs: Number of InferRequests objects in a pool. If 0, jobs number
+ will be set automatically to the optimal number. Default: 0
+ :type jobs: int
+ :rtype: openvino.AsyncInferQueue
+ """
+ def __iter__(self) -> typing.Iterator[InferRequest]:
+ ...
+ def __len__(self) -> int:
+ """
+ Number of InferRequests in the pool.
+
+ :rtype: int
+ """
+ def __repr__(self) -> str:
+ ...
+ def get_idle_request_id(self) -> int:
+ """
+ Returns next free id of InferRequest from queue's pool.
+ Function waits for any request to complete and then returns this request's id.
+
+ GIL is released while running this function.
+
+ :rtype: int
+ """
+ def is_ready(self) -> bool:
+ """
+ One of 'flow control' functions.
+ Returns True if any free request in the pool, otherwise False.
+
+ GIL is released while running this function.
+
+ :return: If there is at least one free InferRequest in a pool, returns True.
+ :rtype: bool
+ """
+ def set_callback(self, arg0: typing.Callable) -> None:
+ """
+ Sets unified callback on all InferRequests from queue's pool.
+ Signature of such function should have two arguments, where
+ first one is InferRequest object and second one is userdata
+ connected to InferRequest from the AsyncInferQueue's pool.
+
+ .. code-block:: python
+
+ def f(request, userdata):
+ result = request.output_tensors[0]
+ print(result + userdata)
+
+ async_infer_queue.set_callback(f)
+
+ :param callback: Any Python defined function that matches callback's requirements.
+ :type callback: function
+ """
+ @typing.overload
+ def start_async(self, inputs: Tensor, userdata: typing.Any) -> None:
+ """
+ Run asynchronous inference using the next available InferRequest.
+
+ This function releases the GIL, so another Python thread can
+ work while this function runs in the background.
+
+ :param inputs: Data to set on single input tensor of next available InferRequest from
+ AsyncInferQueue's pool.
+ :type inputs: openvino.Tensor
+ :param userdata: Any data that will be passed to a callback
+ :type userdata: Any
+ :rtype: None
+
+ GIL is released while waiting for the next available InferRequest.
+ """
+ @typing.overload
+ def start_async(self, inputs: dict, userdata: typing.Any) -> None:
+ """
+ Run asynchronous inference using the next available InferRequest.
+
+ This function releases the GIL, so another Python thread can
+ work while this function runs in the background.
+
+ :param inputs: Data to set on input tensors of next available InferRequest from
+ AsyncInferQueue's pool.
+ :type inputs: dict[Union[int, str, openvino.ConstOutput] : openvino.Tensor]
+ :param userdata: Any data that will be passed to a callback
+ :rtype: None
+
+ GIL is released while waiting for the next available InferRequest.
+ """
+ def wait_all(self) -> None:
+ """
+ One of 'flow control' functions. Blocking call.
+ Waits for all InferRequests in a pool to finish scheduled work.
+
+ GIL is released while running this function.
+ """
+ @property
+ def userdata(self) -> list[typing.Any]:
+ """
+ :return: List of all passed userdata. List is filled with `None` if the data wasn't passed yet.
+ :rtype: List[Any]
+ """
+class AttributeVisitor:
+ def on_attributes(self, arg0: dict) -> None:
+ ...
+class AxisSet:
+ """
+ openvino.AxisSet wraps ov::AxisSet
+ """
+ @typing.overload
+ def __init__(self, axes: set[int]) -> None:
+ ...
+ @typing.overload
+ def __init__(self, axes: list[int]) -> None:
+ ...
+ @typing.overload
+ def __init__(self, axes: AxisSet) -> None:
+ ...
+ def __iter__(self) -> typing.Iterator[int]:
+ ...
+ def __len__(self) -> int:
+ ...
+ def __repr__(self) -> str:
+ ...
+class AxisVector:
+ """
+ openvino.AxisVector wraps ov::AxisVector
+ """
+ def __getitem__(self, arg0: int) -> int:
+ ...
+ @typing.overload
+ def __init__(self, axes: list[int]) -> None:
+ ...
+ @typing.overload
+ def __init__(self, axes: AxisVector) -> None:
+ ...
+ def __iter__(self) -> typing.Iterator[int]:
+ ...
+ def __len__(self) -> int:
+ ...
+ def __repr__(self) -> str:
+ ...
+ def __setitem__(self, arg0: int, arg1: int) -> None:
+ ...
+class CompiledModel:
+ """
+ openvino.CompiledModel represents Model that is compiled for a specific device by applying multiple optimization transformations, then mapping to compute kernels.
+ """
+ def __init__(self, other: CompiledModel) -> None:
+ ...
+ def __repr__(self) -> str:
+ ...
+ def create_infer_request(self) -> InferRequestWrapper:
+ """
+ Creates an inference request object used to infer the compiled model.
+ The created request has allocated input and output tensors.
+
+ :return: New InferRequest object.
+ :rtype: openvino.InferRequest
+ """
+ @typing.overload
+ def export_model(self) -> typing.Any:
+ """
+ Exports the compiled model to bytes/output stream.
+
+ GIL is released while running this function.
+
+ :return: Bytes object that contains this compiled model.
+ :rtype: bytes
+
+ .. code-block:: python
+
+ user_stream = compiled.export_model()
+
+ with open('./my_model', 'wb') as f:
+ f.write(user_stream)
+
+ # ...
+
+ new_compiled = core.import_model(user_stream, "CPU")
+ """
+ @typing.overload
+ def export_model(self, model_stream: typing.Any) -> None:
+ """
+ Exports the compiled model to bytes/output stream.
+
+ Advanced version of `export_model`. It utilizes, streams from the standard
+ Python library `io`.
+
+ Function performs flushing of the stream, writes to it, and then rewinds
+ the stream to the beginning (using seek(0)).
+
+ GIL is released while running this function.
+
+ :param model_stream: A stream object to which the model will be serialized.
+ :type model_stream: io.BytesIO
+ :rtype: None
+
+ .. code-block:: python
+
+ user_stream = io.BytesIO()
+ compiled.export_model(user_stream)
+
+ with open('./my_model', 'wb') as f:
+ f.write(user_stream.getvalue()) # or read() if seek(0) was applied before
+
+ # ...
+
+ new_compiled = core.import_model(user_stream, "CPU")
+ """
+ def get_property(self, property: str) -> typing.Any:
+ """
+ Gets properties for current compiled model.
+
+ :param name: Property name.
+ :type name: str
+ :rtype: Any
+ """
+ def get_runtime_model(self) -> Model:
+ """
+ Gets runtime model information from a device.
+
+ This object (returned model) represents the internal device-specific model
+ which is optimized for the particular accelerator. It contains device-specific nodes,
+ runtime information, and can be used only to understand how the source model
+ is optimized and which kernels, element types, and layouts are selected.
+
+ :return: Model, containing Executable Graph information.
+ :rtype: openvino.Model
+ """
+ @typing.overload
+ def input(self) -> ConstOutput:
+ """
+ Gets a single input of a compiled model.
+ If a model has more than one input, this method throws an exception.
+
+ :return: A compiled model input.
+ :rtype: openvino.ConstOutput
+ """
+ @typing.overload
+ def input(self, index: int) -> ConstOutput:
+ """
+ Gets input of a compiled model identified by an index.
+ If the input with given index is not found, this method throws an exception.
+
+ :param index: An input index.
+ :type index: int
+ :return: A compiled model input.
+ :rtype: openvino.ConstOutput
+ """
+ @typing.overload
+ def input(self, tensor_name: str) -> ConstOutput:
+ """
+ Gets input of a compiled model identified by a tensor_name.
+ If the input with given tensor name is not found, this method throws an exception.
+
+ :param tensor_name: An input tensor name.
+ :type tensor_name: str
+ :return: A compiled model input.
+ :rtype: openvino.ConstOutput
+ """
+ @typing.overload
+ def output(self) -> ConstOutput:
+ """
+ Gets a single output of a compiled model.
+ If the model has more than one output, this method throws an exception.
+
+ :return: A compiled model output.
+ :rtype: openvino.ConstOutput
+ """
+ @typing.overload
+ def output(self, index: int) -> ConstOutput:
+ """
+ Gets output of a compiled model identified by an index.
+ If the output with given index is not found, this method throws an exception.
+
+ :param index: An output index.
+ :type index: int
+ :return: A compiled model output.
+ :rtype: openvino.ConstOutput
+ """
+ @typing.overload
+ def output(self, tensor_name: str) -> ConstOutput:
+ """
+ Gets output of a compiled model identified by a tensor_name.
+ If the output with given tensor name is not found, this method throws an exception.
+
+ :param tensor_name: An output tensor name.
+ :type tensor_name: str
+ :return: A compiled model output.
+ :rtype: openvino.ConstOutput
+ """
+ def release_memory(self) -> None:
+ """
+ Release intermediate memory.
+
+ This method forces the Compiled model to release memory allocated for intermediate structures,
+ e.g. caches, tensors, temporal buffers etc., when possible
+ """
+ @typing.overload
+ def set_property(self, properties: dict[str, typing.Any]) -> None:
+ """
+ Sets properties for current compiled model.
+
+ :param properties: Dict of pairs: (property name, property value)
+ :type properties: dict
+ :rtype: None
+ """
+ @typing.overload
+ def set_property(self, property: tuple[str, typing.Any]) -> None:
+ """
+ Sets properties for current compiled model.
+
+ :param property: Tuple of (property name, matching property value).
+ :type property: tuple
+ """
+ @property
+ def inputs(self) -> list[ConstOutput]:
+ """
+ Gets all inputs of a compiled model.
+
+ :return: Inputs of a compiled model.
+ :rtype: List[openvino.ConstOutput]
+ """
+ @property
+ def outputs(self) -> list[ConstOutput]:
+ """
+ Gets all outputs of a compiled model.
+
+ :return: Outputs of a compiled model.
+ :rtype: List[openvino.ConstOutput]
+ """
+class ConstOutput:
+ """
+ openvino.ConstOutput represents port/node output.
+ """
+ def __copy__(self) -> ConstOutput:
+ ...
+ def __deepcopy__(self, arg0: dict) -> None:
+ ...
+ def __eq__(self, arg0: ConstOutput) -> bool:
+ ...
+ def __ge__(self, arg0: ConstOutput) -> bool:
+ ...
+ def __gt__(self, arg0: ConstOutput) -> bool:
+ ...
+ def __hash__(self) -> int:
+ ...
+ def __le__(self, arg0: ConstOutput) -> bool:
+ ...
+ def __lt__(self, arg0: ConstOutput) -> bool:
+ ...
+ def __ne__(self, arg0: ConstOutput) -> bool:
+ ...
+ def __repr__(self) -> str:
+ ...
+ def _from_node(self: Node) -> Output:
+ ...
+ def get_any_name(self) -> str:
+ """
+ One of the tensor names associated with this output.
+ Note: first name in lexicographical order.
+
+ :return: Tensor name as string.
+ :rtype: str
+ """
+ def get_element_type(self) -> Type:
+ """
+ The element type of the output referred to by this output handle.
+
+ :return: Type of the output.
+ :rtype: openvino.Type
+ """
+ def get_index(self) -> int:
+ """
+ The index of the output referred to by this output handle.
+
+ :return: Index value as integer.
+ :rtype: int
+ """
+ def get_names(self) -> set[str]:
+ """
+ The tensor names associated with this output.
+
+ :return: Set of tensor names.
+ :rtype: Set[str]
+ """
+ def get_node(self) -> Node:
+ """
+ Get node referenced by this output handle.
+
+ :return: Node object referenced by this output handle.
+ :rtype: openvino.Node
+ """
+ def get_partial_shape(self) -> PartialShape:
+ """
+ The partial shape of the output referred to by this output handle.
+
+ :return: Copy of PartialShape of the output.
+ :rtype: openvino.PartialShape
+ """
+ def get_rt_info(self) -> RTMap:
+ """
+ Returns RTMap which is a dictionary of user defined runtime info.
+
+ :return: A dictionary of user defined data.
+ :rtype: openvino.RTMap
+ """
+ def get_shape(self) -> Shape:
+ """
+ The shape of the output referred to by this output handle.
+
+ :return: Copy of Shape of the output.
+ :rtype: openvino.Shape
+ """
+ def get_target_inputs(self) -> set[Input]:
+ """
+ A set containing handles for all inputs, targeted by the output,
+ referenced by this output handle.
+
+ :return: Set of Inputs.
+ :rtype: Set[openvino.Input]
+ """
+ def get_tensor(self) -> DescriptorTensor:
+ """
+ A reference to the tensor descriptor for this output.
+
+ :return: Tensor of the output.
+ :rtype: openvino._pyopenvino.DescriptorTensor
+ """
+ @property
+ def any_name(self) -> str:
+ ...
+ @property
+ def element_type(self) -> Type:
+ ...
+ @property
+ def index(self) -> int:
+ ...
+ @property
+ def names(self) -> set[str]:
+ ...
+ @property
+ def node(self) -> Node:
+ ...
+ @property
+ def partial_shape(self) -> PartialShape:
+ ...
+ @property
+ def rt_info(self) -> RTMap:
+ ...
+ @property
+ def shape(self) -> Shape:
+ ...
+ @property
+ def target_inputs(self) -> set[Input]:
+ ...
+ @property
+ def tensor(self) -> DescriptorTensor:
+ ...
+class ConversionExtension(_ConversionExtension):
+ @typing.overload
+ def __init__(self, arg0: str, arg1: typing.Callable[[NodeContext], list[Output]]) -> None:
+ ...
+ @typing.overload
+ def __init__(self, arg0: str, arg1: typing.Callable[[NodeContext], dict[str, list[Output]]]) -> None:
+ ...
+class ConversionExtensionBase(Extension):
+ pass
+class Coordinate:
+ """
+ openvino.Coordinate wraps ov::Coordinate
+ """
+ def __getitem__(self, arg0: int) -> int:
+ ...
+ @typing.overload
+ def __init__(self, arg0: Shape) -> None:
+ ...
+ @typing.overload
+ def __init__(self, arg0: list[int]) -> None:
+ ...
+ @typing.overload
+ def __init__(self, arg0: Coordinate) -> None:
+ ...
+ def __iter__(self) -> typing.Iterator[int]:
+ ...
+ def __len__(self) -> int:
+ ...
+ def __repr__(self) -> str:
+ ...
+ def __setitem__(self, arg0: int, arg1: int) -> None:
+ ...
+class CoordinateDiff:
+ """
+ openvino.CoordinateDiff wraps ov::CoordinateDiff
+ """
+ def __getitem__(self, arg0: int) -> int:
+ ...
+ @typing.overload
+ def __init__(self, arg0: list[int]) -> None:
+ ...
+ @typing.overload
+ def __init__(self, arg0: CoordinateDiff) -> None:
+ ...
+ def __iter__(self) -> typing.Iterator[int]:
+ ...
+ def __len__(self) -> int:
+ ...
+ def __repr__(self) -> str:
+ ...
+ def __setitem__(self, arg0: int, arg1: int) -> None:
+ ...
+ def __str__(self) -> str:
+ ...
+class Core:
+ """
+ openvino.Core class represents OpenVINO runtime Core entity. User applications can create several Core class instances, but in this case, the underlying plugins are created multiple times and not shared between several Core instances. The recommended way is to have a single Core instance per application.
+ """
+ def __init__(self, xml_config_file: str = '') -> None:
+ ...
+ def __repr__(self) -> str:
+ ...
+ @typing.overload
+ def add_extension(self, library_path: str) -> None:
+ """
+ Registers an extension to a Core object.
+
+ :param library_path: Path to library with ov::Extension
+ :type library_path: str
+ """
+ @typing.overload
+ def add_extension(self, extension: Extension) -> None:
+ """
+ Registers an extension to a Core object.
+
+ :param extension: Extension object.
+ :type extension: openvino.Extension
+ """
+ @typing.overload
+ def add_extension(self, extensions: list[Extension]) -> None:
+ """
+ Registers extensions to a Core object.
+
+ :param extensions: List of Extension objects.
+ :type extensions: typing.List[openvino.Extension]
+ """
+ @typing.overload
+ def add_extension(self, custom_op: typing.Any) -> None:
+ """
+ Registers custom Op to a Core object.
+
+ :param custom_op: type of custom Op
+ :type custom_op: typing.Type[openvino.Op]
+ """
+ @typing.overload
+ def compile_model(self, model: Model, device_name: str, properties: dict[str, typing.Any]) -> CompiledModel:
+ """
+ Creates a compiled model from a source model object.
+ Users can create as many compiled models as they need, and use them simultaneously
+ (up to the limitation of the hardware resources).
+
+ GIL is released while running this function.
+
+ :param model: Model acquired from read_model function.
+ :type model: openvino.Model
+ :param device_name: Name of the device which will load the model.
+ :type device_name: str
+ :param properties: Optional dict of pairs: (property name, property value) relevant only for this load operation.
+ :type properties: typing.Dict[str, typing.Any]
+ :return: A compiled model.
+ :rtype: openvino.CompiledModel
+ """
+ @typing.overload
+ def compile_model(self, model: Model, properties: dict[str, typing.Any]) -> CompiledModel:
+ """
+ Creates and loads a compiled model from a source model to the default OpenVINO device
+ selected by AUTO plugin. Users can create as many compiled models as they need, and use
+ them simultaneously (up to the limitation of the hardware resources).
+
+ GIL is released while running this function.
+
+ :param model: Model acquired from read_model function.
+ :type model: openvino.Model
+ :param properties: Optional dict of pairs: (property name, property value) relevant only for this load operation.
+ :type properties: typing.Dict[str, typing.Any]
+ :return: A compiled model.
+ :rtype: openvino.CompiledModel
+ """
+ @typing.overload
+ def compile_model(self, model_path: typing.Any, device_name: str, properties: dict[str, typing.Any]) -> CompiledModel:
+ """
+ Reads model and creates a compiled model from IR / ONNX / PDPD / TF and TFLite file.
+ This can be more efficient than using read_model + compile_model(model_in_memory_object) flow,
+ especially for cases when caching is enabled and cached model is available.
+
+ GIL is released while running this function.
+
+ :param model_path: A path to a model in IR / ONNX / PDPD / TF and TFLite format.
+ :type model_path: typing.Union[str, pathlib.Path]
+ :param device_name: Name of the device to load the model to.
+ :type device_name: str
+ :param properties: Optional dict of pairs: (property name, property value) relevant only for this load operation.
+ :type properties: typing.Dict[str, typing.Any]
+ :return: A compiled model.
+ :rtype: openvino.CompiledModel
+ """
+ @typing.overload
+ def compile_model(self, model_buffer: typing.Any, weight_buffer: typing.Any, device_name: str, properties: dict[str, typing.Any]) -> CompiledModel:
+ """
+ Create a compiled model from IR model buffer and weight buffer in memory.
+ This can be more efficient than using read_model + compile_model(model_in_memory_object) flow,
+ especially for cases when caching is enabled and cached model is available.
+
+ GIL is released while runing this function.
+
+ :param model_buffer: A string buffer of IR xml in memory
+ :type model_buffer: str
+ :param weight_buffer: A byte buffer of IR weights in memory
+ :type weight_buffer: bytes
+ :param device_name: Name of the device to load the model to.
+ :type device_name: str
+ :param properties: Optional dict of pairs: (property name, property value) relevant only for this load operation.
+ :type properties: dict
+ :return: A compiled model.
+ :rtype: openvino.CompiledModel
+ """
+ @typing.overload
+ def compile_model(self, model_path: typing.Any, properties: dict[str, typing.Any]) -> CompiledModel:
+ """
+ Reads model and creates a compiled model from IR / ONNX / PDPD / TF and TFLite file with device selected by AUTO plugin.
+ This can be more efficient than using read_model + compile_model(model_in_memory_object) flow,
+ especially for cases when caching is enabled and cached model is available.
+
+ GIL is released while running this function.
+
+ :param model_path: A path to a model in IR / ONNX / PDPD / TF and TFLite format.
+ :type model_path: typing.Union[str, pathlib.Path]
+ :param properties: Optional dict of pairs: (property name, property value) relevant only for this load operation.
+ :type properties: typing.Dict[str, typing.Any]
+ :return: A compiled model.
+ :rtype: openvino.CompiledModel
+ """
+ @typing.overload
+ def compile_model(self, model: Model, context: RemoteContext, properties: dict[str, typing.Any]) -> CompiledModel:
+ """
+ Creates a compiled model from a source model within a specified remote context.
+
+ GIL is released while running this function.
+
+ :param model: Model acquired from read_model function.
+ :type model: openvino.Model
+ :param context: RemoteContext instance.
+ :type context: openvino.RemoteContext
+ :param properties: dict of pairs: (property name, property value) relevant only for this load operation.
+ :type properties: typing.Dict[str, typing.Any]
+ :return: A compiled model.
+ :rtype: openvino.CompiledModel
+ """
+ def create_context(self, device_name: str, properties: dict[str, typing.Any]) -> RemoteContext:
+ """
+ Creates a new remote shared context object on the specified accelerator device
+ using specified plugin-specific low-level device API parameters.
+
+ :param device_name: Name of a device to create a new shared context on.
+ :type device_name: str
+ :param properties: dict of device-specific shared context remote properties.
+ :type properties: typing.Dict[str, typing.Any]
+ :return: Remote context instance.
+ :rtype: openvino.RemoteContext
+ """
+ def get_available_devices(self) -> list[str]:
+ """
+ Returns devices available for inference Core objects goes over all registered plugins.
+
+ GIL is released while running this function.
+
+ :returns: A list of devices. The devices are returned as: CPU, GPU.0, GPU.1, NPU...
+ If there more than one device of specific type, they are enumerated with .# suffix.
+ Such enumerated device can later be used as a device name in all Core methods like:
+ compile_model, query_model, set_property and so on.
+ :rtype: typing.List[str]
+ """
+ def get_default_context(self, device_name: str) -> RemoteContext:
+ """
+ Gets default (plugin-supplied) shared context object for the specified accelerator device.
+
+ :param device_name: Name of a device to get a default shared context from.
+ :type device_name: str
+ :return: Remote context instance.
+ :rtype: openvino.RemoteContext
+ """
+ @typing.overload
+ def get_property(self, device_name: str, property: str) -> typing.Any:
+ """
+ Gets properties dedicated to device behaviour.
+
+ :param device_name: A name of a device to get a properties value.
+ :type device_name: str
+ :param property: Property or name of Property.
+ :type property: str
+ :return: Extracted information from property.
+ :rtype: typing.Any
+ """
+ @typing.overload
+ def get_property(self, property: str) -> typing.Any:
+ """
+ Gets properties dedicated to Core behaviour.
+
+ :param property: Property or name of Property.
+ :type property: str
+ :return: Extracted information from property.
+ :rtype: typing.Any
+ """
+ def get_versions(self, device_name: str) -> dict[str, Version]:
+ """
+ Returns device plugins version information.
+
+ :param device_name: Device name to identify a plugin.
+ :type device_name: str
+ :return: Plugin version information.
+ :rtype: typing.Dict[str, openvino.Version]
+ """
+ def import_model(self, model_stream: typing.Any, device_name: str, properties: dict[str, typing.Any]) -> CompiledModel:
+ """
+ Imports a compiled model from a previously exported one.
+
+ Advanced version of `import_model`. It utilizes, streams from standard
+ Python library `io`.
+
+ GIL is released while running this function.
+
+
+ :param model_stream: Input stream, containing a model previously exported, using export_model method.
+ :type model_stream: typing.Union[io.BytesIO, bytes]
+ :param device_name: Name of device to which compiled model is imported.
+ Note: if device_name is not used to compile the original model, an exception is thrown.
+ :type device_name: str
+ :param properties: Optional map of pairs: (property name, property value) relevant only for this load operation.
+ :type properties: typing.Dict[str, typing.Any], optional
+ :return: A compiled model.
+ :rtype: openvino.CompiledModel
+
+ :Example:
+ .. code-block:: python
+
+ user_stream = io.BytesIO()
+ compiled.export_model(user_stream)
+
+ with open('./my_model', 'wb') as f:
+ f.write(user_stream.getvalue()) # or read() if seek(0) was applied before
+
+ # ...
+
+ new_compiled = core.import_model(user_stream, "CPU")
+ """
+ def query_model(self, model: Model, device_name: str, properties: dict[str, typing.Any] = {}) -> dict[str, str]:
+ """
+ Query device if it supports specified model with specified properties.
+
+ GIL is released while running this function.
+
+ :param model: Model object to query.
+ :type model: openvino.Model
+ :param device_name: A name of a device to query.
+ :type device_name: str
+ :param properties: Optional dict of pairs: (property name, property value)
+ :type properties: typing.Dict[str, typing.Any]
+ :return: Pairs a operation name -> a device name supporting this operation.
+ :rtype: typing.Dict[str, str]
+ """
+ @typing.overload
+ def read_model(self, model: bytes, weights: bytes = b'') -> Model:
+ """
+ Reads models from IR / ONNX / PDPD / TF and TFLite formats.
+
+ GIL is released while running this function.
+
+ :param model: Bytes with model in IR / ONNX / PDPD / TF and TFLite format.
+ :type model: bytes
+ :param weights: Bytes with tensor's data.
+ :type weights: bytes
+ :return: A model.
+ :rtype: openvino.Model
+ """
+ @typing.overload
+ def read_model(self, model: str, weights: str = '', config: dict[str, typing.Any] = {}) -> Model:
+ """
+ Reads models from IR / ONNX / PDPD / TF and TFLite formats.
+
+ GIL is released while running this function.
+
+ :param model: A path to a model in IR / ONNX / PDPD / TF and TFLite format.
+ :type model: str
+ :param weights: A path to a data file For IR format (*.bin): if path is empty,
+ it tries to read a bin file with the same name as xml and if the bin
+ file with the same name was not found, loads IR without weights.
+ For ONNX format (*.onnx): weights parameter is not used.
+ For PDPD format (*.pdmodel) weights parameter is not used.
+ For TF format (*.pb) weights parameter is not used.
+ For TFLite format (*.tflite) weights parameter is not used.
+ :type weights: str
+ :param config: Optional map of pairs: (property name, property value) relevant only for this read operation.
+ :type config: typing.Dict[str, typing.Any], optional
+ :return: A model.
+ :rtype: openvino.Model
+ """
+ @typing.overload
+ def read_model(self, model: str, weights: Tensor) -> Model:
+ """
+ Reads models from IR / ONNX / PDPD / TF and TFLite formats.
+
+ GIL is released while running this function.
+
+ :param model: A string with model in IR / ONNX / PDPD / TF and TFLite format.
+ :type model: str
+ :param weights: Tensor with weights. Reading ONNX / PDPD / TF and TFLite models
+ doesn't support loading weights from weights tensors.
+ :type weights: openvino.Tensor
+ :return: A model.
+ :rtype: openvino.Model
+ """
+ @typing.overload
+ def read_model(self, model: typing.Any, weights: typing.Any = None, config: dict[str, typing.Any] = {}) -> Model:
+ """
+ Reads models from IR / ONNX / PDPD / TF and TFLite formats.
+
+ GIL is released while running this function.
+
+ :param model: A path to a model in IR / ONNX / PDPD / TF and TFLite format or a model itself wrapped in io.ByesIO format.
+ :type model: typing.Union[pathlib.Path, io.BytesIO]
+ :param weights: A path to a data file For IR format (*.bin): if path is empty,
+ it tries to read a bin file with the same name as xml and if the bin
+ file with the same name was not found, loads IR without weights.
+ For ONNX format (*.onnx): weights parameter is not used.
+ For PDPD format (*.pdmodel) weights parameter is not used.
+ For TF format (*.pb): weights parameter is not used.
+ For TFLite format (*.tflite) weights parameter is not used.
+ :type weights: typing.Union[pathlib.Path, io.BytesIO]
+ :param config: Optional map of pairs: (property name, property value) relevant only for this read operation.
+ :type config: typing.Dict[str, typing.Any], optional
+ :return: A model.
+ :rtype: openvino.Model
+ """
+ @typing.overload
+ def register_plugin(self, plugin_name: str, device_name: str) -> None:
+ """
+ Register a new device and plugin which enable this device inside OpenVINO Runtime.
+
+ :param plugin_name: A path (absolute or relative) or name of a plugin. Depending on platform,
+ `plugin_name` is wrapped with shared library suffix and prefix to identify
+ library full name E.g. on Linux platform plugin name specified as `plugin_name`
+ will be wrapped as `libplugin_name.so`.
+ :type plugin_name: str
+ :param device_name: A device name to register plugin for.
+ :type device_name: str
+ """
+ @typing.overload
+ def register_plugin(self, plugin_name: str, device_name: str, config: dict[str, typing.Any]) -> None:
+ """
+ Register a new device and plugin which enable this device inside OpenVINO Runtime.
+
+ :param plugin_name: A path (absolute or relative) or name of a plugin. Depending on platform,
+ `plugin_name` is wrapped with shared library suffix and prefix to identify
+ library full name E.g. on Linux platform plugin name specified as `plugin_name`
+ will be wrapped as `libplugin_name.so`.
+ :type plugin_name: str
+ :param device_name: A device name to register plugin for.
+ :type device_name: str
+ :param config: Plugin default configuration
+ :type config: typing.Dict[str, typing.Any], optional
+ """
+ def register_plugins(self, xml_config_file: str) -> None:
+ """
+ Registers a device plugin to OpenVINO Runtime Core instance using XML configuration
+ file with plugins description.
+
+ :param xml_config_file: A path to .xml file with plugins to register.
+ :type xml_config_file: str
+ """
+ @typing.overload
+ def set_property(self, properties: dict[str, typing.Any]) -> None:
+ """
+ Sets properties.
+
+ :param properties: Dict of pairs: (property name, property value).
+ :type properties: typing.Dict[str, typing.Any]
+ """
+ @typing.overload
+ def set_property(self, property: tuple[str, typing.Any]) -> None:
+ """
+ Sets properties for the device.
+
+ :param property: Tuple of (property name, matching property value).
+ :type property: typing.Tuple[str, typing.Any]
+ """
+ @typing.overload
+ def set_property(self, device_name: str, properties: dict[str, typing.Any]) -> None:
+ """
+ Sets properties for the device.
+
+ :param device_name: Name of the device.
+ :type device_name: str
+ :param properties: Dict of pairs: (property name, property value).
+ :type properties: typing.Dict[str, typing.Any]
+ """
+ @typing.overload
+ def set_property(self, device_name: str, property: tuple[str, typing.Any]) -> None:
+ """
+ Sets properties for the device.
+
+ :param device_name: Name of the device.
+ :type device_name: str
+ :param property: Tuple of (property name, matching property value).
+ :type property: typing.Tuple[str, typing.Any]
+ """
+ def unload_plugin(self, device_name: str) -> None:
+ """
+ Unloads the previously loaded plugin identified by device_name from OpenVINO Runtime.
+ The method is needed to remove loaded plugin instance and free its resources.
+ If plugin for a specified device has not been created before, the method throws an exception.
+
+ :param device_name: A device name identifying plugin to remove from OpenVINO.
+ :type device_name: str
+ """
+ @property
+ def available_devices(self) -> list[str]:
+ """
+ Returns devices available for inference Core objects goes over all registered plugins.
+
+ GIL is released while running this function.
+
+ :returns: A list of devices. The devices are returned as: CPU, GPU.0, GPU.1, NPU...
+ If there more than one device of specific type, they are enumerated with .# suffix.
+ Such enumerated device can later be used as a device name in all Core methods like:
+ compile_model, query_model, set_property and so on.
+ :rtype: typing.List[str]
+ """
+class DecoderTransformationExtension(Extension):
+ pass
+class DescriptorTensor:
+ """
+ openvino.descriptor.Tensor wraps ov::descriptor::Tensor
+ """
+ names: set[str]
+ def __repr__(self) -> str:
+ ...
+ def add_names(self, names: set[str]) -> None:
+ """
+ Adds names for tensor.
+
+ :param names: Add names.
+ :type names: set
+ """
+ def get_any_name(self) -> str:
+ """
+ Returns any of set name.
+
+ :return: Any name.
+ :rtype: string
+ """
+ def get_element_type(self) -> Type:
+ """
+ Returns the element type description.
+
+ :return: Type description.
+ :rtype: openvino.Type
+ """
+ def get_lower_value(self) -> Tensor:
+ """
+ Returns the lower bound of the tensor.
+
+ :return: Lower bound.
+ :rtype: openvino.Tensor
+ """
+ def get_names(self) -> set[str]:
+ """
+ Returns names.
+
+ :return: Get names.
+ :rtype: set
+ """
+ def get_partial_shape(self) -> PartialShape:
+ """
+ Returns the partial shape description.
+
+ :return: PartialShape description.
+ :rtype: openvino.PartialShape
+ """
+ def get_rt_info(self) -> RTMap:
+ """
+ Returns PyRTMap which is a dictionary of user defined runtime info.
+
+ :return: A dictionary of user defined data.
+ :rtype: openvino.RTMap
+ """
+ def get_shape(self) -> Shape:
+ """
+ Returns the shape description.
+
+ :return: The shape description.
+ :rtype: openvino.Shape
+ """
+ def get_upper_value(self) -> Tensor:
+ """
+ Returns the upper bound of the tensor.
+
+ :return: Upper bound.
+ :rtype: openvino.Tensor
+ """
+ def get_value_symbol(self) -> list[Symbol]:
+ """
+ Returns the List of symbols.
+
+ :return: List of Symbols.
+ :rtype: List[openvino.Symbol]
+ """
+ def set_lower_value(self, lower_bound: Tensor) -> None:
+ """
+ Sets the lower bound of the tensor.
+
+ :param lower_bound: The lower bound value.
+ :type lower_bound: openvino.Tensor
+ """
+ def set_names(self, names: set[str]) -> None:
+ """
+ Set names for tensor.
+
+ :param names: Set of names.
+ :type names: set
+ """
+ def set_upper_value(self, upper_bound: Tensor) -> None:
+ """
+ Sets the upper bound of the tensor.
+
+ :param upper_bound: Sets the upper bound value.
+ :type upper_bound: openvino.Tensor
+ """
+ def set_value_symbol(self, value_symbol: list[Symbol]) -> None:
+ """
+ Sets the value symbol of the tensor.
+
+ :param value_symbol: List of Symbols
+ :type value_symbol: List[openvino.Symbol]
+ """
+ @property
+ def any_name(self) -> str:
+ ...
+ @property
+ def element_type(self) -> Type:
+ ...
+ @property
+ def partial_shape(self) -> PartialShape:
+ ...
+ @property
+ def rt_info(self) -> RTMap:
+ ...
+ @property
+ def shape(self) -> Shape:
+ ...
+ @property
+ def size(self) -> int:
+ ...
+class Dimension:
+ """
+ openvino.Dimension wraps ov::Dimension
+ """
+ __hash__: typing.ClassVar[None] = None
+ @staticmethod
+ def dynamic() -> Dimension:
+ ...
+ @typing.overload
+ def __eq__(self, arg0: Dimension) -> bool:
+ ...
+ @typing.overload
+ def __eq__(self, arg0: int) -> bool:
+ ...
+ @typing.overload
+ def __init__(self) -> None:
+ ...
+ @typing.overload
+ def __init__(self, dimension: int) -> None:
+ """
+ Construct a static dimension.
+
+ :param dimension: Value of the dimension.
+ :type dimension: int
+ """
+ @typing.overload
+ def __init__(self, min_dimension: int, max_dimension: int) -> None:
+ """
+ Construct a dynamic dimension with bounded range.
+
+ :param min_dimension: The lower inclusive limit for the dimension.
+ :type min_dimension: int
+ :param max_dimension: The upper inclusive limit for the dimension.
+ :type max_dimension: int
+ """
+ @typing.overload
+ def __init__(self, str: str) -> None:
+ ...
+ def __len__(self) -> int:
+ ...
+ def __repr__(self) -> str:
+ ...
+ def __str__(self) -> str:
+ ...
+ def compatible(self, dim: Dimension) -> bool:
+ """
+ Check whether this dimension is capable of being merged
+ with the argument dimension.
+
+ :param dim: The dimension to compare this dimension with.
+ :type dim: Dimension
+ :return: True if this dimension is compatible with d, else False.
+ :rtype: bool
+ """
+ def get_length(self) -> int:
+ """
+ Return this dimension as integer.
+ This dimension must be static and non-negative.
+
+ :return: Value of the dimension.
+ :rtype: int
+ """
+ def get_max_length(self) -> int:
+ """
+ Return this dimension's max_dimension as integer.
+ This dimension must be dynamic and non-negative.
+
+ :return: Value of the dimension.
+ :rtype: int
+ """
+ def get_min_length(self) -> int:
+ """
+ Return this dimension's min_dimension as integer.
+ This dimension must be dynamic and non-negative.
+
+ :return: Value of the dimension.
+ :rtype: int
+ """
+ def get_symbol(self) -> Symbol:
+ """
+ Return this dimension's symbol as Symbol object.
+
+ :return: Value of the dimension.
+ :rtype: openvino.Symbol
+ """
+ def has_symbol(self) -> bool:
+ """
+ Check if Dimension has meaningful symbol.
+
+ :return: True if symbol was set, else False.
+ :rtype: bool
+ """
+ def refines(self, dim: Dimension) -> bool:
+ """
+ Check whether this dimension is a refinement of the argument.
+ This dimension refines (or is a refinement of) d if:
+
+ (1) this and d are static and equal
+ (2) d dimension contains this dimension
+
+ this.refines(d) is equivalent to d.relaxes(this).
+
+ :param dim: The dimension to compare this dimension with.
+ :type dim: Dimension
+ :return: True if this dimension refines d, else False.
+ :rtype: bool
+ """
+ def relaxes(self, dim: Dimension) -> bool:
+ """
+ Check whether this dimension is a relaxation of the argument.
+ This dimension relaxes (or is a relaxation of) d if:
+
+ (1) this and d are static and equal
+ (2) this dimension contains d dimension
+
+ this.relaxes(d) is equivalent to d.refines(this).
+
+ :param dim: The dimension to compare this dimension with.
+ :type dim: Dimension
+ :return: True if this dimension relaxes d, else False.
+ :rtype: bool
+ """
+ def same_scheme(self, dim: Dimension) -> bool:
+ """
+ Return this dimension's max_dimension as integer.
+ This dimension must be dynamic and non-negative.
+
+ :param dim: The other dimension to compare this dimension to.
+ :type dim: Dimension
+ :return: True if this dimension and dim are both dynamic,
+ or if they are both static and equal, otherwise False.
+ :rtype: bool
+ """
+ def set_symbol(self, symbol: Symbol) -> None:
+ """
+ Sets provided Symbol as this dimension's symbol.
+
+ :param symbol: The symbol to set to this dimension.
+ :type symbol: openvino.Symbol
+ """
+ def to_string(self) -> str:
+ ...
+ @property
+ def is_dynamic(self) -> bool:
+ """
+ Check if Dimension is dynamic.
+ :return: True if dynamic, else False.
+ :rtype: bool
+ """
+ @property
+ def is_static(self) -> bool:
+ """
+ Check if Dimension is static.
+
+ :return: True if static, else False.
+ :rtype: bool
+ """
+ @property
+ def max_length(self) -> int:
+ """
+ Return this dimension's max_dimension as integer.
+ This dimension must be dynamic and non-negative.
+
+ :return: Value of the dimension.
+ :rtype: int
+ """
+ @property
+ def min_length(self) -> int:
+ """
+ Return this dimension's min_dimension as integer.
+ This dimension must be dynamic and non-negative.
+
+ :return: Value of the dimension.
+ :rtype: int
+ """
+class DiscreteTypeInfo:
+ """
+ openvino.DiscreteTypeInfo wraps ov::DiscreteTypeInfo
+ """
+ __hash__: typing.ClassVar[None] = None
+ def __eq__(self, arg0: DiscreteTypeInfo) -> bool:
+ ...
+ def __ge__(self, arg0: DiscreteTypeInfo) -> bool:
+ ...
+ def __gt__(self, arg0: DiscreteTypeInfo) -> bool:
+ ...
+ def __init__(self, name: str, version_id: str) -> None:
+ ...
+ def __le__(self, arg0: DiscreteTypeInfo) -> bool:
+ ...
+ def __lt__(self, arg0: DiscreteTypeInfo) -> bool:
+ ...
+ def __ne__(self, arg0: DiscreteTypeInfo) -> bool:
+ ...
+ def __repr__(self) -> str:
+ ...
+ def hash(self) -> int:
+ ...
+ @property
+ def name(self) -> str:
+ ...
+ @property
+ def parent(self) -> DiscreteTypeInfo:
+ ...
+ @property
+ def version_id(self) -> str:
+ ...
+class Extension:
+ """
+ openvino.Extension provides the base interface for OpenVINO extensions.
+ """
+ def __init__(self) -> None:
+ ...
+ def __repr__(self) -> str:
+ ...
+class FrontEnd:
+ """
+ openvino.frontend.FrontEnd wraps ov::frontend::FrontEnd
+ """
+ def __init__(self, other: FrontEnd) -> None:
+ ...
+ def __repr__(self) -> str:
+ ...
+ @typing.overload
+ def add_extension(self, arg0: Extension) -> None:
+ """
+ Add extension defined by an object inheriting from Extension
+ used in order to extend capabilities of Frontend.
+
+ :param extension: Provided extension object.
+ :type extension: Extension
+ """
+ @typing.overload
+ def add_extension(self, arg0: list[Extension]) -> None:
+ """
+ Add extensions defined by objects inheriting from Extension
+ used in order to extend capabilities of Frontend.
+
+ :param extension: Provided extension objects.
+ :type extension: List[Extension]
+ """
+ @typing.overload
+ def add_extension(self, arg0: typing.Any) -> None:
+ """
+ Add extension defined in external library indicated by a extension_path
+ used in order to extend capabilities of Frontend.
+
+ :param extension_path: A path to extension.
+ :type extension_path: str, Path
+ """
+ @typing.overload
+ def convert(self, model: InputModel) -> Model:
+ """
+ Completely convert and normalize entire function, throws if it is not possible.
+
+ :param model: Input model.
+ :type model: openvino.frontend.InputModel
+ :return: Fully converted OpenVINO Model.
+ :rtype: openvino.Model
+ """
+ @typing.overload
+ def convert(self, model: typing.Any) -> None:
+ """
+ Completely convert the remaining, not converted part of a function.
+
+ :param model: Partially converted OpenVINO model.
+ :type model: openvino.frontend.Model
+ :return: Fully converted OpenVINO Model.
+ :rtype: openvino.Model
+ """
+ def convert_partially(self, model: InputModel) -> Model:
+ """
+ Convert only those parts of the model that can be converted leaving others as-is.
+ Converted parts are not normalized by additional transformations; normalize function or
+ another form of convert function should be called to finalize the conversion process.
+
+ :param model : Input model.
+ :type model: openvino.frontend.InputModel
+ :return: Partially converted OpenVINO Model.
+ :rtype: openvino.Model
+ """
+ def decode(self, model: InputModel) -> Model:
+ """
+ Convert operations with one-to-one mapping with decoding nodes.
+ Each decoding node is an nGraph node representing a single FW operation node with
+ all attributes represented in FW-independent way.
+
+ :param model : Input model.
+ :type model: openvino.frontend.InputModel
+ :return: OpenVINO Model after decoding.
+ :rtype: openvino.Model
+ """
+ def get_name(self) -> str:
+ """
+ Gets name of this FrontEnd. Can be used by clients
+ if frontend is selected automatically by FrontEndManager::load_by_model.
+
+ :return: Current frontend name. Returns empty string if not implemented.
+ :rtype: str
+ """
+ def load(self, path: typing.Any, enable_mmap: bool = True) -> InputModel:
+ """
+ Loads an input model.
+
+ :param path: Object describing the model. It can be path to model file.
+ :type path: Any
+ :param enable_mmap: Use mmap feature to map memory of a model's weights instead of reading directly. Optional. The default value is true.
+ :type enable_mmap: boolean
+ :return: Loaded input model.
+ :rtype: openvino.frontend.InputModel
+ """
+ def normalize(self, model: typing.Any) -> None:
+ """
+ Runs normalization passes on function that was loaded with partial conversion.
+
+ :param model : Partially converted OpenVINO model.
+ :type model: openvino.Model
+ """
+ def supported(self, model: typing.Any) -> bool:
+ """
+ Checks if model type is supported.
+
+ :param model: Object describing the model. It can be path to model file.
+ :type model: Any
+ :return: True if model type is supported, otherwise False.
+ :rtype: bool
+ """
+class FrontEndManager:
+ """
+ openvino.frontend.FrontEndManager wraps ov::frontend::FrontEndManager
+ """
+ def __getstate__(self) -> tuple:
+ ...
+ def __init__(self) -> None:
+ ...
+ def __repr__(self) -> str:
+ ...
+ def __setstate__(self, arg0: tuple) -> None:
+ ...
+ def get_available_front_ends(self) -> list[str]:
+ """
+ Gets list of registered frontends.
+
+ :return: List of available frontend names.
+ :rtype: List[str]
+ """
+ def load_by_framework(self, framework: str) -> FrontEnd:
+ """
+ Loads frontend by name of framework and capabilities.
+
+ :param framework: Framework name. Throws exception if name is not in list of available frontends.
+ :type framework: str
+ :return: Frontend interface for further loading of models.
+ :rtype: openvino.frontend.FrontEnd
+ """
+ def load_by_model(self, model: typing.Any) -> FrontEnd:
+ """
+ Selects and loads appropriate frontend depending on model type or model file extension and other file info (header).
+
+ :param model_path: A model object or path to a model file/directory.
+ :type model_path: Any
+ :return: Frontend interface for further loading of models. 'None' if no suitable frontend is found.
+ :rtype: openvino.frontend.FrontEnd
+ """
+ def register_front_end(self, name: str, library_path: str) -> None:
+ """
+ Register frontend with name and factory loaded from provided library.
+
+ :param name: Name of front end.
+ :type name: str
+
+ :param library_path: Path (absolute or relative) or name of a frontend library. If name is
+ provided, depending on platform, it will be wrapped with shared library suffix and prefix
+ to identify library full name.
+ :type library_path: str
+
+ :return: None
+ """
+class GeneralFailure(Exception):
+ pass
+class InferRequest:
+ """
+ openvino.InferRequest represents infer request which can be run in asynchronous or synchronous manners.
+ """
+ def __init__(self, other: InferRequest) -> None:
+ ...
+ def __repr__(self) -> str:
+ ...
+ def cancel(self) -> None:
+ """
+ Cancels inference request.
+ """
+ def get_compiled_model(self) -> CompiledModel:
+ """
+ Returns the compiled model.
+
+ :return: Compiled model object.
+ :rtype: openvino.CompiledModel
+ """
+ @typing.overload
+ def get_input_tensor(self, index: int) -> Tensor:
+ """
+ Gets input tensor of InferRequest.
+
+ :param idx: An index of tensor to get.
+ :type idx: int
+ :return: An input Tensor with index idx for the model.
+ If a tensor with specified idx is not found,
+ an exception is thrown.
+ :rtype: openvino.Tensor
+ """
+ @typing.overload
+ def get_input_tensor(self) -> Tensor:
+ """
+ Gets input tensor of InferRequest.
+
+ :return: An input Tensor for the model.
+ If model has several inputs, an exception is thrown.
+ :rtype: openvino.Tensor
+ """
+ @typing.overload
+ def get_output_tensor(self, index: int) -> Tensor:
+ """
+ Gets output tensor of InferRequest.
+
+ :param idx: An index of tensor to get.
+ :type idx: int
+ :return: An output Tensor with index idx for the model.
+ If a tensor with specified idx is not found, an exception is thrown.
+ :rtype: openvino.Tensor
+ """
+ @typing.overload
+ def get_output_tensor(self) -> Tensor:
+ """
+ Gets output tensor of InferRequest.
+
+ :return: An output Tensor for the model.
+ If model has several outputs, an exception is thrown.
+ :rtype: openvino.Tensor
+ """
+ def get_profiling_info(self) -> list[ProfilingInfo]:
+ """
+ Queries performance is measured per layer to get feedback on what
+ is the most time-consuming operation, not all plugins provide
+ meaningful data.
+
+ GIL is released while running this function.
+
+ :return: List of profiling information for operations in model.
+ :rtype: List[openvino.ProfilingInfo]
+ """
+ @typing.overload
+ def get_tensor(self, name: str) -> Tensor:
+ """
+ Gets input/output tensor of InferRequest.
+
+ :param name: Name of tensor to get.
+ :type name: str
+ :return: A Tensor object with given name.
+ :rtype: openvino.Tensor
+ """
+ @typing.overload
+ def get_tensor(self, port: ConstOutput) -> Tensor:
+ """
+ Gets input/output tensor of InferRequest.
+
+ :param port: Port of tensor to get.
+ :type port: openvino.ConstOutput
+ :return: A Tensor object for the port.
+ :rtype: openvino.Tensor
+ """
+ @typing.overload
+ def get_tensor(self, port: Output) -> Tensor:
+ """
+ Gets input/output tensor of InferRequest.
+
+ :param port: Port of tensor to get.
+ :type port: openvino.Output
+ :return: A Tensor object for the port.
+ :rtype: openvino.Tensor
+ """
+ @typing.overload
+ def infer(self, inputs: Tensor, share_outputs: bool, decode_strings: bool) -> typing.Any:
+ """
+ Infers specified input(s) in synchronous mode.
+ Blocks all methods of InferRequest while request is running.
+ Calling any method will lead to throwing exceptions.
+
+ GIL is released while running the inference.
+
+ :param inputs: Data to set on single input tensor.
+ :type inputs: openvino.Tensor
+ :return: Dictionary of results from output tensors with ports as keys.
+ :rtype: Dict[openvino.ConstOutput, numpy.array]
+ """
+ @typing.overload
+ def infer(self, inputs: dict, share_outputs: bool, decode_strings: bool) -> typing.Any:
+ """
+ Infers specified input(s) in synchronous mode.
+ Blocks all methods of InferRequest while request is running.
+ Calling any method will lead to throwing exceptions.
+
+ GIL is released while running the inference.
+
+ :param inputs: Data to set on input tensors.
+ :type inputs: Dict[Union[int, str, openvino.ConstOutput], openvino.Tensor]
+ :return: Dictionary of results from output tensors with ports as keys.
+ :rtype: Dict[openvino.ConstOutput, numpy.array]
+ """
+ def query_state(self) -> list[VariableState]:
+ """
+ Gets state control interface for given infer request.
+
+ GIL is released while running this function.
+
+ :return: List of VariableState objects.
+ :rtype: List[openvino.VariableState]
+ """
+ def reset_state(self) -> None:
+ """
+ Resets all internal variable states for relevant infer request to
+ a value specified as default for the corresponding `ReadValue` node
+ """
+ def set_callback(self, callback: typing.Callable, userdata: typing.Any) -> None:
+ """
+ Sets a callback function that will be called on success or failure of asynchronous InferRequest.
+
+ :param callback: Function defined in Python.
+ :type callback: function
+ :param userdata: Any data that will be passed inside callback call.
+ :type userdata: Any
+ """
+ @typing.overload
+ def set_input_tensor(self, index: int, tensor: Tensor) -> None:
+ """
+ Sets input tensor of InferRequest.
+
+ :param idx: Index of input tensor. If idx is greater than number of model's inputs,
+ an exception is thrown.
+ :type idx: int
+ :param tensor: Tensor object. The element_type and shape of a tensor
+ must match the model's input element_type and shape.
+ :type tensor: openvino.Tensor
+ """
+ @typing.overload
+ def set_input_tensor(self, tensor: Tensor) -> None:
+ """
+ Sets input tensor of InferRequest with single input.
+ If model has several inputs, an exception is thrown.
+
+ :param tensor: Tensor object. The element_type and shape of a tensor
+ must match the model's input element_type and shape.
+ :type tensor: openvino.Tensor
+ """
+ @typing.overload
+ def set_input_tensors(self, inputs: dict) -> None:
+ """
+ Set input tensors using given indexes.
+
+ :param inputs: Data to set on output tensors.
+ :type inputs: Dict[int, openvino.Tensor]
+ """
+ @typing.overload
+ def set_input_tensors(self, tensors: list[Tensor]) -> None:
+ """
+ Sets batch of tensors for single input data.
+ Model input needs to have batch dimension and the number of `tensors`
+ needs to match with batch size.
+
+ :param tensors: Input tensors for batched infer request. The type of each tensor
+ must match the model input element type and shape (except batch dimension).
+ Total size of tensors needs to match with input's size.
+ :type tensors: List[openvino.Tensor]
+ """
+ @typing.overload
+ def set_input_tensors(self, idx: int, tensors: list[Tensor]) -> None:
+ """
+ Sets batch of tensors for single input data to infer by index.
+ Model input needs to have batch dimension and the number of `tensors`
+ needs to match with batch size.
+
+ :param idx: Index of input tensor.
+ :type idx: int
+ :param tensors: Input tensors for batched infer request. The type of each tensor
+ must match the model input element type and shape (except batch dimension).
+ Total size of tensors needs to match with input's size.
+ """
+ @typing.overload
+ def set_output_tensor(self, index: int, tensor: Tensor) -> None:
+ """
+ Sets output tensor of InferRequest.
+
+ :param idx: Index of output tensor.
+ :type idx: int
+ :param tensor: Tensor object. The element_type and shape of a tensor
+ must match the model's output element_type and shape.
+ :type tensor: openvino.Tensor
+ """
+ @typing.overload
+ def set_output_tensor(self, tensor: Tensor) -> None:
+ """
+ Sets output tensor of InferRequest with single output.
+ If model has several outputs, an exception is thrown.
+
+ :param tensor: Tensor object. The element_type and shape of a tensor
+ must match the model's output element_type and shape.
+ :type tensor: openvino.Tensor
+ """
+ def set_output_tensors(self, outputs: dict) -> None:
+ """
+ Set output tensors using given indexes.
+
+ :param outputs: Data to set on output tensors.
+ :type outputs: Dict[int, openvino.Tensor]
+ """
+ @typing.overload
+ def set_tensor(self, name: str, tensor: RemoteTensor) -> None:
+ """
+ Sets input/output tensor of InferRequest.
+
+ :param name: Name of input/output tensor.
+ :type name: str
+ :param tensor: RemoteTensor object. The element_type and shape of a tensor
+ must match the model's input/output element_type and shape.
+ :type tensor: openvino.RemoteTensor
+ """
+ @typing.overload
+ def set_tensor(self, name: str, tensor: Tensor) -> None:
+ """
+ Sets input/output tensor of InferRequest.
+
+ :param name: Name of input/output tensor.
+ :type name: str
+ :param tensor: Tensor object. The element_type and shape of a tensor
+ must match the model's input/output element_type and shape.
+ :type tensor: openvino.Tensor
+ """
+ @typing.overload
+ def set_tensor(self, port: ConstOutput, tensor: Tensor) -> None:
+ """
+ Sets input/output tensor of InferRequest.
+
+ :param port: Port of input/output tensor.
+ :type port: openvino.ConstOutput
+ :param tensor: Tensor object. The element_type and shape of a tensor
+ must match the model's input/output element_type and shape.
+ :type tensor: openvino.Tensor
+ """
+ @typing.overload
+ def set_tensor(self, port: Output, tensor: Tensor) -> None:
+ """
+ Sets input/output tensor of InferRequest.
+
+ :param port: Port of input/output tensor.
+ :type port: openvino.Output
+ :param tensor: Tensor object. The element_type and shape of a tensor
+ must match the model's input/output element_type and shape.
+ :type tensor: openvino.Tensor
+ """
+ @typing.overload
+ def set_tensors(self, inputs: dict) -> None:
+ """
+ Set tensors using given keys.
+
+ :param inputs: Data to set on tensors.
+ :type inputs: Dict[Union[int, str, openvino.ConstOutput], openvino.Tensor]
+ """
+ @typing.overload
+ def set_tensors(self, tensor_name: str, tensors: list[Tensor]) -> None:
+ """
+ Sets batch of tensors for input data to infer by tensor name.
+ Model input needs to have batch dimension and the number of tensors needs to be
+ matched with batch size. Current version supports set tensors to model inputs only.
+ In case if `tensor_name` is associated with output (or any other non-input node),
+ an exception will be thrown.
+
+ :param tensor_name: Name of input tensor.
+ :type tensor_name: str
+ :param tensors: Input tensors for batched infer request. The type of each tensor
+ must match the model input element type and shape (except batch dimension).
+ Total size of tensors needs to match with input's size.
+ :type tensors: List[openvino.Tensor]
+ """
+ @typing.overload
+ def set_tensors(self, port: ConstOutput, tensors: list[Tensor]) -> None:
+ """
+ Sets batch of tensors for input data to infer by tensor name.
+ Model input needs to have batch dimension and the number of tensors needs to be
+ matched with batch size. Current version supports set tensors to model inputs only.
+ In case if `port` is associated with output (or any other non-input node),
+ an exception will be thrown.
+
+
+ :param port: Port of input tensor.
+ :type port: openvino.ConstOutput
+ :param tensors: Input tensors for batched infer request. The type of each tensor
+ must match the model input element type and shape (except batch dimension).
+ Total size of tensors needs to match with input's size.
+ :type tensors: List[openvino.Tensor]
+ :rtype: None
+ """
+ @typing.overload
+ def start_async(self, inputs: Tensor, userdata: typing.Any) -> None:
+ """
+ Starts inference of specified input(s) in asynchronous mode.
+ Returns immediately. Inference starts also immediately.
+
+ GIL is released while running the inference.
+
+ Calling any method on this InferRequest while the request is
+ running will lead to throwing exceptions.
+
+ :param inputs: Data to set on single input tensors.
+ :type inputs: openvino.Tensor
+ :param userdata: Any data that will be passed inside callback call.
+ :type userdata: Any
+ """
+ @typing.overload
+ def start_async(self, inputs: dict, userdata: typing.Any) -> None:
+ """
+ Starts inference of specified input(s) in asynchronous mode.
+ Returns immediately. Inference starts also immediately.
+
+ GIL is released while running the inference.
+
+ Calling any method on this InferRequest while the request is
+ running will lead to throwing exceptions.
+
+ :param inputs: Data to set on input tensors.
+ :type inputs: Dict[Union[int, str, openvino.ConstOutput], openvino.Tensor]
+ :param userdata: Any data that will be passed inside callback call.
+ :type userdata: Any
+ """
+ def wait(self) -> None:
+ """
+ Waits for the result to become available.
+ Blocks until the result becomes available.
+
+ GIL is released while running this function.
+ """
+ def wait_for(self, timeout: int) -> bool:
+ """
+ Waits for the result to become available.
+ Blocks until specified timeout has elapsed or
+ the result becomes available, whichever comes first.
+
+ GIL is released while running this function.
+
+ :param timeout: Maximum duration in milliseconds (ms) of blocking call.
+ :type timeout: int
+ :return: True if InferRequest is ready, False otherwise.
+ :rtype: bool
+ """
+ @property
+ def input_tensors(self) -> list[Tensor]:
+ """
+ Gets all input tensors of this InferRequest.
+
+ :rtype: List[openvino.Tensor]
+ """
+ @property
+ def latency(self) -> float:
+ """
+ Gets latency of this InferRequest.
+
+ :rtype: float
+ """
+ @property
+ def model_inputs(self) -> list[ConstOutput]:
+ """
+ Gets all inputs of a compiled model which was used to create this InferRequest.
+
+ :rtype: List[openvino.ConstOutput]
+ """
+ @property
+ def model_outputs(self) -> list[ConstOutput]:
+ """
+ Gets all outputs of a compiled model which was used to create this InferRequest.
+
+ :rtype: List[openvino.ConstOutput]
+ """
+ @property
+ def output_tensors(self) -> list[Tensor]:
+ """
+ Gets all output tensors of this InferRequest.
+
+ :rtype: List[openvino.Tensor]
+ """
+ @property
+ def profiling_info(self) -> list[ProfilingInfo]:
+ """
+ Performance is measured per layer to get feedback on the most time-consuming operation.
+ Not all plugins provide meaningful data!
+
+ GIL is released while running this function.
+
+ :return: Inference time.
+ :rtype: List[openvino.ProfilingInfo]
+ """
+ @property
+ def results(self) -> dict:
+ """
+ Gets all outputs tensors of this InferRequest.
+
+ Note: All string-based data is decoded by default.
+
+ :return: Dictionary of results from output tensors with ports as keys.
+ :rtype: Dict[openvino.ConstOutput, numpy.array]
+ """
+ @property
+ def userdata(self) -> typing.Any:
+ """
+ Gets currently held userdata.
+
+ :rtype: Any
+ """
+class InitializationFailure(Exception):
+ pass
+class Input:
+ """
+ openvino.Input wraps ov::Input<Node>
+ """
+ def __repr__(self) -> str:
+ ...
+ def get_element_type(self) -> Type:
+ """
+ The element type of the input referred to by this input handle.
+
+ :return: Type of the input.
+ :rtype: openvino.Type
+ """
+ def get_index(self) -> int:
+ """
+ The index of the input referred to by this input handle.
+
+ :return: Index value as integer.
+ :rtype: int
+ """
+ def get_node(self) -> ...:
+ """
+ Get node referenced by this input handle.
+
+ :return: Node object referenced by this input handle.
+ :rtype: openvino.Node
+ """
+ def get_partial_shape(self) -> PartialShape:
+ """
+ The partial shape of the input referred to by this input handle.
+
+ :return: PartialShape of the input.
+ :rtype: openvino.PartialShape
+ """
+ def get_rt_info(self) -> RTMap:
+ """
+ Returns RTMap which is a dictionary of user defined runtime info.
+
+ :return: A dictionary of user defined data.
+ :rtype: openvino.RTMap
+ """
+ def get_shape(self) -> Shape:
+ """
+ The shape of the input referred to by this input handle.
+
+ :return: Shape of the input.
+ :rtype: openvino.Shape
+ """
+ def get_source_output(self) -> Output:
+ """
+ A handle to the output that is connected to this input.
+
+ :return: Output that is connected to the input.
+ :rtype: openvino.Output
+ """
+ def get_tensor(self) -> DescriptorTensor:
+ """
+ A reference to the tensor descriptor for this input.
+
+ :return: Tensor of the input.
+ :rtype: openvino._pyopenvino.DescriptorTensor
+ """
+ def replace_source_output(self, new_source_output: Output) -> None:
+ """
+ Replaces the source output of this input.
+
+ :param new_source_output: A handle for the output that will replace this input's source.
+ :type new_source_output: openvino.Input
+ """
+ @property
+ def rt_info(self) -> RTMap:
+ ...
+class InputModel:
+ """
+ openvino.frontend.InputModel wraps ov::frontend::InputModel
+ """
+ def add_name_for_tensor(self, tensor: Place, new_name: str) -> None:
+ """
+ Adds new name for tensor
+
+ :param tensor: Tensor place.
+ :type tensor: openvino.frontend.Place
+ :param new_name: New name to be added to this place.
+ :type new_name: str
+ """
+ def add_output(self, place: Place) -> Place:
+ """
+ Assign this place as new output or add necessary nodes to represent a new output.
+
+ :param place: Anchor point to add an output.
+ :type place: openvino.frontend.Place
+ """
+ def cut_and_add_new_input(self, place: Place, new_name: str = '') -> None:
+ """
+ Cut immediately before this place and assign this place as new input; prune
+ all nodes that don't contribute to any output.
+
+ :param place: New place to be assigned as input.
+ :type place: openvino.frontend.Place
+ :param new_name: Optional new name assigned to this input place.
+ :type new_name: str
+ """
+ def cut_and_add_new_output(self, place: Place, new_name: str = '') -> None:
+ """
+ Cut immediately before this place and assign this place as new output; prune
+ all nodes that don't contribute to any output.
+
+ :param place: New place to be assigned as output.
+ :type place: openvino.frontend.Place
+ :param new_name: Optional new name assigned to this output place.
+ :type new_name: str
+ """
+ def extract_subgraph(self, inputs: list[Place], outputs: list[Place]) -> None:
+ """
+ Leaves only subgraph that are defined by new inputs and new outputs.
+
+ :param inputs: Array of new input places.
+ :type inputs: List[openvino.frontend.Place]
+ :param outputs: Array of new output places.
+ :type outputs: List[openvino.frontend.Place]
+ """
+ def free_name_for_operation(self, name: str) -> None:
+ """
+ Unassign specified name from operation place(s).
+
+ :param name: Name of operation.
+ :type name: str
+ """
+ def free_name_for_tensor(self, name: str) -> None:
+ """
+ Unassign specified name from tensor place(s).
+
+ :param name: Name of tensor.
+ :type name: str
+ """
+ def get_element_type(self, place: Place) -> Type:
+ """
+ Returns current element type used for this place.
+
+ :param place: Model place.
+ :type place: openvino.frontend.Place
+ :return: Element type for this place.
+ :rtype: openvino.Type
+ """
+ def get_inputs(self) -> list[Place]:
+ """
+ Returns all inputs for a model.
+
+ :return: A list of input places.
+ :rtype: List[openvino.frontend.Place]
+ """
+ def get_outputs(self) -> list[Place]:
+ """
+ Returns all outputs for a model. An output is a terminal place in a graph where data escapes the flow.
+
+ :return: A list of output places.
+ :rtype: List[openvino.frontend.Place]
+ """
+ def get_partial_shape(self, place: Place) -> PartialShape:
+ """
+ Returns current partial shape used for this place.
+
+ :param place: Model place.
+ :type place: openvino.frontend.Place
+ :return: Partial shape for this place.
+ :rtype: openvino.PartialShape
+ """
+ def get_place_by_input_index(self, input_idx: int) -> Place:
+ """
+ Returns a tensor place by an input index.
+
+ :param input_idx: Index of model input.
+ :type input_idx: int
+ :return: Tensor place corresponding to specified input index or nullptr.
+ :rtype: openvino.frontend.Place
+ """
+ def get_place_by_operation_name(self, operation_name: str) -> Place:
+ """
+ Returns an operation place by an operation name following framework conventions, or
+ nullptr if an operation with this name doesn't exist.
+
+ :param operation_name: Name of operation.
+ :type operation_name: str
+ :return: Place representing operation.
+ :rtype: openvino.frontend.Place
+ """
+ def get_place_by_operation_name_and_input_port(self, operation_name: str, input_port_index: int) -> Place:
+ """
+ Returns an input port place by operation name and appropriate port index.
+
+ :param operation_name: Name of operation.
+ :type operation_name: str
+ :param input_port_index: Index of input port for this operation.
+ :type input_port_index: int
+ :return: Place representing input port of operation.
+ :rtype: openvino.frontend.Place
+ """
+ def get_place_by_operation_name_and_output_port(self, operation_name: str, output_port_index: int) -> Place:
+ """
+ Returns an output port place by operation name and appropriate port index.
+
+ :param operation_name: Name of operation.
+ :type operation_name: str
+ :param output_port_index: Index of output port for this operation.
+ :type output_port_index: int
+ :return: Place representing output port of operation.
+ :rtype: openvino.frontend.Place
+ """
+ def get_place_by_tensor_name(self, tensor_name: str) -> Place:
+ """
+ Returns a tensor place by a tensor name following framework conventions, or
+ nullptr if a tensor with this name doesn't exist.
+
+ :param tensor_name: Name of tensor.
+ :type tensor_name: str
+ :return: Tensor place corresponding to specified tensor name.
+ :rtype: openvino.frontend.Place
+ """
+ def override_all_inputs(self, inputs: list[Place]) -> None:
+ """
+ Modifies the graph to use new inputs instead of existing ones. New inputs
+ should completely satisfy all existing outputs.
+
+ :param inputs: Array of new input places.
+ :type inputs: List[openvino.frontend.Place]
+ """
+ def override_all_outputs(self, outputs: list[Place]) -> None:
+ """
+ Replaces all existing outputs with new ones removing all data flow that
+ is not required for new outputs.
+
+ :param outputs: Vector with places that will become new outputs; may intersect existing outputs.
+ :type outputs: List[openvino.frontend.Place]
+ """
+ def remove_output(self, place: Place) -> None:
+ """
+ Removes any sinks directly attached to this place with all inbound data flow
+ if it is not required by any other output.
+
+ :param place: Model place.
+ :type place: openvino.frontend.Place
+ """
+ def set_element_type(self, place: Place, type: Type) -> None:
+ """
+ Sets new element type for a place.
+
+ :param place: Model place.
+ :type place: openvino.frontend.Place
+ :param type: New element type.
+ :type type: openvino.Type
+ """
+ def set_name_for_dimension(self, place: Place, dim_index: int, dim_name: str) -> None:
+ """
+ Set name for a particular dimension of a place (e.g. batch dimension).
+
+ :param place: Model's place.
+ :type place: openvino.frontend.Place
+ :param dim_index: Dimension index.
+ :type dim_index: int
+ :param dim_name: Name to assign on this dimension.
+ :type dum_name: str
+ """
+ def set_name_for_operation(self, operation: Place, new_name: str) -> None:
+ """
+ Adds new name for tensor.
+
+ :param operation: Operation place.
+ :type operation: openvino.frontend.Place
+ :param new_name: New name for this operation.
+ :type new_name: str
+ """
+ def set_name_for_tensor(self, tensor: Place, new_name: str) -> None:
+ """
+ Sets name for tensor. Overwrites existing names of this place.
+
+ :param tensor: Tensor place.
+ :type tensor: openvino.frontend.Place
+ :param new_name: New name for this tensor.
+ :type new_name: str
+ """
+ def set_partial_shape(self, place: Place, shape: PartialShape) -> None:
+ """
+ Defines all possible shape that may be used for this place; place should be
+ uniquely refer to some data. This partial shape will be converted to corresponding
+ shape of results ngraph nodes and will define shape inference when the model is
+ converted to ngraph.
+
+ :param place: Model place.
+ :type place: openvino.frontend.Place
+ :param shape: Partial shape for this place.
+ :type shape: openvino.PartialShape
+ """
+ def set_tensor_value(self, place: Place, value: numpy.ndarray[typing.Any, numpy.dtype[typing.Any]]) -> None:
+ """
+ Sets new element type for a place.
+
+ :param place: Model place.
+ :type place: openvino.frontend.Place
+ :param value: New value to assign.
+ :type value: numpy.ndarray
+ """
+class Iterator:
+ def __iter__(self: typing.Iterator) -> typing.Iterator:
+ ...
+ def __next__(self: typing.Iterator) -> typing.Any:
+ ...
+class Layout:
+ """
+ openvino.Layout wraps ov::Layout
+ """
+ __hash__: typing.ClassVar[None] = None
+ @staticmethod
+ def scalar() -> Layout:
+ ...
+ @typing.overload
+ def __eq__(self, arg0: Layout) -> bool:
+ ...
+ @typing.overload
+ def __eq__(self, arg0: str) -> bool:
+ ...
+ @typing.overload
+ def __init__(self) -> None:
+ ...
+ @typing.overload
+ def __init__(self, layout_str: str) -> None:
+ ...
+ @typing.overload
+ def __ne__(self, arg0: Layout) -> bool:
+ ...
+ @typing.overload
+ def __ne__(self, arg0: str) -> bool:
+ ...
+ def __repr__(self) -> str:
+ ...
+ def __str__(self) -> str:
+ ...
+ def get_index_by_name(self, dimension_name: str) -> int:
+ ...
+ def has_name(self, dimension_name: str) -> bool:
+ ...
+ def to_string(self) -> str:
+ ...
+ @property
+ def empty(self) -> bool:
+ ...
+class Model:
+ """
+ openvino.Model wraps ov::Model
+ """
+ friendly_name: str
+ @typing.overload
+ def __init__(self, other: Model) -> None:
+ ...
+ @typing.overload
+ def __init__(self, results: list[op.Result], sinks: list[Node], parameters: list[op.Parameter], name: str = '') -> None:
+ """
+ Create user-defined Model which is a representation of a model.
+
+ :param results: List of results.
+ :type results: List[op.Result]
+ :param sinks: List of Nodes to be used as Sinks (e.g. Assign ops).
+ :type sinks: List[openvino.Node]
+ :param parameters: List of parameters.
+ :type parameters: List[op.Parameter]
+ :param name: String to set as model's friendly name.
+ :type name: str
+ """
+ @typing.overload
+ def __init__(self, results: list[Node], parameters: list[op.Parameter], name: str = '') -> None:
+ """
+ Create user-defined Model which is a representation of a model.
+
+ :param results: List of Nodes to be used as results.
+ :type results: List[openvino.Node]
+ :param parameters: List of parameters.
+ :type parameters: List[op.Parameter]
+ :param name: String to set as model's friendly name.
+ :type name: str
+ """
+ @typing.overload
+ def __init__(self, result: Node, parameters: list[op.Parameter], name: str = '') -> None:
+ """
+ Create user-defined Model which is a representation of a model.
+
+ :param result: Node to be used as result.
+ :type result: openvino.Node
+ :param parameters: List of parameters.
+ :type parameters: List[op.Parameter]
+ :param name: String to set as model's friendly name.
+ :type name: str
+ """
+ @typing.overload
+ def __init__(self, results: list[Output], parameters: list[op.Parameter], name: str = '') -> None:
+ """
+ Create user-defined Model which is a representation of a model
+
+ :param results: List of outputs.
+ :type results: List[openvino.Output]
+ :param parameters: List of parameters.
+ :type parameters: List[op.Parameter]
+ :param name: String to set as model's friendly name.
+ :type name: str
+ """
+ @typing.overload
+ def __init__(self, results: list[Output], sinks: list[Node], parameters: list[op.Parameter], name: str = '') -> None:
+ """
+ Create user-defined Model which is a representation of a model
+
+ :param results: List of outputs.
+ :type results: List[openvino.Output]
+ :param sinks: List of Nodes to be used as Sinks (e.g. Assign ops).
+ :type sinks: List[openvino.Node]
+ :param parameters: List of parameters.
+ :type parameters: List[op.Parameter]
+ :param name: String to set as model's friendly name.
+ :type name: str
+ """
+ @typing.overload
+ def __init__(self, results: list[Output], sinks: list[Output], parameters: list[op.Parameter], name: str = '') -> None:
+ """
+ Create user-defined Model which is a representation of a model
+
+ :param results: List of outputs.
+ :type results: List[openvino.Output]
+ :param sinks: List of Output sink node handles.
+ :type sinks: List[openvino.Output]
+ :param parameters: List of parameters.
+ :type parameters: List[op.Parameter]
+ :param name: String to set as model's friendly name.
+ :type name: str
+ """
+ @typing.overload
+ def __init__(self, results: list[Output], sinks: list[Output], parameters: list[op.Parameter], variables: list[op.util.Variable], name: str = '') -> None:
+ """
+ Create user-defined Model which is a representation of a model
+
+ :param results: List of outputs.
+ :type results: List[openvino.Output]
+ :param sinks: List of Output sink node handles.
+ :type sinks: List[openvino.Output]
+ :param parameters: List of parameters.
+ :type parameters: List[op.Parameter]
+ :param variables: List of variables.
+ :type variables: List[op.util.Variable]
+ :param name: String to set as model's friendly name.
+ :type name: str
+ """
+ @typing.overload
+ def __init__(self, results: list[op.Result], sinks: list[Output], parameters: list[op.Parameter], name: str = '') -> None:
+ """
+ Create user-defined Model which is a representation of a model
+
+ :param results: List of results.
+ :type results: List[op.Result]
+ :param sinks: List of Output sink node handles.
+ :type sinks: List[openvino.Output]
+ :param parameters: List of parameters.
+ :type parameters: List[op.Parameter]
+ :param name: String to set as model's friendly name.
+ :type name: str
+ """
+ @typing.overload
+ def __init__(self, results: list[op.Result], sinks: list[Output], parameters: list[op.Parameter], variables: list[op.util.Variable], name: str = '') -> None:
+ """
+ Create user-defined Model which is a representation of a model
+
+ :param results: List of results.
+ :type results: List[op.Result]
+ :param sinks: List of Output sink node handles.
+ :type sinks: List[openvino.Output]
+ :param parameters: List of parameters.
+ :type parameters: List[op.Parameter]
+ :param variables: List of variables.
+ :type variables: List[op.util.Variable]
+ :param name: String to set as model's friendly name.
+ :type name: str
+ """
+ @typing.overload
+ def __init__(self, results: list[op.Result], sinks: list[Node], parameters: list[op.Parameter], variables: list[op.util.Variable], name: str = '') -> None:
+ """
+ Create user-defined Model which is a representation of a model
+
+ :param results: List of results.
+ :type results: List[op.Result]
+ :param sinks: List of Nodes to be used as Sinks (e.g. Assign ops).
+ :type sinks: List[openvino.Node]
+ :param parameters: List of parameters.
+ :type parameters: List[op.Parameter]
+ :param variables: List of variables.
+ :type variables: List[op.util.Variable]
+ :param name: String to set as model's friendly name.
+ :type name: str
+ """
+ @typing.overload
+ def __init__(self, results: list[Output], sinks: list[Node], parameters: list[op.Parameter], variables: list[op.util.Variable], name: str = '') -> None:
+ """
+ Create user-defined Model which is a representation of a model
+
+ :param results: List of results.
+ :type results: List[openvino.Output]
+ :param sinks: List of Nodes to be used as Sinks (e.g. Assign ops).
+ :type sinks: List[openvino.Node]
+ :param variables: List of variables.
+ :type variables: List[op.util.Variable]
+ :param name: String to set as model's friendly name.
+ :type name: str
+ """
+ @typing.overload
+ def __init__(self, results: list[op.Result], parameters: list[op.Parameter], variables: list[op.util.Variable], name: str = '') -> None:
+ """
+ Create user-defined Model which is a representation of a model
+
+ :param results: List of results.
+ :type results: List[op.Result]
+ :param parameters: List of parameters.
+ :type parameters: List[op.Parameter]
+ :param variables: List of variables.
+ :type variables: List[op.util.Variable]
+ :param name: String to set as model's friendly name.
+ :type name: str
+ """
+ @typing.overload
+ def __init__(self, results: list[Output], parameters: list[op.Parameter], variables: list[op.util.Variable], name: str = '') -> None:
+ """
+ Create user-defined Model which is a representation of a model
+
+ :param results: List of results.
+ :type results: List[openvino.Output]
+ :param parameters: List of parameters.
+ :type parameters: List[op.Parameter]
+ :param name: String to set as model's friendly name.
+ :type name: str
+ """
+ def __repr__(self) -> str:
+ ...
+ def _get_raw_address(self) -> int:
+ """
+ Returns a raw address of the Model object from C++.
+
+ Use this function in order to compare underlying C++ addresses instead of using `__eq__` in Python.
+
+ :return: a raw address of the Model object.
+ :rtype: int
+ """
+ def add_outputs(self, outputs: typing.Any) -> list[Output]:
+ ...
+ def add_parameters(self, parameters: list[op.Parameter]) -> None:
+ """
+ Add new Parameter nodes to the list.
+
+ Method doesn't change or validate graph, it should be done manually.
+ For example, if you want to replace `ReadValue` node by `Parameter`, you should do the
+ following steps:
+ * replace node `ReadValue` by `Parameter` in graph
+ * call add_parameter() to add new input to the list
+ * call graph validation to check correctness of changes
+
+ :param parameter: new Parameter nodes.
+ :type parameter: List[op.Parameter]
+ """
+ def add_results(self, results: list[op.Result]) -> None:
+ """
+ Add new Result nodes to the list.
+
+ Method doesn't validate graph, it should be done manually after all changes.
+
+ :param results: new Result nodes.
+ :type results: List[op.Result]
+ """
+ def add_sinks(self, sinks: list) -> None:
+ """
+ Add new sink nodes to the list.
+
+ Method doesn't validate graph, it should be done manually after all changes.
+
+ :param sinks: new sink nodes.
+ :type sinks: List[openvino.Node]
+ """
+ def add_variables(self, variables: list[op.util.Variable]) -> None:
+ """
+ Add new variables to the list.
+
+ Method doesn't validate graph, it should be done manually after all changes.
+
+ :param variables: new variables to add.
+ :type variables: List[op.util.Variable]
+ """
+ def clone(self) -> Model:
+ """
+ Return a copy of self.
+ :return: A copy of self.
+ :rtype: openvino.Model
+ """
+ def evaluate(self, output_tensors: list[Tensor], input_tensors: list[Tensor], evaluation_context: RTMap = ...) -> bool:
+ """
+ Evaluate the model on inputs, putting results in outputs
+
+ :param output_tensors: Tensors for the outputs to compute. One for each result
+ :type output_tensors: List[openvino.Tensor]
+ :param input_tensors: Tensors for the inputs. One for each inputs.
+ :type input_tensors: List[openvino.Tensor]
+ :param evaluation_context: Storage of additional settings and attributes that can be used
+ when evaluating the model. This additional information can be
+ shared across nodes.
+ :type evaluation_context: openvino.RTMap
+ :rtype: bool
+ """
+ def get_friendly_name(self) -> str:
+ """
+ Gets the friendly name for a model. If no
+ friendly name has been set via set_friendly_name
+ then the model's unique name is returned.
+
+ :return: String with a friendly name of the model.
+ :rtype: str
+ """
+ def get_name(self) -> str:
+ """
+ Get the unique name of the model.
+
+ :return: String with a name of the model.
+ :rtype: str
+ """
+ def get_ops(self) -> list[Node]:
+ """
+ Return ops used in the model.
+
+ :return: List of Nodes representing ops used in model.
+ :rtype: List[openvino.Node]
+ """
+ def get_ordered_ops(self) -> list[Node]:
+ """
+ Return ops used in the model in topological order.
+
+ :return: List of sorted Nodes representing ops used in model.
+ :rtype: List[openvino.Node]
+ """
+ def get_output_element_type(self, index: int) -> Type:
+ """
+ Return the element type of output i
+
+ :param index: output index
+ :type index: int
+ :return: Type object of output i
+ :rtype: openvino.Type
+ """
+ def get_output_op(self, index: int) -> Node:
+ """
+ Return the op that generates output i
+
+ :param index: output index
+ :type index: output index
+ :return: Node object that generates output i
+ :rtype: openvino.Node
+ """
+ def get_output_partial_shape(self, index: int) -> PartialShape:
+ """
+ Return the partial shape of element i
+
+ :param index: element index
+ :type index: int
+ :return: PartialShape object of element i
+ :rtype: openvino.PartialShape
+ """
+ def get_output_shape(self, index: int) -> Shape:
+ """
+ Return the shape of element i
+
+ :param index: element index
+ :type index: int
+ :return: Shape object of element i
+ :rtype: openvino.Shape
+ """
+ def get_output_size(self) -> int:
+ """
+ Return the number of outputs for the model.
+
+ :return: Number of outputs.
+ :rtype: int
+ """
+ def get_parameter_index(self, parameter: op.Parameter) -> int:
+ """
+ Return the index position of `parameter`
+
+ Return -1 if parameter not matched.
+
+ :param parameter: Parameter, which index is to be found.
+ :type parameter: op.Parameter
+ :return: Index for parameter
+ :rtype: int
+ """
+ def get_parameters(self) -> list[op.Parameter]:
+ """
+ Return the model parameters.
+
+ :return: a list of model's parameters.
+ :rtype: List[op.Parameter]
+ """
+ def get_result(self) -> Node:
+ """
+ Return single result.
+
+ :return: Node object representing result.
+ :rtype: op.Result
+ """
+ @typing.overload
+ def get_result_index(self, value: Output) -> int:
+ """
+ Return index of result.
+
+ Return -1 if `value` not matched.
+
+ :param value: Output containing Node
+ :type value: openvino.Output
+ :return: Index for value referencing it.
+ :rtype: int
+ """
+ @typing.overload
+ def get_result_index(self, value: ConstOutput) -> int:
+ """
+ Return index of result.
+
+ Return -1 if `value` not matched.
+
+ :param value: Output containing Node
+ :type value: openvino.Output
+ :return: Index for value referencing it.
+ :rtype: int
+ """
+ @typing.overload
+ def get_result_index(self, result: op.Result) -> int:
+ """
+ Return index of result.
+
+ Return -1 if `result` not matched.
+
+ :param result: Result operation
+ :type result: op.Result
+ :return: Index for result referencing it.
+ :rtype: int
+ """
+ def get_results(self) -> list[op.Result]:
+ """
+ Return a list of model outputs.
+
+ :return: a list of model's result nodes.
+ :rtype: List[op.Result]
+ """
+ @typing.overload
+ def get_rt_info(self) -> RTMap:
+ """
+ Returns PyRTMap which is a dictionary of user defined runtime info.
+
+ :return: A dictionary of user defined data.
+ :rtype: openvino.RTMap
+ """
+ @typing.overload
+ def get_rt_info(self, path: list) -> typing.Any:
+ """
+ Returns runtime attribute as a OVAny object.
+
+ :param path: List of strings which defines a path to runtime info.
+ :type path: List[str]
+
+ :return: A runtime attribute.
+ :rtype: openvino.OVAny
+ """
+ @typing.overload
+ def get_rt_info(self, path: str) -> typing.Any:
+ """
+ Returns runtime attribute as a OVAny object.
+
+ :param path: List of strings which defines a path to runtime info.
+ :type path: str
+
+ :return: A runtime attribute.
+ :rtype: openvino.OVAny
+ """
+ @typing.overload
+ def get_sink_index(self, value: Output) -> int:
+ """
+ Return index of sink.
+
+ Return -1 if `value` not matched.
+
+ :param value: Output sink node handle
+ :type value: openvino.Output
+ :return: Index of sink node referenced by output handle.
+ :rtype: int
+ """
+ @typing.overload
+ def get_sink_index(self, value: ConstOutput) -> int:
+ """
+ Return index of sink.
+
+ Return -1 if `value` not matched.
+
+ :param value: Output sink node handle
+ :type value: openvino.Output
+ :return: Index of sink node referenced by output handle.
+ :rtype: int
+ """
+ @typing.overload
+ def get_sink_index(self, sink: typing.Any) -> int:
+ """
+ Return index of sink node.
+
+ Return -1 if `sink` not matched.
+
+ :param sink: Sink node.
+ :type sink: openvino.Node
+ :return: Index of sink node.
+ :rtype: int
+ """
+ def get_sinks(self) -> list[Node]:
+ """
+ Return a list of model's sinks.
+
+ :return: a list of model's sinks.
+ :rtype: List[openvino.Node]
+ """
+ def get_variable_by_id(self, arg0: str) -> op.util.Variable:
+ """
+ Return a variable by specified variable_id.
+
+ :param variable_id: a variable id to get variable node.
+ :type variable_id: str
+ :return: a variable node.
+ :rtype: op.util.Variable
+ """
+ def get_variables(self) -> list[op.util.Variable]:
+ """
+ Return a list of model's variables.
+
+ :return: a list of model's variables.
+ :rtype: List[op.util.Variable]
+ """
+ @typing.overload
+ def has_rt_info(self, path: list) -> bool:
+ """
+ Checks if given path exists in runtime info of the model.
+
+ :param path: List of strings which defines a path to runtime info.
+ :type path: List[str]
+
+ :return: `True` if path exists, otherwise `False`.
+ :rtype: bool
+ """
+ @typing.overload
+ def has_rt_info(self, path: str) -> bool:
+ """
+ Checks if given path exists in runtime info of the model.
+
+ :param path: List of strings which defines a path to runtime info.
+ :type path: str
+
+ :return: `True` if path exists, otherwise `False`.
+ :rtype: bool
+ """
+ @typing.overload
+ def input(self) -> Output:
+ ...
+ @typing.overload
+ def input(self, index: int) -> Output:
+ ...
+ @typing.overload
+ def input(self, tensor_name: str) -> Output:
+ ...
+ @typing.overload
+ def input(self) -> ConstOutput:
+ ...
+ @typing.overload
+ def input(self, index: int) -> ConstOutput:
+ ...
+ @typing.overload
+ def input(self, tensor_name: str) -> ConstOutput:
+ ...
+ def is_dynamic(self) -> bool:
+ """
+ Returns true if any of the op's defined in the model
+ contains partial shape.
+
+ :rtype: bool
+ """
+ @typing.overload
+ def output(self) -> Output:
+ ...
+ @typing.overload
+ def output(self, index: int) -> Output:
+ ...
+ @typing.overload
+ def output(self, tensor_name: str) -> Output:
+ ...
+ @typing.overload
+ def output(self) -> ConstOutput:
+ ...
+ @typing.overload
+ def output(self, index: int) -> ConstOutput:
+ ...
+ @typing.overload
+ def output(self, tensor_name: str) -> ConstOutput:
+ ...
+ def remove_parameter(self, parameter: op.Parameter) -> None:
+ """
+ Delete Parameter node from the list of parameters. Method will not delete node from graph.
+ You need to replace Parameter with other operation manually.
+
+ Attention: Indexing of parameters can be changed.
+
+ Possible use of method is to replace input by variable. For it the following steps should be done:
+ * `Parameter` node should be replaced by `ReadValue`
+ * call remove_parameter(param) to remove input from the list
+ * check if any parameter indexes are saved/used somewhere, update it for all inputs because indexes can be changed
+ * call graph validation to check all changes
+
+ :param parameter: Parameter node to delete.
+ :type parameter: op.Parameter
+ """
+ def remove_result(self, result: op.Result) -> None:
+ """
+ Delete Result node from the list of results. Method will not delete node from graph.
+
+ :param result: Result node to delete.
+ :type result: op.Result
+ """
+ def remove_sink(self, sink: typing.Any) -> None:
+ """
+ Delete sink node from the list of sinks. Method doesn't delete node from graph.
+
+ :param sink: Sink to delete.
+ :type sink: openvino.Node
+ """
+ def remove_variable(self, variable: op.util.Variable) -> None:
+ """
+ Delete variable from the list of variables.
+ Method doesn't delete nodes that used this variable from the graph.
+
+ :param variable: Variable to delete.
+ :type variable: op.util.Variable
+ """
+ def replace_parameter(self, parameter_index: int, parameter: op.Parameter) -> None:
+ """
+ Replace the `parameter_index` parameter of the model with `parameter`
+
+ All users of the `parameter_index` parameter are redirected to `parameter` , and the
+ `parameter_index` entry in the model parameter list is replaced with `parameter`
+
+ :param parameter_index: The index of the parameter to replace.
+ :type parameter_index: int
+ :param parameter: The parameter to substitute for the `parameter_index` parameter.
+ :type parameter: op.Parameter
+ """
+ @typing.overload
+ def reshape(self, partial_shape: PartialShape, variables_shapes: dict = {}) -> None:
+ """
+ Reshape model input.
+
+ The allowed types of keys in the `variables_shapes` dictionary is `str`.
+ The allowed types of values in the `variables_shapes` are:
+
+ (1) `openvino.PartialShape`
+ (2) `list` consisting of dimensions
+ (3) `tuple` consisting of dimensions
+ (4) `str`, string representation of `openvino.PartialShape`
+
+ When list or tuple are used to describe dimensions, each dimension can be written in form:
+
+ (1) non-negative `int` which means static value for the dimension
+ (2) `[min, max]`, dynamic dimension where `min` specifies lower bound and `max` specifies upper bound;
+ the range includes both `min` and `max`; using `-1` for `min` or `max` means no known bound (3) `(min,
+ max)`, the same as above (4) `-1` is a dynamic dimension without known bounds (4)
+ `openvino.Dimension` (5) `str` using next syntax:
+ '?' - to define fully dynamic dimension
+ '1' - to define dimension which length is 1
+ '1..10' - to define bounded dimension
+ '..10' or '1..' to define dimension with only lower or only upper limit
+
+ GIL is released while running this function.
+
+ :param partial_shape: New shape.
+ :type partial_shape: openvino.PartialShape
+ :param variables_shapes: New shapes for variables
+ :type variables_shapes: Dict[keys, values]
+ :return : void
+ """
+ @typing.overload
+ def reshape(self, partial_shape: list, variables_shapes: dict = {}) -> None:
+ """
+ Reshape model input.
+
+ The allowed types of keys in the `variables_shapes` dictionary is `str`.
+ The allowed types of values in the `variables_shapes` are:
+
+ (1) `openvino.PartialShape`
+ (2) `list` consisting of dimensions
+ (3) `tuple` consisting of dimensions
+ (4) `str`, string representation of `openvino.PartialShape`
+
+ When list or tuple are used to describe dimensions, each dimension can be written in form:
+
+ (1) non-negative `int` which means static value for the dimension
+ (2) `[min, max]`, dynamic dimension where `min` specifies lower bound and `max` specifies upper bound;
+ the range includes both `min` and `max`; using `-1` for `min` or `max` means no known bound (3) `(min,
+ max)`, the same as above (4) `-1` is a dynamic dimension without known bounds (4)
+ `openvino.Dimension` (5) `str` using next syntax:
+ '?' - to define fully dynamic dimension
+ '1' - to define dimension which length is 1
+ '1..10' - to define bounded dimension
+ '..10' or '1..' to define dimension with only lower or only upper limit
+
+ GIL is released while running this function.
+
+ :param partial_shape: New shape.
+ :type partial_shape: list
+ :param variables_shapes: New shapes for variables
+ :type variables_shapes: Dict[keys, values]
+ :return : void
+ """
+ @typing.overload
+ def reshape(self, partial_shape: tuple, variables_shapes: dict = {}) -> None:
+ """
+ Reshape model input.
+
+ The allowed types of keys in the `variables_shapes` dictionary is `str`.
+ The allowed types of values in the `variables_shapes` are:
+
+ (1) `openvino.PartialShape`
+ (2) `list` consisting of dimensions
+ (3) `tuple` consisting of dimensions
+ (4) `str`, string representation of `openvino.PartialShape`
+
+ When list or tuple are used to describe dimensions, each dimension can be written in form:
+
+ (1) non-negative `int` which means static value for the dimension
+ (2) `[min, max]`, dynamic dimension where `min` specifies lower bound and `max` specifies upper bound;
+ the range includes both `min` and `max`; using `-1` for `min` or `max` means no known bound (3) `(min,
+ max)`, the same as above (4) `-1` is a dynamic dimension without known bounds (4)
+ `openvino.Dimension` (5) `str` using next syntax:
+ '?' - to define fully dynamic dimension
+ '1' - to define dimension which length is 1
+ '1..10' - to define bounded dimension
+ '..10' or '1..' to define dimension with only lower or only upper limit
+
+ GIL is released while running this function.
+
+ :param partial_shape: New shape.
+ :type partial_shape: tuple
+ :param variables_shapes: New shapes for variables
+ :type variables_shapes: Dict[keys, values]
+ :return : void
+ """
+ @typing.overload
+ def reshape(self, partial_shape: str, variables_shapes: dict = {}) -> None:
+ """
+ Reshape model input.
+
+ The allowed types of keys in the `variables_shapes` dictionary is `str`.
+ The allowed types of values in the `variables_shapes` are:
+
+ (1) `openvino.PartialShape`
+ (2) `list` consisting of dimensions
+ (3) `tuple` consisting of dimensions
+ (4) `str`, string representation of `openvino.PartialShape`
+
+ When list or tuple are used to describe dimensions, each dimension can be written in form:
+
+ (1) non-negative `int` which means static value for the dimension
+ (2) `[min, max]`, dynamic dimension where `min` specifies lower bound and `max` specifies upper bound;
+ the range includes both `min` and `max`; using `-1` for `min` or `max` means no known bound (3) `(min,
+ max)`, the same as above (4) `-1` is a dynamic dimension without known bounds (4)
+ `openvino.Dimension` (5) `str` using next syntax:
+ '?' - to define fully dynamic dimension
+ '1' - to define dimension which length is 1
+ '1..10' - to define bounded dimension
+ '..10' or '1..' to define dimension with only lower or only upper limit
+
+
+ GIL is released while running this function.
+
+ :param partial_shape: New shape.
+ :type partial_shape: str
+ :param variables_shapes: New shapes for variables
+ :type variables_shapes: Dict[keys, values]
+ :return : void
+ """
+ @typing.overload
+ def reshape(self, partial_shapes: dict, variables_shapes: dict = {}) -> None:
+ """
+ Reshape model inputs.
+
+ The allowed types of keys in the `partial_shapes` dictionary are:
+
+ (1) `int`, input index
+ (2) `str`, input tensor name
+ (3) `openvino.Output`
+
+ The allowed types of values in the `partial_shapes` are:
+
+ (1) `openvino.PartialShape`
+ (2) `list` consisting of dimensions
+ (3) `tuple` consisting of dimensions
+ (4) `str`, string representation of `openvino.PartialShape`
+
+ When list or tuple are used to describe dimensions, each dimension can be written in form:
+
+ (1) non-negative `int` which means static value for the dimension
+ (2) `[min, max]`, dynamic dimension where `min` specifies lower bound and `max` specifies upper bound; the range includes both `min` and `max`; using `-1` for `min` or `max` means no known bound
+ (3) `(min, max)`, the same as above
+ (4) `-1` is a dynamic dimension without known bounds
+ (4) `openvino.Dimension`
+ (5) `str` using next syntax:
+ '?' - to define fully dynamic dimension
+ '1' - to define dimension which length is 1
+ '1..10' - to define bounded dimension
+ '..10' or '1..' to define dimension with only lower or only upper limit
+
+ The allowed types of keys in the `variables_shapes` dictionary is `str`.
+ The allowed types of values in the `variables_shapes` are:
+
+ (1) `openvino.PartialShape`
+ (2) `list` consisting of dimensions
+ (3) `tuple` consisting of dimensions
+ (4) `str`, string representation of `openvino.PartialShape`
+
+ When list or tuple are used to describe dimensions, each dimension can be written in form:
+
+ (1) non-negative `int` which means static value for the dimension
+ (2) `[min, max]`, dynamic dimension where `min` specifies lower bound and `max` specifies upper bound;
+ the range includes both `min` and `max`; using `-1` for `min` or `max` means no known bound (3) `(min,
+ max)`, the same as above (4) `-1` is a dynamic dimension without known bounds (4)
+ `openvino.Dimension` (5) `str` using next syntax:
+ '?' - to define fully dynamic dimension
+ '1' - to define dimension which length is 1
+ '1..10' - to define bounded dimension
+ '..10' or '1..' to define dimension with only lower or only upper limit
+
+ Reshape model inputs.
+
+ GIL is released while running this function.
+
+ :param partial_shapes: New shapes.
+ :type partial_shapes: Dict[keys, values]
+ :param variables_shapes: New shapes for variables
+ :type variables_shapes: Dict[keys, values]
+ """
+ def set_friendly_name(self, name: str) -> None:
+ """
+ Sets a friendly name for a model. This does
+ not overwrite the unique name of the model and
+ is retrieved via get_friendly_name(). Used mainly
+ for debugging.
+
+ :param name: String to set as the friendly name.
+ :type name: str
+ """
+ @typing.overload
+ def set_rt_info(self, obj: typing.Any, path: list) -> None:
+ """
+ Add value inside runtime info
+
+ :param obj: value for the runtime info
+ :type obj: py:object
+ :param path: List of strings which defines a path to runtime info.
+ :type path: List[str]
+ """
+ @typing.overload
+ def set_rt_info(self, obj: typing.Any, path: str) -> None:
+ """
+ Add value inside runtime info
+
+ :param obj: value for the runtime info
+ :type obj: Any
+ :param path: String which defines a path to runtime info.
+ :type path: str
+ """
+ def validate_nodes_and_infer_types(self) -> None:
+ ...
+ @property
+ def dynamic(self) -> bool:
+ """
+ Returns true if any of the op's defined in the model
+ contains partial shape.
+
+ :rtype: bool
+ """
+ @property
+ def inputs(self) -> list[Output]:
+ ...
+ @property
+ def name(self) -> str:
+ ...
+ @property
+ def outputs(self) -> list[Output]:
+ ...
+ @property
+ def parameters(self) -> list[op.Parameter]:
+ """
+ Return the model parameters.
+
+ :return: a list of model's parameters.
+ :rtype: List[op.Parameter]
+ """
+ @property
+ def result(self) -> Node:
+ """
+ Return single result.
+
+ :return: Node object representing result.
+ :rtype: op.Result
+ """
+ @property
+ def results(self) -> list[op.Result]:
+ """
+ Return a list of model outputs.
+
+ :return: a list of model's result nodes.
+ :rtype: List[op.Result]
+ """
+ @property
+ def rt_info(self) -> RTMap:
+ ...
+ @property
+ def sinks(self) -> list[Node]:
+ """
+ Return a list of model's sinks.
+
+ :return: a list of model's sinks.
+ :rtype: List[openvino.Node]
+ """
+ @property
+ def variables(self) -> list[op.util.Variable]:
+ """
+ Return a list of model's variables.
+
+ :return: a list of model's variables.
+ :rtype: List[op.util.Variable]
+ """
+class Node:
+ """
+ openvino.Node wraps ov::Node
+ """
+ friendly_name: str
+ def __add__(self, right: Node | int | float | numpy.ndarray[typing.Any, numpy.dtype[typing.Any]]) -> Node:
+ """
+ Return node which applies f(A,B) = A+B to the input nodes element-wise.
+
+ :param right: The right operand.
+ :type right: Union[openvino.Node, int, float, numpy.ndarray]
+ :return: The node performing element-wise addition.
+ :rtype: openvino.Node
+ """
+ def __array_ufunc__(self, arg0: typing.Any, arg1: str, *args, **kwargs) -> typing.Any:
+ ...
+ def __getattr__(self, arg0: str) -> typing.Callable:
+ ...
+ def __mul__(self, right: Node | int | float | numpy.ndarray[typing.Any, numpy.dtype[typing.Any]]) -> Node:
+ """
+ Return node which applies f(A,B) = A*B to the input nodes element-wise.
+
+ :param right: The right operand.
+ :type right: Union[openvino.Node, int, float, numpy.ndarray]
+ :return: The node performing element-wise multiplication.
+ :rtype: openvino.Node
+ """
+ def __radd__(self, arg0: Node | int | float | numpy.ndarray[typing.Any, numpy.dtype[typing.Any]]) -> Node:
+ ...
+ def __repr__(self) -> str:
+ ...
+ def __rmul__(self, arg0: Node | int | float | numpy.ndarray[typing.Any, numpy.dtype[typing.Any]]) -> Node:
+ ...
+ def __rsub__(self, arg0: Node | int | float | numpy.ndarray[typing.Any, numpy.dtype[typing.Any]]) -> Node:
+ ...
+ def __rtruediv__(self, arg0: Node | int | float | numpy.ndarray[typing.Any, numpy.dtype[typing.Any]]) -> Node:
+ ...
+ def __sub__(self, right: Node | int | float | numpy.ndarray[typing.Any, numpy.dtype[typing.Any]]) -> Node:
+ """
+ Return node which applies f(A,B) = A-B to the input nodes element-wise.
+
+ :param right: The right operand.
+ :type right: Union[openvino.Node, int, float, numpy.ndarray]
+ :return: The node performing element-wise subtraction.
+ :rtype: openvino.Node
+ """
+ def __truediv__(self, right: Node | int | float | numpy.ndarray[typing.Any, numpy.dtype[typing.Any]]) -> Node:
+ """
+ Return node which applies f(A,B) = A/B to the input nodes element-wise.
+
+ :param right: The right operand.
+ :type right: Union[openvino.Node, int, float, numpy.ndarray]
+ :return: The node performing element-wise division.
+ :rtype: openvino.Node
+ """
+ def constructor_validate_and_infer_types(self) -> None:
+ ...
+ @typing.overload
+ def evaluate(self, output_values: list[Tensor], input_values: list[Tensor], evaluationContext: RTMap) -> bool:
+ """
+ Evaluate the node on inputs, putting results in outputs
+
+ :param output_tensors: Tensors for the outputs to compute. One for each result.
+ :type output_tensors: List[openvino.Tensor]
+ :param input_tensors: Tensors for the inputs. One for each inputs.
+ :type input_tensors: List[openvino.Tensor]
+ :param evaluation_context: Storage of additional settings and attributes that can be used
+ when evaluating the function. This additional information can be shared across nodes.
+ :type evaluation_context: openvino.RTMap
+ :rtype: bool
+ """
+ @typing.overload
+ def evaluate(self, output_values: list[Tensor], input_values: list[Tensor]) -> bool:
+ """
+ Evaluate the function on inputs, putting results in outputs
+
+ :param output_tensors: Tensors for the outputs to compute. One for each result.
+ :type output_tensors: List[openvino.Tensor]
+ :param input_tensors: Tensors for the inputs. One for each inputs.
+ :type input_tensors: List[openvino.Tensor]
+ :rtype: bool
+ """
+ def get_attributes(self) -> dict:
+ ...
+ def get_element_type(self) -> Type:
+ """
+ Checks that there is exactly one output and returns it's element type.
+
+ :return: Type of the output.
+ :rtype: openvino.Type
+ """
+ def get_friendly_name(self) -> str:
+ """
+ Gets the friendly name for a node. If no friendly name has
+ been set via set_friendly_name then the node's unique name
+ is returned.
+
+ :return: Friendly name of the node.
+ :rtype: str
+ """
+ def get_input_element_type(self, index: int) -> Type:
+ """
+ Returns the element type for input index
+
+ :param index: Index of the input.
+ :type index: int
+ :return: Type of the input index
+ :rtype: openvino.Type
+ """
+ def get_input_partial_shape(self, index: int) -> PartialShape:
+ """
+ Returns the partial shape for input index
+
+ :param index: Index of the input.
+ :type index: int
+ :return: PartialShape of the input index
+ :rtype: openvino.PartialShape
+ """
+ def get_input_shape(self, index: int) -> Shape:
+ """
+ Returns the shape for input index
+
+ :param index: Index of the input.
+ :type index: int
+ :return: Shape of the input index
+ :rtype: openvino.Shape
+ """
+ def get_input_size(self) -> int:
+ """
+ Returns the number of inputs to the node.
+
+ :return: Number of inputs.
+ :rtype: int
+ """
+ def get_input_tensor(self, index: int) -> DescriptorTensor:
+ """
+ Returns the tensor for the node's input with index i
+
+ :param index: Index of Input.
+ :type index: int
+ :return: Tensor of the input index
+ :rtype: openvino._pyopenvino.DescriptorTensor
+ """
+ def get_instance_id(self) -> int:
+ """
+ Returns id of the node.
+ May be used to compare nodes if they are same instances.
+
+ :return: id of the node.
+ :rtype: int
+ """
+ def get_name(self) -> str:
+ """
+ Get the unique name of the node
+
+ :return: Unique name of the node.
+ :rtype: str
+ """
+ def get_output_element_type(self, index: int) -> Type:
+ """
+ Returns the element type for output index
+
+ :param index: Index of the output.
+ :type index: int
+ :return: Type of the output index
+ :rtype: openvino.Type
+ """
+ def get_output_partial_shape(self, index: int) -> PartialShape:
+ """
+ Returns the partial shape for output index
+
+ :param index: Index of the output.
+ :type index: int
+ :return: PartialShape of the output index
+ :rtype: openvino.PartialShape
+ """
+ def get_output_shape(self, index: int) -> Shape:
+ """
+ Returns the shape for output index
+
+ :param index: Index of the output.
+ :type index: int
+ :return: Shape of the output index
+ :rtype: openvino.Shape
+ """
+ def get_output_size(self) -> int:
+ """
+ Returns the number of outputs from the node.
+
+ :return: Number of outputs.
+ :rtype: int
+ """
+ def get_output_tensor(self, index: int) -> DescriptorTensor:
+ """
+ Returns the tensor for output index
+
+ :param index: Index of the output.
+ :type index: int
+ :return: Tensor of the output index
+ :rtype: openvino._pyopenvino.DescriptorTensor
+ """
+ def get_rt_info(self) -> RTMap:
+ """
+ Returns PyRTMap which is a dictionary of user defined runtime info.
+
+ :return: A dictionary of user defined data.
+ :rtype: openvino.RTMap
+ """
+ def get_type_info(self) -> DiscreteTypeInfo:
+ ...
+ def get_type_name(self) -> str:
+ """
+ Returns Type's name from the node.
+
+ :return: String representing Type's name.
+ :rtype: str
+ """
+ def input(self, input_index: int) -> Input:
+ """
+ A handle to the input_index input of this node.
+
+ :param input_index: Index of Input.
+ :type input_index: int
+ :return: Input of this node.
+ :rtype: openvino.Input
+ """
+ def input_value(self, index: int) -> Output:
+ """
+ Returns input of the node with index i
+
+ :param index: Index of Input.
+ :type index: int
+ :return: Input of this node.
+ :rtype: openvino.Input
+ """
+ def input_values(self) -> list[Output]:
+ """
+ Returns list of node's inputs, in order.
+
+ :return: List of node's inputs
+ :rtype: List[openvino.Input]
+ """
+ def inputs(self) -> list[Input]:
+ """
+ A list containing a handle for each of this node's inputs, in order.
+
+ :return: List of node's inputs.
+ :rtype: List[openvino.Input]
+ """
+ def output(self, output_index: int) -> Output:
+ """
+ A handle to the output_index output of this node.
+
+ :param output_index: Index of Output.
+ :type output_index: int
+ :return: Output of this node.
+ :rtype: openvino.Output
+ """
+ def outputs(self) -> list[Output]:
+ """
+ A list containing a handle for each of this node's outputs, in order.
+
+ :return: List of node's outputs.
+ :rtype: List[openvino.Output]
+ """
+ def set_argument(self, arg0: int, arg1: Output) -> None:
+ ...
+ @typing.overload
+ def set_arguments(self, arg0: list[Node]) -> None:
+ ...
+ @typing.overload
+ def set_arguments(self, arg0: list[Output]) -> None:
+ ...
+ def set_attribute(self, arg0: str, arg1: typing.Any) -> None:
+ ...
+ def set_friendly_name(self, name: str) -> None:
+ """
+ Sets a friendly name for a node. This does not overwrite the unique name
+ of the node and is retrieved via get_friendly_name(). Used mainly for
+ debugging. The friendly name may be set exactly once.
+
+ :param name: Friendly name to set.
+ :type name: str
+ """
+ def set_output_size(self, size: int) -> None:
+ """
+ Sets the number of outputs
+
+ :param size: number of outputs.
+ :type size: int
+ """
+ def set_output_type(self, index: int, element_type: Type, shape: PartialShape) -> None:
+ """
+ Sets output's element type and shape.
+
+ :param index: Index of the output.
+ :type index: int
+ :param element_type: Element type of the output.
+ :type element_type: openvino.Type
+ :param shape: Shape of the output.
+ :type shape: openvino.PartialShape
+ """
+ def validate_and_infer_types(self) -> None:
+ """
+ Verifies that attributes and inputs are consistent and computes output shapes and element types.
+ Must be implemented by concrete child classes so that it can be run any number of times.
+
+ Throws if the node is invalid.
+ """
+ def visit_attributes(self, arg0: AttributeVisitor) -> bool:
+ ...
+ @property
+ def name(self) -> str:
+ ...
+ @property
+ def rt_info(self) -> RTMap:
+ ...
+ @property
+ def shape(self) -> Shape:
+ ...
+ @property
+ def type_info(self) -> DiscreteTypeInfo:
+ ...
+class NodeContext:
+ def get_attribute(self, name: str, default_value: typing.Any = None, dtype: typing.Any = None) -> typing.Any:
+ ...
+ @typing.overload
+ def get_input(self, arg0: int) -> Output:
+ ...
+ @typing.overload
+ def get_input(self, arg0: str) -> Output:
+ ...
+ @typing.overload
+ def get_input(self, arg0: str, arg1: int) -> Output:
+ ...
+ @typing.overload
+ def get_input_size(self) -> int:
+ ...
+ @typing.overload
+ def get_input_size(self, arg0: str) -> int:
+ ...
+ def get_op_type(self, arg0: str) -> str:
+ ...
+ def get_values_from_const_input(self, idx: int, default_value: typing.Any = None, dtype: typing.Any = None) -> typing.Any:
+ ...
+ def has_attribute(self, arg0: str) -> bool:
+ ...
+class NodeFactory:
+ """
+ NodeFactory creates nGraph nodes
+ """
+ @typing.overload
+ def __init__(self) -> None:
+ ...
+ @typing.overload
+ def __init__(self, arg0: str) -> None:
+ ...
+ def __repr__(self) -> str:
+ ...
+ @typing.overload
+ def add_extension(self, arg0: Extension) -> None:
+ ...
+ @typing.overload
+ def add_extension(self, arg0: list[Extension]) -> None:
+ ...
+ @typing.overload
+ def add_extension(self, arg0: typing.Any) -> None:
+ ...
+ @typing.overload
+ def create(self, arg0: str) -> Node:
+ ...
+ @typing.overload
+ def create(self, arg0: str, arg1: list[Output], arg2: dict) -> Node:
+ ...
+class NotImplementedFailure(Exception):
+ pass
+class OVAny:
+ """
+ openvino.OVAny provides object wrapper for OpenVINOov::Any class. It allows to pass different types of objectsinto C++ based core of the project.
+ """
+ @typing.overload
+ def __eq__(self, arg0: OVAny) -> bool:
+ ...
+ @typing.overload
+ def __eq__(self, arg0: typing.Any) -> bool:
+ ...
+ def __get__(self) -> typing.Any:
+ ...
+ def __getitem__(self, arg0: typing.Any) -> typing.Any:
+ ...
+ def __hash__(self) -> typing.Any:
+ ...
+ def __init__(self, arg0: typing.Any) -> None:
+ ...
+ def __len__(self) -> typing.Any:
+ ...
+ def __repr__(self) -> str:
+ ...
+ def __set__(self, arg0: OVAny) -> None:
+ ...
+ @typing.overload
+ def __setitem__(self, arg0: typing.Any, arg1: str) -> None:
+ ...
+ @typing.overload
+ def __setitem__(self, arg0: typing.Any, arg1: int) -> None:
+ ...
+ def aslist(self, dtype: typing.Any = None) -> typing.Any:
+ """
+ Returns runtime attribute as a list with specified data type.
+
+ :param dtype: Data type of a list in which runtime attribute will be casted.
+ :type dtype: Union[bool, int, str, float]
+
+ :return: A runtime attribute as a list.
+ :rtype: Union[List[float], List[int], List[str], List[bool]]
+ """
+ def astype(self, arg0: typing.Any) -> typing.Any:
+ """
+ Returns runtime attribute casted to defined data type.
+
+ :param dtype: Data type in which runtime attribute will be casted.
+ :type dtype: Union[bool, int, str, float, dict]
+
+ :return: A runtime attribute.
+ :rtype: Any
+ """
+ def get(self) -> typing.Any:
+ """
+ :return: Value of this OVAny.
+ :rtype: Any
+ """
+ def set(self, arg0: typing.Any) -> None:
+ """
+ :param: Value to be set in OVAny.
+ :type: Any
+ """
+ @property
+ def value(self) -> typing.Any:
+ """
+ :return: Value of this OVAny.
+ :rtype: Any
+ """
+class Op(Node):
+ def __init__(self, arg0: typing.Any) -> None:
+ ...
+ def _update_type_info(self) -> None:
+ ...
+class OpConversionFailure(Exception):
+ pass
+class OpExtension(Extension):
+ """
+ openvino.OpExtension provides the base interface for OpenVINO extensions.
+ """
+ def __init__(self, arg0: typing.Any) -> None:
+ ...
+ def __repr__(self) -> str:
+ ...
+class OpValidationFailure(Exception):
+ pass
+class Output:
+ """
+ openvino.Output represents port/node output.
+ """
+ def __copy__(self) -> Output:
+ ...
+ def __deepcopy__(self, arg0: dict) -> None:
+ ...
+ def __eq__(self, arg0: Output) -> bool:
+ ...
+ def __ge__(self, arg0: Output) -> bool:
+ ...
+ def __gt__(self, arg0: Output) -> bool:
+ ...
+ def __hash__(self) -> int:
+ ...
+ def __le__(self, arg0: Output) -> bool:
+ ...
+ def __lt__(self, arg0: Output) -> bool:
+ ...
+ def __ne__(self, arg0: Output) -> bool:
+ ...
+ def __repr__(self) -> str:
+ ...
+ def _from_node(self: typing.Any) -> Output:
+ ...
+ def add_names(self, names: set[str]) -> None:
+ """
+ Add tensor names associated with this output.
+
+ :param names: Set of tensor names.
+ :type names: Set[str]
+ """
+ def get_any_name(self) -> str:
+ """
+ One of the tensor names associated with this output.
+ Note: first name in lexicographical order.
+
+ :return: Tensor name as string.
+ :rtype: str
+ """
+ def get_element_type(self) -> Type:
+ """
+ The element type of the output referred to by this output handle.
+
+ :return: Type of the output.
+ :rtype: openvino.Type
+ """
+ def get_index(self) -> int:
+ """
+ The index of the output referred to by this output handle.
+
+ :return: Index value as integer.
+ :rtype: int
+ """
+ def get_names(self) -> set[str]:
+ """
+ The tensor names associated with this output.
+
+ :return: Set of tensor names.
+ :rtype: Set[str]
+ """
+ def get_node(self) -> ...:
+ """
+ Get node referenced by this output handle.
+
+ :return: Node object referenced by this output handle.
+ :rtype: openvino.Node
+ """
+ def get_partial_shape(self) -> PartialShape:
+ """
+ The partial shape of the output referred to by this output handle.
+
+ :return: Copy of PartialShape of the output.
+ :rtype: openvino.PartialShape
+ """
+ def get_rt_info(self) -> RTMap:
+ """
+ Returns RTMap which is a dictionary of user defined runtime info.
+
+ :return: A dictionary of user defined data.
+ :rtype: openvino.RTMap
+ """
+ def get_shape(self) -> Shape:
+ """
+ The shape of the output referred to by this output handle.
+
+ :return: Copy of Shape of the output.
+ :rtype: openvino.Shape
+ """
+ def get_target_inputs(self) -> set[...]:
+ """
+ A set containing handles for all inputs, targeted by the output,
+ referenced by this output handle.
+
+ :return: Set of Inputs.
+ :rtype: Set[openvino.Input]
+ """
+ def get_tensor(self) -> ...:
+ """
+ A reference to the tensor descriptor for this output.
+
+ :return: Tensor of the output.
+ :rtype: openvino._pyopenvino.DescriptorTensor
+ """
+ def remove_target_input(self, target_input: typing.Any) -> None:
+ """
+ Removes a target input from the output referenced by this output handle.
+
+ :param target_input: The target input to remove.
+ :type target_input: openvino.Output
+ """
+ def replace(self, replacement: Output) -> None:
+ """
+ Replace all users of this value with replacement.
+
+ :param replacement: The node that is a replacement.
+ :type replacement: openvino.Output
+ """
+ def set_names(self, names: set[str]) -> None:
+ """
+ Set tensor names associated with this output.
+
+ :param names: Set of tensor names.
+ :type names: Set[str]
+ """
+ @property
+ def any_name(self) -> str:
+ ...
+ @property
+ def element_type(self) -> Type:
+ ...
+ @property
+ def index(self) -> int:
+ ...
+ @property
+ def names(self) -> set[str]:
+ ...
+ @property
+ def node(self) -> ...:
+ ...
+ @property
+ def partial_shape(self) -> PartialShape:
+ ...
+ @property
+ def rt_info(self) -> RTMap:
+ ...
+ @property
+ def shape(self) -> Shape:
+ ...
+ @property
+ def target_inputs(self) -> set[...]:
+ ...
+ @property
+ def tensor(self) -> ...:
+ ...
+class PartialShape:
+ """
+ openvino.PartialShape wraps ov::PartialShape
+ """
+ __hash__: typing.ClassVar[None] = None
+ @staticmethod
+ @typing.overload
+ def dynamic(rank: Dimension = ...) -> PartialShape:
+ """
+ Construct a PartialShape with the given rank and all dimensions are dynamic.
+
+ :param rank: The rank of the PartialShape. This is the number of dimensions in the shape.
+ :type rank: openvino.Dimension
+ :return: A PartialShape with the given rank (or undefined rank if not provided), and all dimensions are dynamic.
+ """
+ @staticmethod
+ @typing.overload
+ def dynamic(rank: int) -> PartialShape:
+ """
+ Construct a PartialShape with the given rank and all dimensions are dynamic.
+
+ :param rank: The rank of the PartialShape. This is the number of dimensions in the shape.
+ :type rank: int
+ :return: A PartialShape with the given rank, and all dimensions are dynamic.
+ """
+ def __copy__(self) -> PartialShape:
+ ...
+ def __deepcopy__(self, arg0: dict) -> PartialShape:
+ """
+ memo
+ """
+ @typing.overload
+ def __eq__(self, arg0: PartialShape) -> bool:
+ ...
+ @typing.overload
+ def __eq__(self, arg0: Shape) -> bool:
+ ...
+ @typing.overload
+ def __eq__(self, arg0: tuple) -> bool:
+ ...
+ @typing.overload
+ def __eq__(self, arg0: list) -> bool:
+ ...
+ @typing.overload
+ def __getitem__(self, arg0: int) -> Dimension:
+ ...
+ @typing.overload
+ def __getitem__(self, arg0: slice) -> PartialShape:
+ ...
+ @typing.overload
+ def __init__(self, arg0: Shape) -> None:
+ ...
+ @typing.overload
+ def __init__(self, arg0: PartialShape) -> None:
+ ...
+ @typing.overload
+ def __init__(self, arg0: list) -> None:
+ ...
+ @typing.overload
+ def __init__(self, arg0: tuple) -> None:
+ ...
+ @typing.overload
+ def __init__(self, shape: str) -> None:
+ ...
+ def __iter__(self) -> typing.Iterator[Dimension]:
+ ...
+ def __len__(self) -> int:
+ ...
+ def __repr__(self) -> str:
+ ...
+ @typing.overload
+ def __setitem__(self, arg0: int, arg1: int) -> None:
+ ...
+ @typing.overload
+ def __setitem__(self, arg0: int, arg1: Dimension) -> None:
+ ...
+ def __str__(self) -> str:
+ ...
+ def compatible(self, shape: PartialShape) -> bool:
+ """
+ Check whether this shape is compatible with the argument, i.e.,
+ whether it is possible to merge them.
+
+ :param shape: The shape to be checked for compatibility with this shape.
+ :type shape: openvino.PartialShape
+ :return: True if this shape is compatible with s, else False.
+ :rtype: bool
+ """
+ def get_dimension(self, index: int) -> Dimension:
+ """
+ Get the dimension at specified index of a partial shape.
+
+ :param index: The index of dimension.
+ :type index: int
+ :return: Get the particular dimension of a partial shape.
+ :rtype: openvino.Dimension
+ """
+ def get_max_shape(self) -> Shape:
+ """
+ :return: Get the max bounding shape.
+ :rtype: openvino.Shape
+ """
+ def get_min_shape(self) -> Shape:
+ """
+ :return: Get the min bounding shape.
+ :rtype: openvino.Shape
+ """
+ def get_shape(self) -> Shape:
+ """
+ :return: Get the unique shape.
+ :rtype: openvino.Shape
+ """
+ def refines(self, shape: PartialShape) -> bool:
+ """
+ Check whether this shape is a refinement of the argument.
+
+ :param shape: The shape which is being compared against this shape.
+ :type shape: openvino.PartialShape
+ :return: True if this shape refines s, else False.
+ :rtype: bool
+ """
+ def relaxes(self, shape: PartialShape) -> bool:
+ """
+ Check whether this shape is a relaxation of the argument.
+
+ :param shape: The shape which is being compared against this shape.
+ :type shape: openvino.PartialShape
+ :return: True if this shape relaxes s, else False.
+ :rtype: bool
+ """
+ def same_scheme(self, shape: PartialShape) -> bool:
+ """
+ Check whether this shape represents the same scheme as the argument.
+
+ :param shape: The shape which is being compared against this shape.
+ :type shape: openvino.PartialShape
+ :return: True if shape represents the same scheme as s, else False.
+ :rtype: bool
+ """
+ def to_shape(self) -> Shape:
+ """
+ :return: Get the unique shape.
+ :rtype: openvino.Shape
+ """
+ def to_string(self) -> str:
+ ...
+ @property
+ def all_non_negative(self) -> bool:
+ """
+ True if all static dimensions of the tensor are
+ non-negative, else False.
+ """
+ @property
+ def is_dynamic(self) -> bool:
+ """
+ False if this shape is static, else True.
+ A shape is considered static if it has static rank,
+ and all dimensions of the shape are static.
+ """
+ @property
+ def is_static(self) -> bool:
+ """
+ True if this shape is static, else False.
+ A shape is considered static if it has static rank,
+ and all dimensions of the shape are static.
+ """
+ @property
+ def rank(self) -> Dimension:
+ """
+ The rank of the shape.
+ """
+class Place:
+ """
+ openvino.frontend.Place wraps ov::frontend::Place
+ """
+ def get_consuming_operations(self, output_name: typing.Any = None, output_port_index: typing.Any = None) -> list[Place]:
+ """
+ Returns references to all operation nodes that consume data from this place for specified output port.
+ Note: It can be called for any kind of graph place searching for the first consuming operations.
+
+ :param output_name: Name of output port group. May not be set if node has one output port group.
+ :type output_name: str
+ :param output_port_index: If place is an operational node it specifies which output port should be considered
+ May not be set if node has only one output port.
+ :type output_port_index: int
+ :return: A list with all operation node references that consumes data from this place
+ :rtype: List[openvino.frontend.Place]
+ """
+ def get_consuming_ports(self) -> list[Place]:
+ """
+ Returns all input ports that consume data flows through this place.
+
+ :return: Input ports that consume data flows through this place.
+ :rtype: List[openvino.frontend.Place]
+ """
+ def get_input_port(self, input_name: typing.Any = None, input_port_index: typing.Any = None) -> Place:
+ """
+ For operation node returns reference to an input port with specified name and index.
+
+ :param input_name: Name of port group. May not be set if node has one input port group.
+ :type input_name: str
+ :param input_port_index: Input port index in a group. May not be set if node has one input port in a group.
+ :type input_port_index: int
+ :return: Appropriate input port place.
+ :rtype: openvino.frontend.Place
+ """
+ def get_names(self) -> list[str]:
+ """
+ All associated names (synonyms) that identify this place in the graph in a framework specific way.
+
+ :return: A vector of strings each representing a name that identifies this place in the graph.
+ Can be empty if there are no names associated with this place or name cannot be attached.
+ :rtype: List[str]
+ """
+ def get_output_port(self, output_name: typing.Any = None, output_port_index: typing.Any = None) -> Place:
+ """
+ For operation node returns reference to an output port with specified name and index.
+
+ :param output_name: Name of output port group. May not be set if node has one output port group.
+ :type output_name: str
+ :param output_port_index: Output port index. May not be set if node has one output port in a group.
+ :type output_port_index: int
+ :return: Appropriate output port place.
+ :rtype: openvino.frontend.Place
+ """
+ def get_producing_operation(self, input_name: typing.Any = None, input_port_index: typing.Any = None) -> Place:
+ """
+ Get an operation node place that immediately produces data for this place.
+
+ :param input_name: Name of port group. May not be set if node has one input port group.
+ :type input_name: str
+ :param input_port_index: If a given place is itself an operation node, this specifies a port index.
+ May not be set if place has only one input port.
+ :type input_port_index: int
+ :return: An operation place that produces data for this place.
+ :rtype: openvino.frontend.Place
+ """
+ def get_producing_port(self) -> Place:
+ """
+ Returns a port that produces data for this place.
+
+ :return: A port place that produces data for this place.
+ :rtype: openvino.frontend.Place
+ """
+ def get_source_tensor(self, input_name: typing.Any = None, input_port_index: typing.Any = None) -> Place:
+ """
+ Returns a tensor place that supplies data for this place; applicable for operations,
+ input ports and input edges.
+
+ :param input_name : Name of port group. May not be set if node has one input port group.
+ :type input_name: str
+ :param input_port_index: Input port index for operational node. May not be specified if place has only one input port.
+ :type input_port_index: int
+ :return: A tensor place which supplies data for this place.
+ :rtype: openvino.frontend.Place
+ """
+ def get_target_tensor(self, output_name: typing.Any = None, output_port_index: typing.Any = None) -> Place:
+ """
+ Returns a tensor place that gets data from this place; applicable for operations,
+ output ports and output edges.
+
+ :param output_name: Name of output port group. May not be set if node has one output port group.
+ :type output_name: str
+ :param output_port_index: Output port index if the current place is an operation node and has multiple output ports.
+ May not be set if place has only one output port.
+ :type output_port_index: int
+ :return: A tensor place which hold the resulting value for this place.
+ :rtype: openvino.frontend.Place
+ """
+ def is_equal(self, other: Place) -> bool:
+ """
+ Returns true if another place is the same as this place.
+
+ :param other: Another place object.
+ :type other: openvino.frontend.Place
+ :return: True if another place is the same as this place.
+ :rtype: bool
+ """
+ def is_equal_data(self, other: Place) -> bool:
+ """
+ Returns true if another place points to the same data.
+ Note: The same data means all places on path:
+ output port -> output edge -> tensor -> input edge -> input port.
+
+ :param other: Another place object.
+ :type other: openvino.frontend.Place
+ :return: True if another place points to the same data.
+ :rtype: bool
+ """
+ def is_input(self) -> bool:
+ """
+ Returns true if this place is input for a model.
+
+ :return: True if this place is input for a model
+ :rtype: bool
+ """
+ def is_output(self) -> bool:
+ """
+ Returns true if this place is output for a model.
+
+ :return: True if this place is output for a model.
+ :rtype: bool
+ """
+class ProfilingInfo:
+ """
+ openvino.ProfilingInfo contains performance metrics for single node.
+ """
+ class Status:
+ """
+ Members:
+
+ NOT_RUN
+
+ OPTIMIZED_OUT
+
+ EXECUTED
+ """
+ EXECUTED: typing.ClassVar[ProfilingInfo.Status] # value = <Status.EXECUTED: 2>
+ NOT_RUN: typing.ClassVar[ProfilingInfo.Status] # value = <Status.NOT_RUN: 0>
+ OPTIMIZED_OUT: typing.ClassVar[ProfilingInfo.Status] # value = <Status.OPTIMIZED_OUT: 1>
+ __members__: typing.ClassVar[dict[str, ProfilingInfo.Status]] # value = {'NOT_RUN': <Status.NOT_RUN: 0>, 'OPTIMIZED_OUT': <Status.OPTIMIZED_OUT: 1>, 'EXECUTED': <Status.EXECUTED: 2>}
+ def __eq__(self, other: typing.Any) -> bool:
+ ...
+ def __getstate__(self) -> int:
+ ...
+ def __hash__(self) -> int:
+ ...
+ def __index__(self) -> int:
+ ...
+ def __init__(self, value: int) -> None:
+ ...
+ def __int__(self) -> int:
+ ...
+ def __ne__(self, other: typing.Any) -> bool:
+ ...
+ def __repr__(self) -> str:
+ ...
+ def __setstate__(self, state: int) -> None:
+ ...
+ def __str__(self) -> str:
+ ...
+ @property
+ def name(self) -> str:
+ ...
+ @property
+ def value(self) -> int:
+ ...
+ EXECUTED: typing.ClassVar[ProfilingInfo.Status] # value = <Status.EXECUTED: 2>
+ NOT_RUN: typing.ClassVar[ProfilingInfo.Status] # value = <Status.NOT_RUN: 0>
+ OPTIMIZED_OUT: typing.ClassVar[ProfilingInfo.Status] # value = <Status.OPTIMIZED_OUT: 1>
+ cpu_time: datetime.timedelta
+ exec_type: str
+ node_name: str
+ node_type: str
+ real_time: datetime.timedelta
+ status: ProfilingInfo.Status
+ def __init__(self) -> None:
+ ...
+ def __repr__(self) -> str:
+ ...
+class ProgressReporterExtension(Extension):
+ """
+ An extension class intented to use as progress reporting utility
+ """
+ @typing.overload
+ def __init__(self) -> None:
+ ...
+ @typing.overload
+ def __init__(self, arg0: typing.Callable) -> None:
+ ...
+ @typing.overload
+ def __init__(self, arg0: typing.Callable[[float, int, int], None]) -> None:
+ ...
+ @typing.overload
+ def __init__(self, arg0: typing.Callable[[float, int, int], None]) -> None:
+ ...
+ def report_progress(self, arg0: float, arg1: int, arg2: int) -> None:
+ ...
+class RTMap:
+ """
+ openvino.RTMap makes bindings for std::map<std::string, ov::Any>, which can later be used as ov::Node::RTMap
+ """
+ def __bool__(self) -> bool:
+ """
+ Check whether the map is nonempty
+ """
+ def __contains__(self, arg0: str) -> bool:
+ ...
+ def __delitem__(self, arg0: str) -> None:
+ ...
+ def __getitem__(self, arg0: str) -> typing.Any:
+ ...
+ def __iter__(self) -> typing.Iterator[str]:
+ ...
+ def __len__(self) -> int:
+ ...
+ def __repr__(self) -> str:
+ ...
+ @typing.overload
+ def __setitem__(self, arg0: str, arg1: str) -> None:
+ ...
+ @typing.overload
+ def __setitem__(self, arg0: str, arg1: int) -> None:
+ ...
+ def items(self) -> typing.Iterator:
+ ...
+ def keys(self) -> typing.Iterator[str]:
+ ...
+ def values(self) -> typing.Iterator:
+ ...
+class RemoteContext:
+ def create_host_tensor(self, type: Type, shape: Shape) -> Tensor:
+ """
+ This method is used to create a host tensor object friendly for the device in
+ current context. For example, GPU context may allocate USM host memory
+ (if corresponding extension is available), which could be more efficient
+ than regular host memory.
+
+ GIL is released while running this function.
+
+ :param type: Defines the element type of the tensor.
+ :type type: openvino.Type
+ :param shape: Defines the shape of the tensor.
+ :type shape: openvino.Shape
+ :return: A tensor instance with device friendly memory.
+ :rtype: openvino.Tensor
+ """
+ def create_tensor(self, type: Type, shape: Shape, properties: dict[str, typing.Any]) -> RemoteTensor:
+ """
+ Allocates memory tensor in device memory or wraps user-supplied memory handle
+ using the specified tensor description and low-level device-specific parameters.
+ Returns the object that implements the RemoteTensor interface.
+
+ GIL is released while running this function.
+
+ :param type: Defines the element type of the tensor.
+ :type type: openvino.Type
+ :param shape: Defines the shape of the tensor.
+ :type shape: openvino.Shape
+ :param properties: dict of the low-level tensor object parameters.
+ :type properties: dict
+ :return: A remote tensor instance.
+ :rtype: openvino.RemoteTensor
+ """
+ def get_device_name(self) -> str:
+ """
+ Returns name of a device on which the context is allocated.
+
+ :return: A device name string in fully specified format `<device_name>[.<device_id>[.<tile_id>]]`.
+ :rtype: str
+ """
+ def get_params(self) -> dict[str, OVAny]:
+ """
+ Returns a dict of device-specific parameters required for low-level
+ operations with the underlying context.
+ Parameters include device/context handles, access flags, etc.
+ Content of the returned dict depends on remote execution context that is
+ currently set on the device (working scenario).
+
+ :return: A dictionary of device-specific parameters.
+ :rtype: dict
+ """
+class RemoteTensor:
+ def __init__(self, remote_tensor: RemoteTensor, begin: Coordinate, end: Coordinate) -> None:
+ """
+ Constructs a RoiRemoteTensor object using a specified range of coordinates on an existing RemoteTensor.
+
+ :param remote_tensor: The RemoteTensor object on which the RoiRemoteTensor will be based.
+ :type remote_tensor: openvino.RemoteTensor
+ :param begin: The starting coordinates for the tensor bound.
+ :type begin: openvino.Coordinate
+ :param end: The ending coordinates for the tensor bound.
+ :type end: openvino.Coordinate
+ """
+ def __repr__(self) -> str:
+ ...
+ @typing.overload
+ def copy_from(self, source_tensor: RemoteTensor) -> None:
+ """
+ Copy source remote tensor's data to this tensor. Tensors should have the same element type.
+ In case of RoiTensor, tensors should also have the same shape.
+
+ :param source_tensor: The source remote tensor from which the data will be copied.
+ :type source_tensor: openvino.RemoteTensor
+ """
+ @typing.overload
+ def copy_from(self, source_tensor: Tensor) -> None:
+ """
+ Copy source tensor's data to this tensor. Tensors should have the same element type and shape.
+ In case of RoiTensor, tensors should also have the same shape.
+
+ :param source_tensor: The source tensor from which the data will be copied.
+ :type source_tensor: openvino.Tensor
+ """
+ @typing.overload
+ def copy_to(self, target_tensor: RemoteTensor) -> None:
+ """
+ Copy tensor's data to a destination remote tensor. The destination tensor should have the same element type.
+ In case of RoiTensor, the destination tensor should also have the same shape.
+
+ :param target_tensor: The destination remote tensor to which the data will be copied.
+ :type target_tensor: openvino.RemoteTensor
+ """
+ @typing.overload
+ def copy_to(self, target_tensor: Tensor) -> None:
+ """
+ Copy tensor's data to a destination tensor. The destination tensor should have the same element type.
+ In case of RoiTensor, the destination tensor should also have the same shape.
+
+ :param target_tensor: The destination tensor to which the data will be copied.
+ :type target_tensor: openvino.Tensor
+ """
+ def get_byte_size(self) -> int:
+ """
+ Gets Tensor's size in bytes.
+
+ :rtype: int
+ """
+ def get_device_name(self) -> str:
+ """
+ Returns name of a device on which the tensor is allocated.
+
+ :return: A device name string in fully specified format `<device_name>[.<device_id>[.<tile_id>]]`.
+ :rtype: str
+ """
+ def get_params(self) -> dict[str, OVAny]:
+ """
+ Returns a dict of device-specific parameters required for low-level
+ operations with the underlying tensor.
+ Parameters include device/context/surface/buffer handles, access flags, etc.
+ Content of the returned dict depends on remote execution context that is
+ currently set on the device (working scenario).
+
+ :return: A dictionary of device-specific parameters.
+ :rtype: dict
+ """
+ def get_shape(self) -> Shape:
+ """
+ Gets Tensor's shape.
+
+ :rtype: openvino.Shape
+ """
+ @property
+ def bytes_data(self) -> None:
+ """
+ This property is not implemented.
+ """
+ @bytes_data.setter
+ def bytes_data(self, arg1: typing.Any) -> None:
+ ...
+ @property
+ def data(self) -> None:
+ """
+ This property is not implemented.
+ """
+ @property
+ def str_data(self) -> None:
+ """
+ This property is not implemented.
+ """
+ @str_data.setter
+ def str_data(self, arg1: typing.Any) -> None:
+ ...
+class Shape:
+ """
+ openvino.Shape wraps ov::Shape
+ """
+ __hash__: typing.ClassVar[None] = None
+ @typing.overload
+ def __eq__(self, arg0: Shape) -> bool:
+ ...
+ @typing.overload
+ def __eq__(self, arg0: tuple) -> bool:
+ ...
+ @typing.overload
+ def __eq__(self, arg0: list) -> bool:
+ ...
+ @typing.overload
+ def __getitem__(self, arg0: int) -> int:
+ ...
+ @typing.overload
+ def __getitem__(self, arg0: slice) -> Shape:
+ ...
+ @typing.overload
+ def __init__(self) -> None:
+ ...
+ @typing.overload
+ def __init__(self, axis_lengths: list[int]) -> None:
+ ...
+ @typing.overload
+ def __init__(self, axis_lengths: Shape) -> None:
+ ...
+ @typing.overload
+ def __init__(self, shape: str) -> None:
+ ...
+ def __iter__(self) -> typing.Iterator[int]:
+ ...
+ def __len__(self) -> int:
+ ...
+ def __repr__(self) -> str:
+ ...
+ @typing.overload
+ def __setitem__(self, arg0: int, arg1: int) -> None:
+ ...
+ @typing.overload
+ def __setitem__(self, arg0: int, arg1: Dimension) -> None:
+ ...
+ def __str__(self) -> str:
+ ...
+ def to_string(self) -> str:
+ ...
+class Strides:
+ """
+ openvino.Strides wraps ov::Strides
+ """
+ __hash__: typing.ClassVar[None] = None
+ @typing.overload
+ def __eq__(self, arg0: Strides) -> bool:
+ ...
+ @typing.overload
+ def __eq__(self, arg0: tuple) -> bool:
+ ...
+ @typing.overload
+ def __eq__(self, arg0: list) -> bool:
+ ...
+ def __getitem__(self, arg0: int) -> int:
+ ...
+ @typing.overload
+ def __init__(self, axis_strides: list[int]) -> None:
+ ...
+ @typing.overload
+ def __init__(self, axis_strides: Strides) -> None:
+ ...
+ def __iter__(self) -> typing.Iterator[int]:
+ ...
+ def __len__(self) -> int:
+ ...
+ def __repr__(self) -> str:
+ ...
+ def __setitem__(self, arg0: int, arg1: int) -> None:
+ ...
+ def __str__(self) -> str:
+ ...
+class Symbol:
+ """
+ openvino.Symbol wraps ov::Symbol
+ """
+ def __bool__(self) -> bool:
+ """
+ Check whether the symbol is meaningful
+ """
+ def __eq__(self, arg0: Symbol) -> bool:
+ ...
+ def __hash__(self) -> int:
+ ...
+ def __init__(self) -> None:
+ ...
+class TelemetryExtension(Extension):
+ @typing.overload
+ def __init__(self, arg0: str, arg1: typing.Callable, arg2: typing.Callable, arg3: typing.Callable) -> None:
+ ...
+ @typing.overload
+ def __init__(self, arg0: str, arg1: typing.Callable[[str, str, str, int], None], arg2: typing.Callable[[str, str], None], arg3: typing.Callable[[str, str], None]) -> None:
+ ...
+ def send_error(self, arg0: str) -> None:
+ ...
+ def send_event(self, arg0: str, arg1: str, arg2: int) -> None:
+ ...
+ def send_stack_trace(self, arg0: str) -> None:
+ ...
+class Tensor:
+ """
+ openvino.Tensor holding either copy of memory or shared host memory.
+ """
+ def __copy__(self) -> Tensor:
+ ...
+ def __deepcopy__(self, arg0: dict) -> Tensor:
+ ...
+ @typing.overload
+ def __init__(self, array: numpy.ndarray[typing.Any, numpy.dtype[typing.Any]], shared_memory: bool = False) -> None:
+ """
+ Tensor's special constructor.
+
+ :param array: Array to create the tensor from.
+ :type array: numpy.array
+ :param shared_memory: If `True`, this Tensor memory is being shared with a host.
+ Any action performed on the host memory is reflected on this Tensor's memory!
+ If `False`, data is being copied to this Tensor.
+ Requires data to be C_CONTIGUOUS if `True`.
+ If the passed array contains strings, the flag must be set to `False'.
+ :type shared_memory: bool
+ """
+ @typing.overload
+ def __init__(self, array: numpy.ndarray[typing.Any, numpy.dtype[typing.Any]], shape: Shape, type: Type = ...) -> None:
+ """
+ Another Tensor's special constructor.
+
+ Represents array in the memory with given shape and element type.
+ It's recommended to use this constructor only for wrapping array's
+ memory with the specific openvino element type parameter.
+
+ :param array: C_CONTIGUOUS numpy array which will be wrapped in
+ openvino.Tensor with given parameters (shape
+ and element_type). Array's memory is being shared with a host.
+ Any action performed on the host memory will be reflected on this Tensor's memory!
+ :type array: numpy.array
+ :param shape: Shape of the new tensor.
+ :type shape: openvino.Shape
+ :param type: Element type
+ :type type: openvino.Type
+
+ :Example:
+ .. code-block:: python
+
+ import openvino as ov
+ import numpy as np
+
+ arr = np.array(shape=(100), dtype=np.uint8)
+ t = ov.Tensor(arr, ov.Shape([100, 8]), ov.Type.u1)
+ """
+ @typing.overload
+ def __init__(self, array: numpy.ndarray[typing.Any, numpy.dtype[typing.Any]], shape: list[int], type: Type = ...) -> None:
+ """
+ Another Tensor's special constructor.
+
+ Represents array in the memory with given shape and element type.
+ It's recommended to use this constructor only for wrapping array's
+ memory with the specific openvino element type parameter.
+
+ :param array: C_CONTIGUOUS numpy array which will be wrapped in
+ openvino.Tensor with given parameters (shape
+ and element_type). Array's memory is being shared with a host.
+ Any action performed on the host memory will be reflected on this Tensor's memory!
+ :type array: numpy.array
+ :param shape: Shape of the new tensor.
+ :type shape: list or tuple
+ :param type: Element type.
+ :type type: openvino.Type
+
+ :Example:
+ .. code-block:: python
+
+ import openvino as ov
+ import numpy as np
+
+ arr = np.array(shape=(100), dtype=np.uint8)
+ t = ov.Tensor(arr, [100, 8], ov.Type.u1)
+ """
+ @typing.overload
+ def __init__(self, list: list) -> None:
+ """
+ Tensor's special constructor.
+
+ Creates a Tensor from a given Python list.
+ Warning: It is always a copy of list's data!
+
+ :param array: List to create the tensor from.
+ :type array: List[int, float, str]
+ """
+ @typing.overload
+ def __init__(self, type: Type, shape: Shape) -> None:
+ ...
+ @typing.overload
+ def __init__(self, type: Type, shape: list[int]) -> None:
+ ...
+ @typing.overload
+ def __init__(self, type: numpy.dtype[typing.Any], shape: list[int]) -> None:
+ ...
+ @typing.overload
+ def __init__(self, type: typing.Any, shape: list[int]) -> None:
+ ...
+ @typing.overload
+ def __init__(self, type: numpy.dtype[typing.Any], shape: Shape) -> None:
+ ...
+ @typing.overload
+ def __init__(self, type: typing.Any, shape: Shape) -> None:
+ ...
+ @typing.overload
+ def __init__(self, port: Output) -> None:
+ """
+ Constructs Tensor using port from node.
+ Type and shape will be taken from the port.
+
+ :param port: Output port from a node.
+ :type param: openvino.Output
+ """
+ @typing.overload
+ def __init__(self, port: Output, array: numpy.ndarray[typing.Any, numpy.dtype[typing.Any]]) -> None:
+ """
+ Constructs Tensor using port from node.
+ Type and shape will be taken from the port.
+
+ :param port: Output port from a node.
+ :type param: openvino.Output
+ :param array: C_CONTIGUOUS numpy array which will be wrapped in
+ openvino.Tensor. Array's memory is being shared wi a host.
+ Any action performed on the host memory will be reflected on this Tensor's memory!
+ :type array: numpy.array
+ """
+ @typing.overload
+ def __init__(self, port: typing.Any) -> None:
+ """
+ Constructs Tensor using port from node.
+ Type and shape will be taken from the port.
+
+ :param port: Output port from a node.
+ :type param: openvino.ConstOutput
+ """
+ @typing.overload
+ def __init__(self, port: typing.Any, array: numpy.ndarray[typing.Any, numpy.dtype[typing.Any]]) -> None:
+ """
+ Constructs Tensor using port from node.
+ Type and shape will be taken from the port.
+
+ :param port: Output port from a node.
+ :type param: openvino.ConstOutput
+ :param array: C_CONTIGUOUS numpy array which will be wrapped in
+ openvino.Tensor. Array's memory is being shared with a host.
+ Any action performed on the host memory will be reflected on this Tensor's memory!
+ :type array: numpy.array
+ """
+ @typing.overload
+ def __init__(self, other: Tensor, begin: Coordinate, end: Coordinate) -> None:
+ ...
+ @typing.overload
+ def __init__(self, other: Tensor, begin: list[int], end: list[int]) -> None:
+ ...
+ @typing.overload
+ def __init__(self, image: typing.Any) -> None:
+ """
+ Constructs Tensor from a Pillow Image.
+
+ :param image: Pillow Image to create the tensor from.
+ :type image: PIL.Image.Image
+ :Example:
+ .. code-block:: python
+
+ from PIL import Image
+ import openvino as ov
+
+ img = Image.open("example.jpg")
+ tensor = ov.Tensor(img)
+ """
+ def __repr__(self) -> str:
+ ...
+ @typing.overload
+ def copy_from(self, source_tensor: Tensor) -> None:
+ """
+ Copy source tensor's data to this tensor. Tensors should have the same element type and shape.
+
+ :param source_tensor: The source tensor from which the data will be copied.
+ :type source_tensor: openvino.Tensor
+ """
+ @typing.overload
+ def copy_from(self, source_tensor: RemoteTensorWrapper) -> None:
+ """
+ Copy source remote tensor's data to this tensor. Tensors should have the same element type.
+ In case of RoiTensor, tensors should also have the same shape.
+
+ :param source_tensor: The source remote tensor from which the data will be copied.
+ :type source_tensor: openvino.RemoteTensor
+ """
+ @typing.overload
+ def copy_from(self, source: numpy.ndarray[typing.Any, numpy.dtype[typing.Any]]) -> None:
+ """
+ Copy the source to this tensor. This tensor and the source should have the same element type.
+ Shape will be adjusted if there is a mismatch.
+ """
+ @typing.overload
+ def copy_from(self, source: list) -> None:
+ """
+ Copy the source to this tensor. This tensor and the source should have the same element type.
+ Shape will be adjusted if there is a mismatch.
+ """
+ @typing.overload
+ def copy_to(self, target_tensor: Tensor) -> None:
+ """
+ Copy tensor's data to a destination tensor. The destination tensor should have the same element type and shape.
+
+ :param target_tensor: The destination tensor to which the data will be copied.
+ :type target_tensor: openvino.Tensor
+ """
+ @typing.overload
+ def copy_to(self, target_tensor: RemoteTensorWrapper) -> None:
+ """
+ Copy tensor's data to a destination remote tensor. The destination remote tensor should have the same element type.
+ In case of RoiRemoteTensor, the destination tensor should also have the same shape.
+
+ :param target_tensor: The destination remote tensor to which the data will be copied.
+ :type target_tensor: openvino.RemoteTensor
+ """
+ def get_byte_size(self) -> int:
+ """
+ Gets Tensor's size in bytes.
+
+ :rtype: int
+ """
+ def get_element_type(self) -> Type:
+ """
+ Gets Tensor's element type.
+
+ :rtype: openvino.Type
+ """
+ def get_shape(self) -> Shape:
+ """
+ Gets Tensor's shape.
+
+ :rtype: openvino.Shape
+ """
+ def get_size(self) -> int:
+ """
+ Gets Tensor's size as total number of elements.
+
+ :rtype: int
+ """
+ def get_strides(self) -> Strides:
+ """
+ Gets Tensor's strides in bytes.
+
+ :rtype: openvino.Strides
+ """
+ def is_continuous(self) -> bool:
+ """
+ Reports whether the tensor is continuous or not.
+ :return: True if the tensor is continuous, otherwise False.
+ :rtype: bool
+ """
+ @typing.overload
+ def set_shape(self, arg0: Shape) -> None:
+ """
+ Sets Tensor's shape.
+ """
+ @typing.overload
+ def set_shape(self, arg0: list[int]) -> None:
+ """
+ Sets Tensor's shape.
+ """
+ @property
+ def byte_size(self) -> int:
+ """
+ Tensor's size in bytes.
+
+ :rtype: int
+ """
+ @property
+ def bytes_data(self) -> numpy.ndarray[typing.Any, numpy.dtype[typing.Any]]:
+ """
+ Access to Tensor's data with string Type in `np.bytes_` dtype.
+
+ Getter returns a numpy array with corresponding shape and dtype.
+ Warning: Data of string type is always a copy of underlaying memory!
+
+ Setter fills underlaying Tensor's memory by copying strings from `other`.
+ `other` must have the same size (number of elements) as the Tensor.
+ Tensor's shape is not changed by performing this operation!
+ """
+ @bytes_data.setter
+ def bytes_data(self, arg1: typing.Any) -> None:
+ ...
+ @property
+ def data(self) -> numpy.ndarray[typing.Any, numpy.dtype[typing.Any]]:
+ """
+ Access to Tensor's data.
+
+ Returns numpy array with corresponding shape and dtype.
+
+ For tensors with OpenVINO specific element type, such as u1, u4 or i4
+ it returns linear array, with uint8 / int8 numpy dtype.
+
+ For tensors with string element type, returns a numpy array of bytes
+ without any decoding.
+ To change the underlaying data use `str_data`/`bytes_data` properties
+ or the `copy_from` function.
+ Warning: Data of string type is always a copy of underlaying memory!
+
+ :rtype: numpy.array
+ """
+ @property
+ def element_type(self) -> Type:
+ """
+ Tensor's element type.
+
+ :rtype: openvino.Type
+ """
+ @property
+ def shape(self) -> Shape:
+ """
+ Tensor's shape get/set.
+ """
+ @shape.setter
+ def shape(self, arg1: list[int]) -> None:
+ ...
+ @property
+ def size(self) -> int:
+ """
+ Tensor's size as total number of elements.
+
+ :rtype: int
+ """
+ @property
+ def str_data(self) -> numpy.ndarray[typing.Any, numpy.dtype[typing.Any]]:
+ """
+ Access to Tensor's data with string Type in `np.str_` dtype.
+
+ Getter returns a numpy array with corresponding shape and dtype.
+ Warning: Data of string type is always a copy of underlaying memory!
+
+ Setter fills underlaying Tensor's memory by copying strings from `other`.
+ `other` must have the same size (number of elements) as the Tensor.
+ Tensor's shape is not changed by performing this operation!
+ """
+ @str_data.setter
+ def str_data(self, arg1: typing.Any) -> None:
+ ...
+ @property
+ def strides(self) -> Strides:
+ """
+ Tensor's strides in bytes.
+
+ :rtype: openvino.Strides
+ """
+class Type:
+ """
+ openvino.Type wraps ov::element::Type
+ """
+ bf16: typing.ClassVar[Type] # value = <Type: 'bfloat16'>
+ boolean: typing.ClassVar[Type] # value = <Type: 'char'>
+ dynamic: typing.ClassVar[Type] # value = <Type: 'dynamic'>
+ f16: typing.ClassVar[Type] # value = <Type: 'float16'>
+ f32: typing.ClassVar[Type] # value = <Type: 'float32'>
+ f4e2m1: typing.ClassVar[Type] # value = <Type: 'f4e2m1'>
+ f64: typing.ClassVar[Type] # value = <Type: 'double64'>
+ f8e4m3: typing.ClassVar[Type] # value = <Type: 'f8e4m3'>
+ f8e5m2: typing.ClassVar[Type] # value = <Type: 'f8e5m2'>
+ f8e8m0: typing.ClassVar[Type] # value = <Type: 'f8e8m0'>
+ i16: typing.ClassVar[Type] # value = <Type: 'int16_t'>
+ i32: typing.ClassVar[Type] # value = <Type: 'int32_t'>
+ i4: typing.ClassVar[Type] # value = <Type: 'int4_t'>
+ i64: typing.ClassVar[Type] # value = <Type: 'int64_t'>
+ i8: typing.ClassVar[Type] # value = <Type: 'int8_t'>
+ nf4: typing.ClassVar[Type] # value = <Type: 'nfloat4'>
+ string: typing.ClassVar[Type] # value = <Type: 'string'>
+ u1: typing.ClassVar[Type] # value = <Type: 'uint1_t'>
+ u16: typing.ClassVar[Type] # value = <Type: 'uint16_t'>
+ u32: typing.ClassVar[Type] # value = <Type: 'uint32_t'>
+ u4: typing.ClassVar[Type] # value = <Type: 'uint4_t'>
+ u64: typing.ClassVar[Type] # value = <Type: 'uint64_t'>
+ u8: typing.ClassVar[Type] # value = <Type: 'uint8_t'>
+ undefined: typing.ClassVar[Type] # value = <Type: 'dynamic'>
+ def __eq__(self, arg0: Type) -> bool:
+ ...
+ def __hash__(self) -> int:
+ ...
+ def __init__(self, dtype: typing.Any) -> None:
+ """
+ Convert numpy dtype into OpenVINO type
+
+ :param dtype: numpy dtype
+ :type dtype: numpy.dtype
+ :return: OpenVINO type object
+ :rtype: openvino.Type
+ """
+ def __repr__(self) -> str:
+ ...
+ def compatible(self, other: Type) -> bool:
+ """
+ Checks whether this element type is merge-compatible with
+ `other`.
+
+ :param other: The element type to compare this element type to.
+ :type other: openvino.Type
+ :return: `True` if element types are compatible, otherwise `False`.
+ :rtype: bool
+ """
+ def get_bitwidth(self) -> int:
+ ...
+ def get_size(self) -> int:
+ ...
+ def get_type_name(self) -> str:
+ ...
+ def is_dynamic(self) -> bool:
+ ...
+ def is_integral(self) -> bool:
+ ...
+ def is_integral_number(self) -> bool:
+ ...
+ def is_quantized(self) -> bool:
+ ...
+ def is_real(self) -> bool:
+ ...
+ def is_signed(self) -> bool:
+ ...
+ def is_static(self) -> bool:
+ ...
+ def merge(self, other: Type) -> typing.Any:
+ """
+ Merge two element types and return result if successful,
+ otherwise return None.
+
+ :param other: The element type to merge with this element type.
+ :type other: openvino.Type
+ :return: If element types are compatible return the least
+ restrictive Type, otherwise `None`.
+ :rtype: Union[openvino.Type|None]
+ """
+ def to_dtype(self) -> numpy.dtype[typing.Any]:
+ """
+ Convert Type to numpy dtype.
+
+ :return: dtype object
+ :rtype: numpy.dtype
+ """
+ def to_string(self) -> str:
+ ...
+ @property
+ def bitwidth(self) -> int:
+ ...
+ @property
+ def integral(self) -> bool:
+ ...
+ @property
+ def integral_number(self) -> bool:
+ ...
+ @property
+ def quantized(self) -> bool:
+ ...
+ @property
+ def real(self) -> bool:
+ ...
+ @property
+ def signed(self) -> bool:
+ ...
+ @property
+ def size(self) -> int:
+ ...
+ @property
+ def type_name(self) -> str:
+ ...
+class VAContext(RemoteContext):
+ def __init__(self, core: Core, display: capsule, target_tile_id: int = -1) -> None:
+ """
+ Constructs remote context object from valid VA display handle.
+
+ :param core: OpenVINO Runtime Core object.
+ :type core: openvino.Core
+ :param device: A valid `VADisplay` to create remote context from.
+ :type device: Any
+ :param target_tile_id: Desired tile id within given context for multi-tile system.
+ Default value (-1) means that root device should be used.
+ :type target_tile_id: int
+ :return: A context instance.
+ :rtype: openvino.VAContext
+ """
+ def create_tensor(self, type: Type, shape: Shape, surface: int, plane: int = 0) -> VASurfaceTensorWrapper:
+ """
+ Create remote tensor from VA surface handle.
+
+ GIL is released while running this function.
+
+ :param type: Defines the element type of the tensor.
+ :type type: openvino.Type
+ :param shape: Defines the shape of the tensor.
+ :type shape: openvino.Shape
+ :param surface: `VASurfaceID` to create tensor from.
+ :type surface: int
+ :param plane: An index of a plane inside `VASurfaceID` to create tensor from. Default: 0
+ :type plane: int
+ :return: A remote tensor instance wrapping `VASurfaceID`.
+ :rtype: openvino.VASurfaceTensor
+ """
+ def create_tensor_nv12(self, height: int, width: int, nv12_surface: int) -> tuple:
+ """
+ This function is used to obtain a NV12 tensor from NV12 VA decoder output.
+ The result contains two remote tensors for Y and UV planes of the surface.
+
+ GIL is released while running this function.
+
+ :param height: A height of Y plane.
+ :type height: int
+ :param width: A width of Y plane
+ :type width: int
+ :param nv12_surface: NV12 `VASurfaceID` to create NV12 from.
+ :type nv12_surface: int
+ :return: A pair of remote tensors for each plane.
+ :rtype: Tuple[openvino.VASurfaceTensor, openvino.VASurfaceTensor]
+ """
+class VASurfaceTensor(RemoteTensor):
+ def __repr__(self) -> str:
+ ...
+ @property
+ def data(self) -> None:
+ """
+ This property is not implemented.
+ """
+ @property
+ def plane_id(self) -> int:
+ """
+ Returns plane ID of underlying video decoder surface.
+
+ :return: Plane ID of underlying video decoder surface.
+ :rtype: int
+ """
+ @property
+ def surface_id(self) -> int:
+ """
+ Returns ID of underlying video decoder surface.
+
+ :return: VASurfaceID of the tensor.
+ :rtype: int
+ """
+class VariableState:
+ """
+ openvino.VariableState class.
+ """
+ def __repr__(self) -> str:
+ ...
+ def reset(self) -> None:
+ """
+ Reset internal variable state for relevant infer request,
+ to a value specified as default for according node.
+ """
+ @property
+ def name(self) -> str:
+ """
+ Gets name of current variable state.
+
+ :return: A string representing a state name.
+ :rtype: str
+ """
+ @property
+ def state(self) -> Tensor:
+ """
+ Gets/sets variable state.
+ """
+ @state.setter
+ def state(self, arg1: Tensor) -> None:
+ ...
+class Version:
+ """
+ openvino.Version represents version information that describes plugins and the OpenVINO library.
+ """
+ def __repr__(self) -> str:
+ ...
+ @property
+ def build_number(self) -> str:
+ """
+ :return: String with build number.
+ :rtype: str
+ """
+ @property
+ def description(self) -> str:
+ """
+ :return: Description string.
+ :rtype: str
+ """
+ @property
+ def major(self) -> int:
+ """
+ :return: OpenVINO's major version.
+ :rtype: int
+ """
+ @property
+ def minor(self) -> int:
+ """
+ :return: OpenVINO's minor version.
+ :rtype: int
+ """
+ @property
+ def patch(self) -> int:
+ """
+ :return: OpenVINO's version patch.
+ :rtype: int
+ """
+class _ConversionExtension(ConversionExtensionBase):
+ pass
+class _IDecoder:
+ pass
+def get_batch(arg0: Model) -> Dimension:
+ ...
+def get_batch(model: typing.Any) -> Dimension:
+ ...
+def get_version() -> str:
+ ...
+def save_model(model: typing.Any, output_model: typing.Any, compress_to_fp16: bool = True) -> None:
+ """
+ Save model into IR files (xml and bin). Floating point weights are compressed to FP16 by default.
+ This method saves a model to IR applying all necessary transformations that usually applied
+ in model conversion flow provided by OVC tool. Paricularly, floatting point weights are
+ compressed to FP16, debug information in model nodes are cleaned up, etc.
+
+ :param model: model which will be converted to IR representation
+ :type model: openvino.Model
+ :param output_model: path to output model file
+ :type output_model: Union[str, bytes, pathlib.Path]
+ :param compress_to_fp16: whether to compress floating point weights to FP16 (default: True). The parameter is ignored for pre-optimized models.
+ :type compress_to_fp16: bool
+
+ :Examples:
+
+ .. code-block:: python
+
+ model = convert_model('your_model.onnx')
+ save_model(model, './model.xml')
+ """
+def serialize(model: typing.Any, xml_path: typing.Any, bin_path: typing.Any = '', version: str = 'UNSPECIFIED') -> None:
+ """
+ Serialize given model into IR. The generated .xml and .bin files will be saved
+ into provided paths.
+ This method serializes model "as-is" that means no weights compression is applied.
+ It is recommended to use ov::save_model function instead of ov::serialize in all cases
+ when it is not related to debugging.
+
+ :param model: model which will be converted to IR representation
+ :type model: openvino.Model
+ :param xml_path: path where .xml file will be saved
+ :type xml_path: Union[str, bytes, pathlib.Path]
+ :param bin_path: path where .bin file will be saved (optional),
+ the same name as for xml_path will be used by default.
+ :type bin_path: Union[str, bytes, pathlib.Path]
+ :param version: version of the generated IR (optional).
+ :type version: str
+
+ Supported versions are:
+ - "UNSPECIFIED" (default) : Use the latest or model version
+ - "IR_V10" : v10 IR
+ - "IR_V11" : v11 IR
+
+ :Examples:
+
+ 1. Default IR version:
+
+ .. code-block:: python
+
+ shape = [2, 2]
+ parameter_a = ov.parameter(shape, dtype=np.float32, name="A")
+ parameter_b = ov.parameter(shape, dtype=np.float32, name="B")
+ parameter_c = ov.parameter(shape, dtype=np.float32, name="C")
+ op = (parameter_a + parameter_b) * parameter_c
+ model = Model(op, [parameter_a, parameter_b, parameter_c], "Model")
+ # IR generated with default version
+ serialize(model, xml_path="./serialized.xml", bin_path="./serialized.bin")
+ 2. IR version 11:
+
+ .. code-block:: python
+
+ parameter_a = ov.parameter(shape, dtype=np.float32, name="A")
+ parameter_b = ov.parameter(shape, dtype=np.float32, name="B")
+ parameter_c = ov.parameter(shape, dtype=np.float32, name="C")
+ op = (parameter_a + parameter_b) * parameter_c
+ model = Model(ops, [parameter_a, parameter_b, parameter_c], "Model")
+ # IR generated with default version
+ serialize(model, xml_path="./serialized.xml", bin_path="./serialized.bin", version="IR_V11")
+ """
+def set_batch(model: typing.Any, dimension: Dimension) -> None:
+ ...
+def set_batch(model: typing.Any, batch_size: int = -1) -> None:
+ ...
+def shutdown() -> None:
+ """
+ Shut down the OpenVINO by deleting all static-duration objects allocated by the library and releasing
+ dependent resources
+
+ This function should be used by advanced user to control unload the resources.
+
+ You might want to use this function if you are developing a dynamically-loaded library which should clean up all
+ resources after itself when the library is unloaded.
+ """
diff --git a/src/bindings/python/src/openvino/_pyopenvino/_offline_transformations.pyi b/src/bindings/python/src/openvino/_pyopenvino/_offline_transformations.pyi
new file mode 100644
index 00000000000..830f3f3c335
--- /dev/null
+++ b/src/bindings/python/src/openvino/_pyopenvino/_offline_transformations.pyi
@@ -0,0 +1,34 @@
+# type: ignore
+"""
+openvino._offline_transformations is a private module contains different offline passes.
+"""
+from __future__ import annotations
+import openvino._pyopenvino.op
+import typing
+__all__ = ['apply_fused_names_cleanup', 'apply_low_latency_transformation', 'apply_make_stateful_transformation', 'apply_moc_legacy_transformations', 'apply_moc_transformations', 'apply_pruning_transformation', 'compress_model_transformation', 'compress_quantize_weights_transformation', 'convert_sequence_to_tensor_iterator_transformation', 'paged_attention_transformation', 'stateful_to_stateless_transformation']
+def apply_fused_names_cleanup(model: typing.Any) -> None:
+ ...
+def apply_low_latency_transformation(model: typing.Any, use_const_initializer: bool = True) -> None:
+ ...
+def apply_make_stateful_transformation(model: typing.Any, param_res_names: dict[str, str]) -> None:
+ ...
+def apply_make_stateful_transformation(model: typing.Any, pairs_to_replace: list[tuple[openvino._pyopenvino.op.Parameter, openvino._pyopenvino.op.Result]]) -> None:
+ ...
+def apply_moc_legacy_transformations(model: typing.Any, params_with_custom_types: list[str]) -> None:
+ ...
+def apply_moc_transformations(model: typing.Any, cf: bool, smart_reshape: bool = False) -> None:
+ ...
+def apply_pruning_transformation(model: typing.Any) -> None:
+ ...
+def compress_model_transformation(model: typing.Any) -> None:
+ ...
+def compress_quantize_weights_transformation(model: typing.Any) -> None:
+ ...
+def convert_sequence_to_tensor_iterator_transformation(model: typing.Any) -> None:
+ ...
+def paged_attention_transformation(model: typing.Any, use_block_indices_inputs: bool = False, use_score_outputs: bool = False, allow_cache_rotation: bool = False) -> None:
+ ...
+def stateful_to_stateless_transformation(model: typing.Any) -> None:
+ ...
diff --git a/src/bindings/python/src/openvino/_pyopenvino/experimental.pyi b/src/bindings/python/src/openvino/_pyopenvino/experimental.pyi
new file mode 100644
index 00000000000..94abb8a3c17
--- /dev/null
+++ b/src/bindings/python/src/openvino/_pyopenvino/experimental.pyi
@@ -0,0 +1,50 @@
+# type: ignore
+"""
+openvino.experimental submodule
+"""
+from __future__ import annotations
+import openvino._pyopenvino
+__all__ = ['evaluate_as_partial_shape', 'evaluate_both_bounds', 'set_element_type', 'set_tensor_type']
+def evaluate_as_partial_shape(output: openvino._pyopenvino.Output, partial_shape: openvino._pyopenvino.PartialShape) -> bool:
+ """
+ Evaluates lower and upper value estimations for the output tensor.
+ The estimation will be represented as a partial shape object,
+ using Dimension(min, max) for each element.
+
+ :param output: Node output pointing to the tensor for estimation.
+ :type output: openvino.Output
+ :param partial_shape: The resulting estimation will be stored in this PartialShape.
+ :type partial_shape: openvino.PartialShape
+ :return: True if estimation evaluation was successful, false otherwise.
+ :rtype: bool
+ """
+def evaluate_both_bounds(output: openvino._pyopenvino.Output) -> tuple[openvino._pyopenvino.Tensor, openvino._pyopenvino.Tensor]:
+ """
+ Evaluates lower and upper value estimations of the output tensor.
+ It traverses the graph upwards to deduce the estimation.
+
+ :param output: Node output pointing to the tensor for estimation.
+ :type output: openvino.Output
+ :return: Tensors representing the lower and upper bound value estimations.
+ :rtype: Tuple[openvino.Tensor, openvino.Tensor]
+ """
+def set_element_type(tensor: openvino._pyopenvino.DescriptorTensor, element_type: openvino._pyopenvino.Type) -> None:
+ """
+ Sets element type for a tensor descriptor in the OV model graph.
+
+ :param tensor: The tensor descriptor whose element type is to be set.
+ :type tensor: openvino.Tensor
+ :param element_type: A new element type of the tensor descriptor.
+ :type element_type: openvino.Type
+ """
+def set_tensor_type(tensor: openvino._pyopenvino.DescriptorTensor, element_type: openvino._pyopenvino.Type, partial_shape: openvino._pyopenvino.PartialShape) -> None:
+ """
+ Changes element type and partial shape of a tensor descriptor in the OV model graph.
+
+ :param tensor: The tensor descriptor whose element type is to be set.
+ :type tensor: openvino.Tensor
+ :param element_type: A new element type of the tensor descriptor.
+ :type element_type: openvino.Type
+ :param partial_shape: A new partial shape of the tensor desriptor.
+ :type partial_shape: openvino.PartialShape
+ """
diff --git a/src/bindings/python/src/openvino/_pyopenvino/frontend.pyi b/src/bindings/python/src/openvino/_pyopenvino/frontend.pyi
new file mode 100644
index 00000000000..c0cdbaeaa1b
--- /dev/null
+++ b/src/bindings/python/src/openvino/_pyopenvino/frontend.pyi
@@ -0,0 +1,18 @@
+# type: ignore
+from __future__ import annotations
+import openvino._pyopenvino
+import typing
+__all__ = ['OpExtension']
+class OpExtension(openvino._pyopenvino._ConversionExtension):
+ @typing.overload
+ def __init__(self, fw_type_name: str, attr_names_map: dict[str, str] = {}, attr_values_map: dict[str, typing.Any] = {}) -> None:
+ ...
+ @typing.overload
+ def __init__(self, ov_type_name: str, fw_type_name: str, attr_names_map: dict[str, str] = {}, attr_values_map: dict[str, typing.Any] = {}) -> None:
+ ...
+ @typing.overload
+ def __init__(self, fw_type_name: str, in_names_vec: list[str], out_names_vec: list[str], attr_names_map: dict[str, str] = {}, attr_values_map: dict[str, typing.Any] = {}) -> None:
+ ...
+ @typing.overload
+ def __init__(self, ov_type_name: str, fw_type_name: str, in_names_vec: list[str], out_names_vec: list[str], attr_names_map: dict[str, str] = {}, attr_values_map: dict[str, typing.Any] = {}) -> None:
+ ...
diff --git a/src/bindings/python/src/openvino/_pyopenvino/layout_helpers.pyi b/src/bindings/python/src/openvino/_pyopenvino/layout_helpers.pyi
new file mode 100644
index 00000000000..62639c7ba79
--- /dev/null
+++ b/src/bindings/python/src/openvino/_pyopenvino/layout_helpers.pyi
@@ -0,0 +1,36 @@
+# type: ignore
+"""
+openvino.layout_helpers
+"""
+from __future__ import annotations
+import openvino._pyopenvino
+import typing
+__all__ = ['batch_idx', 'channels_idx', 'depth_idx', 'get_layout', 'has_batch', 'has_channels', 'has_depth', 'has_height', 'has_width', 'height_idx', 'set_layout', 'width_idx']
+def batch_idx(layout: openvino._pyopenvino.Layout) -> int:
+ ...
+def channels_idx(layout: openvino._pyopenvino.Layout) -> int:
+ ...
+def depth_idx(layout: openvino._pyopenvino.Layout) -> int:
+ ...
+def get_layout(port: openvino._pyopenvino.Output) -> openvino._pyopenvino.Layout:
+ ...
+def get_layout(port: openvino._pyopenvino.ConstOutput) -> openvino._pyopenvino.Layout:
+ ...
+def has_batch(layout: openvino._pyopenvino.Layout) -> bool:
+ ...
+def has_channels(layout: openvino._pyopenvino.Layout) -> bool:
+ ...
+def has_depth(layout: openvino._pyopenvino.Layout) -> bool:
+ ...
+def has_height(layout: openvino._pyopenvino.Layout) -> bool:
+ ...
+def has_width(layout: openvino._pyopenvino.Layout) -> bool:
+ ...
+def height_idx(layout: openvino._pyopenvino.Layout) -> int:
+ ...
+def set_layout(port: openvino._pyopenvino.Output, layout: openvino._pyopenvino.Layout) -> None:
+ ...
+def width_idx(layout: openvino._pyopenvino.Layout) -> int:
+ ...
diff --git a/src/bindings/python/src/openvino/_pyopenvino/op/__init__.pyi b/src/bindings/python/src/openvino/_pyopenvino/op/__init__.pyi
new file mode 100644
index 00000000000..972364cea52
--- /dev/null
+++ b/src/bindings/python/src/openvino/_pyopenvino/op/__init__.pyi
@@ -0,0 +1,468 @@
+# type: ignore
+"""
+Package ngraph.impl.op that wraps ov::op
+"""
+from __future__ import annotations
+from . import util
+import numpy
+import openvino._pyopenvino
+import typing
+__all__ = ['Constant', 'Parameter', 'Result', 'assign', 'if_op', 'loop', 'read_value', 'tensor_iterator', 'util']
+class Constant(openvino._pyopenvino.Node):
+ """
+ openvino.op.Constant wraps ov::op::v0::Constant
+ """
+ @typing.overload
+ def __init__(self, array: numpy.ndarray[typing.Any, numpy.dtype[typing.Any]], shared_memory: bool = False) -> None:
+ ...
+ @typing.overload
+ def __init__(self, tensor: openvino._pyopenvino.Tensor, shared_memory: bool = True) -> None:
+ ...
+ @typing.overload
+ def __init__(self, arg0: openvino._pyopenvino.Type, arg1: openvino._pyopenvino.Shape, arg2: list[str]) -> None:
+ ...
+ @typing.overload
+ def __init__(self, arg0: openvino._pyopenvino.Type, arg1: openvino._pyopenvino.Shape, arg2: list[...]) -> None:
+ ...
+ @typing.overload
+ def __init__(self, arg0: openvino._pyopenvino.Type, arg1: openvino._pyopenvino.Shape, arg2: list[float]) -> None:
+ ...
+ @typing.overload
+ def __init__(self, arg0: openvino._pyopenvino.Type, arg1: openvino._pyopenvino.Shape, arg2: list[float]) -> None:
+ ...
+ @typing.overload
+ def __init__(self, arg0: openvino._pyopenvino.Type, arg1: openvino._pyopenvino.Shape, arg2: list[int]) -> None:
+ ...
+ @typing.overload
+ def __init__(self, arg0: openvino._pyopenvino.Type, arg1: openvino._pyopenvino.Shape, arg2: list[int]) -> None:
+ ...
+ @typing.overload
+ def __init__(self, arg0: openvino._pyopenvino.Type, arg1: openvino._pyopenvino.Shape, arg2: list[int]) -> None:
+ ...
+ @typing.overload
+ def __init__(self, arg0: openvino._pyopenvino.Type, arg1: openvino._pyopenvino.Shape, arg2: list[int]) -> None:
+ ...
+ @typing.overload
+ def __init__(self, arg0: openvino._pyopenvino.Type, arg1: openvino._pyopenvino.Shape, arg2: list[int]) -> None:
+ ...
+ @typing.overload
+ def __init__(self, arg0: openvino._pyopenvino.Type, arg1: openvino._pyopenvino.Shape, arg2: list[int]) -> None:
+ ...
+ @typing.overload
+ def __init__(self, arg0: openvino._pyopenvino.Type, arg1: openvino._pyopenvino.Shape, arg2: list[int]) -> None:
+ ...
+ @typing.overload
+ def __init__(self, arg0: openvino._pyopenvino.Type, arg1: openvino._pyopenvino.Shape, arg2: list[int]) -> None:
+ ...
+ def __repr__(self) -> str:
+ ...
+ def get_byte_size(self) -> int:
+ ...
+ def get_data(self, *, dtype: typing.Any = None, copy: bool = False) -> numpy.ndarray[typing.Any, numpy.dtype[typing.Any]]:
+ """
+ Access to Constant's data. Returns numpy array with corresponding shape.
+
+ Function tries to return a view by default, if not possible due
+ to types mismatch (between the Constant's type and `dtype`)
+ or when `copy=True`, then make a copy of data.
+
+ If `dtype` is not specified, it's inherited from Constant itself.
+
+ For Constants with OpenVINO specific element type, such as u1,
+ it returns linear array (as view) with uint8 / int8 numpy dtype.
+ In such cases if `dtype` is used, function also creates a copy and
+ unpacks the data.
+
+ Note: can be used to upcast BF16 data type to float32 or float64.
+
+ :param dtype: Targeted data type.
+ :type dtype: numpy.dtype, optional, keyword-only
+ :param copy: Enable or disable copy of data.
+ :type copy: bool, optional, keyword-only
+ :rtype: numpy.array
+ """
+ def get_strides(self) -> openvino._pyopenvino.Strides:
+ """
+ Constant's strides in bytes.
+
+ :rtype: openvino.Strides
+ """
+ def get_tensor_view(self) -> openvino._pyopenvino.Tensor:
+ """
+ Get view on constant data as tensor.
+
+ :rtype: openvino.Tensor
+ """
+ def get_value_strings(self) -> list[str]:
+ ...
+ def get_vector(self) -> numpy.ndarray[typing.Any, numpy.dtype[typing.Any]]:
+ ...
+ @property
+ def data(self) -> numpy.ndarray[typing.Any, numpy.dtype[typing.Any]]:
+ """
+ Access to Constant's data - creates a view of data.
+
+ Returns numpy array with corresponding shape and dtype.
+ For Constants with openvino specific element type, such as u1,
+ it returns linear array, with uint8 / int8 numpy dtype.
+
+ Note: this access method reflects shared memory if it was applied during initialization.
+
+ :rtype: numpy.array
+ """
+ @property
+ def strides(self) -> openvino._pyopenvino.Strides:
+ """
+ Constant's strides in bytes.
+
+ :rtype: openvino.Strides
+ """
+ @property
+ def tensor_view(self) -> openvino._pyopenvino.Tensor:
+ """
+ Get view on constant data as tensor.
+
+ :rtype: openvino.Tensor
+ """
+class Parameter(openvino._pyopenvino.Node):
+ """
+ openvino.op.Parameter wraps ov::op::v0::Parameter
+ """
+ element_type: openvino._pyopenvino.Type
+ layout: openvino._pyopenvino.Layout
+ partial_shape: openvino._pyopenvino.PartialShape
+ @typing.overload
+ def __init__(self, arg0: openvino._pyopenvino.Type, arg1: openvino._pyopenvino.Shape) -> None:
+ ...
+ @typing.overload
+ def __init__(self, arg0: openvino._pyopenvino.Type, arg1: openvino._pyopenvino.PartialShape) -> None:
+ ...
+ @typing.overload
+ def __repr__(self: openvino._pyopenvino.Node) -> str:
+ ...
+ @typing.overload
+ def __repr__(self) -> str:
+ ...
+ def get_element_type(self) -> openvino._pyopenvino.Type:
+ ...
+ def get_layout(self) -> openvino._pyopenvino.Layout:
+ ...
+ @typing.overload
+ def get_partial_shape(self) -> openvino._pyopenvino.PartialShape:
+ ...
+ @typing.overload
+ def get_partial_shape(self) -> openvino._pyopenvino.PartialShape:
+ ...
+ def set_element_type(self, element_type: openvino._pyopenvino.Type) -> None:
+ ...
+ def set_layout(self, layout: openvino._pyopenvino.Layout) -> None:
+ ...
+ def set_partial_shape(self, partial_shape: openvino._pyopenvino.PartialShape) -> None:
+ ...
+class Result(openvino._pyopenvino.Node):
+ """
+ openvino.op.Result wraps ov::op::v0::Result
+ """
+ layout: openvino._pyopenvino.Layout
+ def __init__(self, arg0: openvino._pyopenvino.Output) -> None:
+ ...
+ def __repr__(self) -> str:
+ ...
+ def get_layout(self) -> openvino._pyopenvino.Layout:
+ ...
+ def get_output_element_type(self, index: int) -> openvino._pyopenvino.Type:
+ ...
+ def get_output_partial_shape(self, index: int) -> openvino._pyopenvino.PartialShape:
+ ...
+ def set_layout(self, layout: openvino._pyopenvino.Layout) -> None:
+ ...
+class _PagedAttentionExtension(openvino._pyopenvino.Node):
+ """
+ Experimental extention for PagedAttention operation. Use with care: no backward compatibility is guaranteed in future releases.
+ """
+ def __init__(self, arg0: list[openvino._pyopenvino.Output]) -> None:
+ ...
+class assign(openvino._pyopenvino.Node):
+ """
+ openvino.op.assign wraps ov::op::v6::Assign
+ """
+ @typing.overload
+ def __init__(self) -> None:
+ ...
+ @typing.overload
+ def __init__(self, new_value: typing.Any, variable: util.Variable, name: str = '') -> None:
+ ...
+ @typing.overload
+ def __init__(self, new_value: typing.Any, variable_id: str, name: str = '') -> None:
+ ...
+ def __repr__(self) -> str:
+ ...
+ def get_variable_id(self) -> str:
+ """
+ Gets variable id.
+
+ :return: variable id.
+ :rtype: str
+ """
+class if_op(openvino._pyopenvino.Node):
+ """
+ openvino.impl.op.If wraps ov::op::v0::If
+ """
+ @typing.overload
+ def __init__(self) -> None:
+ ...
+ @typing.overload
+ def __init__(self, execution_condition: openvino._pyopenvino.Output) -> None:
+ """
+ Constructs If with condition.
+
+ :param execution_condition: condition node.
+ :type execution_condition: openvino.Output
+
+ :rtype: openvino.impl.op.If
+ """
+ @typing.overload
+ def __init__(self, execution_condition: openvino._pyopenvino.Node) -> None:
+ """
+ Constructs If with condition.
+
+ :param execution_condition: condition node.
+ :type execution_condition: openvino.Node
+
+ :rtype: openvino.impl.op.If
+ """
+ def __repr__(self) -> str:
+ ...
+ def get_else_body(self) -> typing.Any:
+ """
+ Gets else_body as Model object.
+
+ :return: else_body as Model object.
+ :rtype: openvino.Model
+ """
+ def get_function(self, index: int) -> typing.Any:
+ """
+ Gets internal sub-graph by index in MultiSubGraphOp.
+
+ :param index: sub-graph's index in op.
+ :type index: int
+
+ :return: Model with sub-graph.
+ :rtype: openvino.Model
+ """
+ def get_input_descriptions(self, index: int) -> list:
+ """
+ Gets list with connections between operation inputs and internal sub-graph parameters.
+
+ :param index: index of internal sub-graph.
+ :type index: int
+
+ :return: list of input descriptions.
+ :rtype: list[Union[openvino.op.util.MergedInputDescription,
+ openvino.op.util.InvariantInputDescription,
+ openvino.op.util.SliceInputDescription]]
+ """
+ def get_output_descriptions(self, index: int) -> list:
+ """
+ Gets list with connections between operation outputs and internal sub-graph parameters.
+
+ :param index: index of internal sub-graph.
+ :type index: int
+
+ :return: list of output descriptions.
+ :rtype: list[Union[openvino.op.util.BodyOutputDescription,
+ openvino.op.util.ConcatOutputDescription]]
+ """
+ def get_then_body(self) -> typing.Any:
+ """
+ Gets then_body as Model object.
+
+ :return: then_body as Model object.
+ :rtype: openvino.Model
+ """
+ def set_else_body(self, body: typing.Any) -> None:
+ """
+ Sets new Model object as new else_body.
+
+ :param body: new body for 'else' branch.
+ :type body: openvino.Model
+
+ :rtype: None
+ """
+ def set_function(self, index: int, func: typing.Any) -> None:
+ """
+ Adds sub-graph to MultiSubGraphOp.
+
+ :param index: index of new sub-graph.
+ :type index: int
+
+ :param func: func new sub_graph as a Model.
+ :type func: openvino.Model
+
+ :rtype: None
+ """
+ def set_input(self, value: openvino._pyopenvino.Output, then_parameter: Parameter, else_parameter: Parameter) -> None:
+ """
+ Sets new input to the operation associated with parameters of each sub-graphs.
+
+ :param value: input to operation.
+ :type value: openvino.Output
+
+ :param then_result: parameter for then_body or nullptr.
+ :type then_result: openvino.Node
+
+ :param else_result: parameter for else_body or nullptr.
+ :type else_result: openvino.Node
+
+ :rtype: None
+ """
+ def set_input_descriptions(self, index: int, inputs: list) -> None:
+ """
+ Sets list with connections between operation inputs and internal sub-graph parameters.
+
+ :param index: index of internal sub-graph.
+ :type index: int
+
+ :param inputs: list of input descriptions.
+ :type inputs: list[Union[openvino.op.util.MergedInputDescription,
+ openvino.op.util.InvariantInputDescription,
+ openvino.op.util.SliceInputDescription]]
+
+ :rtype: None
+ """
+ def set_output(self, then_result: Result, else_result: Result) -> openvino._pyopenvino.Output:
+ """
+ Sets new output from the operation associated with results of each sub-graphs.
+
+ :param then_result: result from then_body.
+ :type then_result: op.Result
+
+ :param else_result: result from else_body.
+ :type else_result: op.Result
+
+ :return: output from operation.
+ :rtype: openvino.Output
+ """
+ def set_output_descriptions(self, index: int, outputs: list) -> None:
+ """
+ Sets list with connections between operation outputs and internal sub-graph parameters.
+
+ :param index: index of internal sub-graph.
+ :type index: int
+
+ :param outputs: list of output descriptions.
+ :type outputs: list[Union[openvino.op.util.BodyOutputDescription,
+ openvino.op.util.ConcatOutputDescription]]
+
+ :rtype: None
+ """
+ def set_then_body(self, body: typing.Any) -> None:
+ """
+ Sets new Model object as new then_body.
+
+ :param body: new body for 'then' branch.
+ :type body: openvino.Model
+
+ :rtype: None
+ """
+class loop(openvino._pyopenvino.Node):
+ """
+ openvino.impl.op.Loop wraps ov::op::v0::Loop
+ """
+ @typing.overload
+ def __init__(self) -> None:
+ ...
+ @typing.overload
+ def __init__(self, trip_count: openvino._pyopenvino.Output, execution_condition: openvino._pyopenvino.Output) -> None:
+ ...
+ @typing.overload
+ def __init__(self, trip_count: openvino._pyopenvino.Node, execution_condition: openvino._pyopenvino.Node) -> None:
+ ...
+ def __repr__(self) -> str:
+ ...
+ def get_concatenated_slices(self, value: openvino._pyopenvino.Output, start: int, stride: int, part_size: int, end: int, axis: int) -> openvino._pyopenvino.Output:
+ ...
+ def get_function(self) -> typing.Any:
+ ...
+ def get_input_descriptions(self) -> list:
+ ...
+ def get_iter_value(self, body_value: openvino._pyopenvino.Output, iteration: int = -1) -> openvino._pyopenvino.Output:
+ ...
+ def get_num_iterations(self) -> int:
+ ...
+ def get_output_descriptions(self) -> list:
+ ...
+ def get_special_body_ports(self) -> list:
+ ...
+ def set_function(self, func: typing.Any) -> None:
+ ...
+ def set_input_descriptions(self, inputs: list) -> None:
+ ...
+ def set_invariant_input(self, body_parameter: Parameter, value: openvino._pyopenvino.Output) -> None:
+ ...
+ def set_merged_input(self, body_parameter: Parameter, initial_value: openvino._pyopenvino.Output, successive_value: openvino._pyopenvino.Output) -> None:
+ ...
+ def set_output_descriptions(self, outputs: list) -> None:
+ ...
+ def set_sliced_input(self, parameter: Parameter, value: openvino._pyopenvino.Output, start: int, stride: int, part_size: int, end: int, axis: int) -> None:
+ ...
+ def set_special_body_ports(self, special_body_ports: list) -> None:
+ ...
+class read_value(openvino._pyopenvino.Node):
+ """
+ openvino.op.read_value wraps ov::op::v6::ReadValue
+ """
+ @typing.overload
+ def __init__(self) -> None:
+ ...
+ @typing.overload
+ def __init__(self, new_value: typing.Any, variable: util.Variable) -> None:
+ ...
+ @typing.overload
+ def __init__(self, variable: util.Variable) -> None:
+ ...
+ def __repr__(self) -> str:
+ ...
+ def get_variable_id(self) -> str:
+ """
+ Gets variable id.
+
+ :return: variable id.
+ :rtype: str
+ """
+class tensor_iterator(openvino._pyopenvino.Node):
+ """
+ openvino.impl.op.TensorIterator wraps ov::op::v0::TensorIterator
+ """
+ def __init__(self) -> None:
+ ...
+ def __repr__(self) -> str:
+ ...
+ def get_body(self) -> typing.Any:
+ ...
+ def get_concatenated_slices(self, value: openvino._pyopenvino.Output, start: int, stride: int, part_size: int, end: int, axis: int) -> openvino._pyopenvino.Output:
+ ...
+ def get_function(self) -> typing.Any:
+ ...
+ def get_input_descriptions(self) -> list:
+ ...
+ def get_iter_value(self, body_value: openvino._pyopenvino.Output, iteration: int = -1) -> openvino._pyopenvino.Output:
+ ...
+ def get_num_iterations(self) -> int:
+ ...
+ def get_output_descriptions(self) -> list:
+ ...
+ def set_body(self, body: typing.Any) -> None:
+ ...
+ def set_function(self, func: typing.Any) -> None:
+ ...
+ def set_input_descriptions(self, inputs: list) -> None:
+ ...
+ def set_invariant_input(self, body_parameter: Parameter, value: openvino._pyopenvino.Output) -> None:
+ ...
+ def set_merged_input(self, body_parameter: Parameter, initial_value: openvino._pyopenvino.Output, successive_value: openvino._pyopenvino.Output) -> None:
+ ...
+ def set_output_descriptions(self, outputs: list) -> None:
+ ...
+ def set_sliced_input(self, parameter: Parameter, value: openvino._pyopenvino.Output, start: int, stride: int, part_size: int, end: int, axis: int) -> None:
+ ...
diff --git a/src/bindings/python/src/openvino/_pyopenvino/op/util.pyi b/src/bindings/python/src/openvino/_pyopenvino/op/util.pyi
new file mode 100644
index 00000000000..e4a433f1363
--- /dev/null
+++ b/src/bindings/python/src/openvino/_pyopenvino/op/util.pyi
@@ -0,0 +1,227 @@
+# type: ignore
+"""
+module openvino.op.util
+"""
+from __future__ import annotations
+import openvino._pyopenvino
+import typing
+__all__ = ['ArithmeticReduction', 'BinaryElementwiseArithmetic', 'BinaryElementwiseComparison', 'BinaryElementwiseLogical', 'BodyOutputDescription', 'ConcatOutputDescription', 'IndexReduction', 'InputDescription', 'InvariantInputDescription', 'MergedInputDescription', 'OutputDescription', 'SliceInputDescription', 'UnaryElementwiseArithmetic', 'Variable', 'VariableInfo']
+class ArithmeticReduction:
+ reduction_axes: openvino._pyopenvino.AxisSet
+ def __repr__(self) -> str:
+ ...
+ def get_reduction_axes(self) -> openvino._pyopenvino.AxisSet:
+ ...
+ def set_reduction_axes(self, arg0: openvino._pyopenvino.AxisSet) -> None:
+ ...
+class BinaryElementwiseArithmetic:
+ def __repr__(self) -> str:
+ ...
+class BinaryElementwiseComparison:
+ def __repr__(self) -> str:
+ ...
+class BinaryElementwiseLogical:
+ def __repr__(self) -> str:
+ ...
+class BodyOutputDescription(OutputDescription):
+ """
+ openvino.impl.op.util.BodyOutputDescription wraps ov::op::util::BodyOutputDescription
+ """
+ @typing.overload
+ def __init__(self) -> None:
+ ...
+ @typing.overload
+ def __init__(self, body_value_index: int, output_index: int, iteration: int = -1) -> None:
+ ...
+ def __repr__(self) -> str:
+ ...
+ def copy(self) -> OutputDescription:
+ ...
+ def get_type_info(self) -> openvino._pyopenvino.DiscreteTypeInfo:
+ ...
+ @property
+ def body_value_index(self) -> int:
+ ...
+ @property
+ def iteration(self) -> int:
+ ...
+ @property
+ def output_index(self) -> int:
+ ...
+class ConcatOutputDescription(OutputDescription):
+ """
+ openvino.impl.op.util.ConcatOutputDescription wraps ov::op::util::ConcatOutputDescription
+ """
+ @typing.overload
+ def __init__(self) -> None:
+ ...
+ @typing.overload
+ def __init__(self, body_value_index: int, output_index: int, start: int, stride: int, part_size: int, end: int, axis: int) -> None:
+ ...
+ def __repr__(self) -> str:
+ ...
+ def copy(self) -> OutputDescription:
+ ...
+ def get_type_info(self) -> openvino._pyopenvino.DiscreteTypeInfo:
+ ...
+ @property
+ def axis(self) -> int:
+ ...
+ @property
+ def body_value_index(self) -> int:
+ ...
+ @property
+ def end(self) -> int:
+ ...
+ @property
+ def output_index(self) -> int:
+ ...
+ @property
+ def part_size(self) -> int:
+ ...
+ @property
+ def start(self) -> int:
+ ...
+ @property
+ def stride(self) -> int:
+ ...
+class IndexReduction:
+ index_element_type: openvino._pyopenvino.Type
+ reduction_axis: int
+ def __repr__(self) -> str:
+ ...
+ def get_index_element_type(self) -> openvino._pyopenvino.Type:
+ ...
+ def get_reduction_axis(self) -> int:
+ ...
+ def set_index_element_type(self, arg0: openvino._pyopenvino.Type) -> None:
+ ...
+ def set_reduction_axis(self, arg0: int) -> None:
+ ...
+class InputDescription:
+ def __init__(self) -> None:
+ ...
+ def __repr__(self) -> str:
+ ...
+ def copy(self) -> InputDescription:
+ ...
+class InvariantInputDescription(InputDescription):
+ """
+ openvino.impl.op.util.InvariantInputDescription wraps ov::op::util::InvariantInputDescription
+ """
+ @typing.overload
+ def __init__(self) -> None:
+ ...
+ @typing.overload
+ def __init__(self, input_index: int, body_parameter_index: int) -> None:
+ ...
+ def __repr__(self) -> str:
+ ...
+ def copy(self) -> InputDescription:
+ ...
+ def get_type_info(self) -> openvino._pyopenvino.DiscreteTypeInfo:
+ ...
+ @property
+ def body_parameter_index(self) -> int:
+ ...
+ @property
+ def input_index(self) -> int:
+ ...
+class MergedInputDescription(InputDescription):
+ """
+ openvino.impl.op.util.MergedInputDescription wraps ov::op::util::MergedInputDescription
+ """
+ @typing.overload
+ def __init__(self) -> None:
+ ...
+ @typing.overload
+ def __init__(self, input_index: int, body_parameter_index: int, body_value_index: int) -> None:
+ ...
+ def __repr__(self) -> str:
+ ...
+ def copy(self) -> InputDescription:
+ ...
+ def get_type_info(self) -> openvino._pyopenvino.DiscreteTypeInfo:
+ ...
+ @property
+ def body_parameter_index(self) -> int:
+ ...
+ @property
+ def body_value_index(self) -> int:
+ ...
+ @property
+ def input_index(self) -> int:
+ ...
+class OutputDescription:
+ def __init__(self) -> None:
+ ...
+ def __repr__(self) -> str:
+ ...
+ def copy(self) -> OutputDescription:
+ ...
+class SliceInputDescription(InputDescription):
+ """
+ openvino.impl.op.util.SliceInputDescription wraps ov::op::util::SliceInputDescription
+ """
+ @typing.overload
+ def __init__(self) -> None:
+ ...
+ @typing.overload
+ def __init__(self, input_index: int, body_parameter_index: int, start: int, stride: int, part_size: int, end: int, axis: int) -> None:
+ ...
+ def __repr__(self) -> str:
+ ...
+ def copy(self) -> InputDescription:
+ ...
+ def get_type_info(self) -> openvino._pyopenvino.DiscreteTypeInfo:
+ ...
+ @property
+ def axis(self) -> int:
+ ...
+ @property
+ def body_parameter_index(self) -> int:
+ ...
+ @property
+ def end(self) -> int:
+ ...
+ @property
+ def input_index(self) -> int:
+ ...
+ @property
+ def part_size(self) -> int:
+ ...
+ @property
+ def start(self) -> int:
+ ...
+ @property
+ def stride(self) -> int:
+ ...
+class UnaryElementwiseArithmetic:
+ def __repr__(self) -> str:
+ ...
+class Variable:
+ """
+ openvino.op.util.Variable wraps ov::op::util::Variable
+ """
+ def __init__(self, info: VariableInfo) -> None:
+ ...
+ def __repr__(self) -> str:
+ ...
+ def get_info(self) -> VariableInfo:
+ ...
+ def update(self, variable_info: VariableInfo) -> None:
+ ...
+ @property
+ def info(self) -> VariableInfo:
+ ...
+class VariableInfo:
+ """
+ openvino.op.util.VariableInfo wraps ov::op::util::VariableInfo
+ """
+ data_shape: openvino._pyopenvino.PartialShape
+ data_type: openvino._pyopenvino.Type
+ variable_id: str
+ def __init__(self) -> None:
+ ...
+ def __repr__(self) -> str:
+ ...
diff --git a/src/bindings/python/src/openvino/_pyopenvino/passes.pyi b/src/bindings/python/src/openvino/_pyopenvino/passes.pyi
new file mode 100644
index 00000000000..688e3d48e5c
--- /dev/null
+++ b/src/bindings/python/src/openvino/_pyopenvino/passes.pyi
@@ -0,0 +1,1131 @@
+# type: ignore
+"""
+Package openvino.passes wraps ov::passes
+"""
+from __future__ import annotations
+import openvino._pyopenvino
+import openvino._pyopenvino.op
+import typing
+__all__ = ['AnyInput', 'BackwardGraphRewrite', 'ConstantFolding', 'ConvertFP32ToFP16', 'GraphRewrite', 'LowLatency2', 'MakeStateful', 'Manager', 'Matcher', 'MatcherPass', 'ModelPass', 'Optional', 'Or', 'PassBase', 'PatternSymbolValue', 'Predicate', 'Serialize', 'Version', 'VisualizeTree', 'WrapType', 'consumers_count', 'has_static_dim', 'has_static_dims', 'has_static_rank', 'has_static_shape', 'rank_equals', 'rank_more_than', 'shape_matches', 'type_matches', 'type_matches_any']
+class AnyInput(openvino._pyopenvino.Node):
+ """
+ openvino.passes.AnyInput wraps ov::pass::pattern::op::Label
+ """
+ @typing.overload
+ def __init__(self) -> None:
+ """
+ Create pattern AnyInput operation which is used to match any type of node.
+ """
+ @typing.overload
+ def __init__(self, predicate: typing.Callable[[openvino._pyopenvino.Output], bool]) -> None:
+ """
+ Create pattern AnyInput operation which is used to match any type of node.
+
+ :param predicate: Function that performs additional checks for matching.
+ :type predicate: function
+ """
+ @typing.overload
+ def __init__(self, predicate: Predicate) -> None:
+ """
+ Create pattern AnyInput operation which is used to match any type of node.
+
+ :param predicate: Function that performs additional checks for matching.
+ :type predicate: function
+ """
+ def __repr__(self) -> str:
+ ...
+class BackwardGraphRewrite(GraphRewrite, ModelPass, PassBase):
+ """
+ openvino.passes.BackwardGraphRewrite executes sequence of MatcherPass transformations in reversed topological order
+ """
+ @typing.overload
+ def __init__(self) -> None:
+ ...
+ @typing.overload
+ def __init__(self, matcher_pass: MatcherPass) -> None:
+ """
+ Register single MatcherPass pass inside BackwardGraphRewrite.
+
+ :param pass: openvino.passes.MatcherPass instance
+ :type pass: openvino.passes.MatcherPass
+ """
+ def __repr__(self) -> str:
+ ...
+ def add_matcher(self, matcher_pass: MatcherPass) -> MatcherPass:
+ """
+ Register single MatcherPass pass inside BackwardGraphRewrite.
+
+ :param pass: openvino.passes.MatcherPass instance
+ :type pass: openvino.passes.MatcherPass
+ """
+class ConstantFolding(ModelPass, PassBase):
+ """
+ openvino.passes.ConstantFolding transformation
+ """
+ def __init__(self) -> None:
+ ...
+ def __repr__(self) -> str:
+ ...
+class ConvertFP32ToFP16(ModelPass, PassBase):
+ """
+ openvino.passes.ConvertFP32ToFP16 transformation
+ """
+ def __init__(self) -> None:
+ ...
+ def __repr__(self) -> str:
+ ...
+class GraphRewrite(ModelPass, PassBase):
+ """
+ openvino.passes.GraphRewrite executes sequence of MatcherPass transformations in topological order
+ """
+ @typing.overload
+ def __init__(self) -> None:
+ ...
+ @typing.overload
+ def __init__(self, matcher_pass: MatcherPass) -> None:
+ """
+ Register single MatcherPass pass inside GraphRewrite.
+
+ :param pass: openvino.passes.MatcherPass instance
+ :type pass: openvino.passes.MatcherPass
+ """
+ def add_matcher(self, matcher_pass: MatcherPass) -> MatcherPass:
+ """
+ Register single MatcherPass pass inside GraphRewrite.
+
+ :param pass: openvino.passes.MatcherPass instance
+ :type pass: openvino.passes.MatcherPass
+ """
+class LowLatency2(ModelPass, PassBase):
+ """
+ openvino.passes.LowLatency2 transformation
+ """
+ def __init__(self, use_const_initializer: bool = True) -> None:
+ """
+ Create LowLatency2 pass which is used for changing the structure of the model,
+ which contains TensorIterator/Loop operations.
+ The transformation finds all TensorIterator/Loop layers in the network,
+ processes all back edges that describe a connection between Result and Parameter of the TensorIterator/Loop bodies,
+ and inserts ReadValue and Assign layers at the input and output corresponding to this back edge.
+
+ :param use_const_initializer: Changes the type of the initializing subgraph for ReadValue operations.
+ If "true", then the transformation inserts Constant before ReadValue operation.
+ If "false, then the transformation leaves existed initializing subgraph for ReadValue operation.
+ :type use_const_initializer: bool
+ """
+ def __repr__(self) -> str:
+ ...
+class MakeStateful(ModelPass, PassBase):
+ """
+ openvino.passes.MakeStateful transformation
+ """
+ @typing.overload
+ def __init__(self, pairs_to_replace: list[tuple[openvino._pyopenvino.op.Parameter, openvino._pyopenvino.op.Result]]) -> None:
+ """
+ The transformation replaces the provided pairs Parameter and Result with openvino Memory operations ReadValue and Assign.
+
+ :param pairs_to_replace:
+ :type pairs_to_replace: List[Tuple[op.Parameter, op.Result]
+ """
+ @typing.overload
+ def __init__(self, pairs_to_replace: dict[str, str]) -> None:
+ """
+ The transformation replaces the provided pairs Parameter and Result with openvino Memory operations ReadValue and Assign.
+
+ :param pairs_to_replace: a dictionary of names of the provided Parameter and Result operations.
+ :type pairs_to_replace: Dict[str, str]
+ """
+ def __repr__(self) -> str:
+ ...
+class Manager:
+ """
+ openvino.passes.Manager executes sequence of transformation on a given Model
+ """
+ def __init__(self) -> None:
+ ...
+ def __repr__(self) -> str:
+ ...
+ def register_pass(self, transformation: PassBase) -> PassBase:
+ """
+ Register pass instance for execution. Execution order matches the registration order.
+
+ :param transformation: transformation instance.
+ :type transformation: openvino.passes.PassBase
+ """
+ def run_passes(self, model: typing.Any) -> None:
+ """
+ Executes sequence of transformations on given Model.
+
+ :param model: openvino.Model to be transformed.
+ :type model: openvino.Model
+ """
+ def set_per_pass_validation(self, new_state: bool) -> None:
+ """
+ Enables or disables Model validation after each pass execution.
+
+ :param new_state: flag which enables or disables model validation.
+ :type new_state: bool
+ """
+class Matcher:
+ """
+ openvino.passes.Matcher wraps ov::pass::pattern::Matcher
+ """
+ @typing.overload
+ def __init__(self, node: openvino._pyopenvino.Node, name: str) -> None:
+ """
+ Creates Matcher object with given pattern root node and matcher name.
+ Matcher object is used for pattern matching on Model.
+
+ :param node: pattern root node.
+ :type node: openvino.Node
+
+ :param name: pattern name. Usually matches the MatcherPass class name.
+ :type name: str
+ """
+ @typing.overload
+ def __init__(self, output: openvino._pyopenvino.Output, name: str) -> None:
+ """
+ Creates Matcher object with given pattern root node output and matcher name.
+ Matcher object is used for pattern matching on Model.
+
+ :param node: pattern root node output.
+ :type node: openvino.Output
+
+ :param name: pattern name. Usually matches the MatcherPass class name.
+ :type name: str
+ """
+ def get_match_nodes(self) -> list[openvino._pyopenvino.Node]:
+ """
+ Get NodeVector of matched nodes. Should be used after match() method is called.
+
+ :return: matched nodes vector.
+ :rtype: List[openvino.Node]
+ """
+ def get_match_root(self) -> openvino._pyopenvino.Node:
+ """
+ Get matched root node inside Model. Should be used after match() method is called.
+
+ :return: matched node.
+ :rtype: openvino.Node
+ """
+ def get_match_value(self) -> openvino._pyopenvino.Output:
+ """
+ Get matched node output inside Model. Should be used after match() method is called.
+
+ :return: matched node output.
+ :rtype: openvino.Output
+ """
+ def get_match_values(self) -> list[openvino._pyopenvino.Output]:
+ """
+ Get OutputVector of matched outputs. Should be used after match() method is called.
+
+ :return: matched outputs vector.
+ :rtype: List[openvino.Output]
+ """
+ def get_name(self) -> str:
+ """
+ Get Matcher name.
+
+ :return: openvino.passes.Matcher name.
+ :rtype: str
+ """
+ def get_pattern_value_map(self) -> dict[openvino._pyopenvino.Node, openvino._pyopenvino.Output]:
+ """
+ Get map which can be used to access matched nodes using nodes from pattern.
+ Should be used after match() method is called.
+
+ :return: mapping of pattern nodes to matched nodes.
+ :rtype: dict
+ """
+ def get_symbols(self) -> typing.Any:
+ """
+ Get map which can be used to access matched symbols using nodes from pattern.
+ Should be used after match() method is called.
+
+ :return: mapping of symbol names to symbol values.
+ :rtype: Any
+ """
+ @typing.overload
+ def match(self, arg0: openvino._pyopenvino.Output) -> bool:
+ """
+ Matches registered pattern starting from given output.
+
+ :return: status of matching.
+ :rtype: bool
+ """
+ @typing.overload
+ def match(self, arg0: openvino._pyopenvino.Node) -> bool:
+ """
+ Matches registered pattern starting from given Node.
+
+ :return: status of matching.
+ :rtype: bool
+ """
+class MatcherPass(PassBase):
+ """
+ openvino.passes.MatcherPass wraps ov::pass::MatcherPass
+ """
+ @typing.overload
+ def __init__(self) -> None:
+ ...
+ @typing.overload
+ def __init__(self, matcher: Matcher, callback: typing.Callable[[Matcher], bool]) -> None:
+ """
+ Create MatcherPass from existing Matcher and callback objects.
+
+ :param matcher: openvino.passes.Matcher with registered pattern.
+ :type matcher: openvino.passes.Matcher
+
+ :param callback: Function that performs transformation on the matched nodes.
+ :type callback: function
+
+ :return: created openvino.passes.MatcherPass instance.
+ :rtype: openvino.passes.MatcherPass
+ """
+ def __repr__(self) -> str:
+ ...
+ def apply(self, node: openvino._pyopenvino.Node) -> bool:
+ """
+ Execute MatcherPass on given Node.
+
+ :return: callback return code.
+ :rtype: bool
+ """
+ def register_matcher(self, matcher: Matcher, callback: typing.Callable[[Matcher], bool]) -> None:
+ """
+ Initialize matcher and callback for further execution.
+
+ :param matcher: openvino.passes.Matcher with registered pattern.
+ :type matcher: openvino.passes.Matcher
+
+ :param callback: Function that performs transformation on the matched nodes.
+ :type callback: function
+ """
+ def register_new_node(self, node: openvino._pyopenvino.Node) -> openvino._pyopenvino.Node:
+ """
+ Register node for additional pattern matching.
+
+ :param node: openvino.Node for matching.
+ :type node: openvino.Node
+
+ :return: registered node instance
+ :rtype: openvino.Node
+ """
+class ModelPass(PassBase):
+ """
+ openvino.passes.ModelPass wraps ov::pass::ModelPass
+ """
+ def __init__(self) -> None:
+ ...
+ def __repr__(self) -> str:
+ ...
+ def run_on_model(self, model: typing.Any) -> None:
+ """
+ run_on_model must be defined in inherited class. This method is used to work with Model directly.
+
+ :param model: openvino.Model to be transformed.
+ :type model: openvino.Model
+
+ :return: True in case if Model was changed and False otherwise.
+ :rtype: bool
+ """
+class Optional(openvino._pyopenvino.Node):
+ """
+ openvino.passes.Optional wraps ov::pass::pattern::op::Optional
+ """
+ @typing.overload
+ def __init__(self: typing.Optional, type_names: list[str]) -> None:
+ """
+ Create Optional with the given node type.
+
+ :param type_names: node type. For example: ["opset8.Abs", "opset8.Relu"]
+ :type type_names: List[str]
+ """
+ @typing.overload
+ def __init__(self: typing.Optional, type_names: list[str], input: openvino._pyopenvino.Output) -> None:
+ """
+ Create Optional with the given node type and input node.
+
+ :param type_names: node type. For example: ["opset8.Abs", "opset8.Relu"]
+ :type type_names: List[str]
+
+ :param input: input node's output.
+ :type input: openvino.Output
+ """
+ @typing.overload
+ def __init__(self: typing.Optional, type_names: list[str], input: openvino._pyopenvino.Node) -> None:
+ """
+ Create Optional with the given node type, input node and predicate.
+
+ :param type_names: node type. For example: ["opset8.Abs", "opset8.Relu"]
+ :type type_names: List[str]
+
+ :param input: input node.
+ :type input: openvino.Node
+ """
+ @typing.overload
+ def __init__(self: typing.Optional, type_names: list[str], inputs: list[openvino._pyopenvino.Output]) -> None:
+ """
+ Create Optional with the given node type and input node.
+
+ :param type_names: node type. For example: ["opset8.Abs", "opset8.Relu"]
+ :type type_names: List[str]
+
+ :param inputs: input node's output list.
+ :type inputs: List[openvino.Output]
+ """
+ @typing.overload
+ def __init__(self: typing.Optional, type_names: list[str], inputs: list[openvino._pyopenvino.Node]) -> None:
+ """
+ Create Optional with the given node type and input node.
+
+ :param type_names: node type. For example: ["opset8.Abs", "opset8.Relu"]
+ :type type_names: List[str]
+
+ :param inputs: input node list
+ :type inputs: List[openvino.Node]
+ """
+ @typing.overload
+ def __init__(self: typing.Optional, type_names: list[str], predicate: typing.Callable[[openvino._pyopenvino.Output], bool]) -> None:
+ """
+ Create Optional with the given node type and predicate.
+
+ :param type_names: node type. For example: ["opset8.Abs", "opset8.Relu"]
+ :type type_names: List[str]
+
+ :param predicate: Function that performs additional checks for matching.
+ :type predicate: Callable
+ """
+ @typing.overload
+ def __init__(self: typing.Optional, type_names: list[str], predicate: Predicate) -> None:
+ """
+ Create Optional with the given node type and predicate.
+
+ :param type_names: node type. For example: ["opset8.Abs", "opset8.Relu"]
+ :type type_names: List[str]
+
+ :param predicate: Function that performs additional checks for matching.
+ :type predicate: Callable
+ """
+ @typing.overload
+ def __init__(self: typing.Optional, type_names: list[str], input: openvino._pyopenvino.Output, predicate: typing.Callable[[openvino._pyopenvino.Output], bool]) -> None:
+ """
+ Create Optional with the given node type, input node and predicate.
+
+ :param type_names: node type. For example: ["opset8.Abs", "opset8.Relu"]
+ :type type_names: List[str]
+
+ :param input: input node's output.
+ :type input: openvino.Output
+
+ :param predicate: Function that performs additional checks for matching.
+ :type predicate: Callable
+ """
+ @typing.overload
+ def __init__(self: typing.Optional, type_names: list[str], input: openvino._pyopenvino.Output, predicate: Predicate) -> None:
+ """
+ Create Optional with the given node type, input node and predicate.
+
+ :param type_names: node type. For example: ["opset8.Abs", "opset8.Relu"]
+ :type type_names: List[str]
+
+ :param input: input node's output.
+ :type input: openvino.Output
+
+ :param predicate: Function that performs additional checks for matching.
+ :type predicate: Callable
+ """
+ @typing.overload
+ def __init__(self: typing.Optional, type_names: list[str], input: openvino._pyopenvino.Node, predicate: typing.Callable[[openvino._pyopenvino.Output], bool]) -> None:
+ """
+ Create Optional with the given node type, input node and predicate.
+
+ :param type_names: node type. For example: ["opset8.Abs", "opset8.Relu"]
+ :type type_names: List[str]
+
+ :param input: input node
+ :type input: openvino.Node
+
+ :param predicate: Function that performs additional checks for matching.
+ :type predicate: Callable
+ """
+ @typing.overload
+ def __init__(self: typing.Optional, type_names: list[str], input: openvino._pyopenvino.Node, predicate: Predicate) -> None:
+ """
+ Create Optional with the given node type, input node and predicate.
+
+ :param type_names: node type. For example: ["opset8.Abs", "opset8.Relu"]
+ :type type_names: List[str]
+
+ :param input: input node
+ :type input: openvino.Node
+
+ :param predicate: Function that performs additional checks for matching.
+ :type predicate: Callable
+ """
+ @typing.overload
+ def __init__(self: typing.Optional, type_names: list[str], inputs: list[openvino._pyopenvino.Output], predicate: typing.Callable[[openvino._pyopenvino.Output], bool]) -> None:
+ """
+ Create Optional with the given node type, input node and predicate.
+
+ :param type_names: node type. For example: ["opset8.Abs", "opset8.Relu"]
+ :type type_names: List[str]
+
+ :param inputs: input node's output list.
+ :type inputs: List[openvino.Output]
+
+ :param predicate: Function that performs additional checks for matching.
+ :type predicate: Callable
+ """
+ @typing.overload
+ def __init__(self: typing.Optional, type_names: list[str], inputs: list[openvino._pyopenvino.Output], predicate: Predicate) -> None:
+ """
+ Create Optional with the given node type, input node and predicate.
+
+ :param type_names: node type. For example: ["opset8.Abs", "opset8.Relu"]
+ :type type_names: List[str]
+
+ :param inputs: input node's output list.
+ :type inputs: List[openvino.Output]
+
+ :param predicate: Function that performs additional checks for matching.
+ :type predicate: Callable
+ """
+ @typing.overload
+ def __init__(self: typing.Optional, type_names: list[str], inputs: list[openvino._pyopenvino.Node], predicate: typing.Callable[[openvino._pyopenvino.Output], bool]) -> None:
+ """
+ Create Optional with the given node type, input node and predicate.
+
+ :param type_names: node type. For example: ["opset8.Abs", "opset8.Relu"]
+ :type type_names: List[str]
+
+ :param inputs: input node list
+ :type inputs: List[openvino.Node]
+
+ :param predicate: Function that performs additional checks for matching.
+ :type predicate: Callable
+ """
+ @typing.overload
+ def __init__(self: typing.Optional, type_names: list[str], inputs: list[openvino._pyopenvino.Node], predicate: Predicate) -> None:
+ """
+ Create Optional with the given node type, input node and predicate.
+
+ :param type_names: node type. For example: ["opset8.Abs", "opset8.Relu"]
+ :type type_names: List[str]
+
+ :param inputs: input node list
+ :type inputs: List[openvino.Node]
+
+ :param predicate: Function that performs additional checks for matching.
+ :type predicate: Callable
+ """
+ def __repr__(self: typing.Optional) -> str:
+ ...
+class Or(openvino._pyopenvino.Node):
+ """
+ openvino.passes.Or wraps ov::pass::pattern::op::Or
+ """
+ @typing.overload
+ def __init__(self, inputs: list[openvino._pyopenvino.Output]) -> None:
+ """
+ Create pattern Or operation which is used to match any of given inputs.
+
+ :param inputs: Operation inputs.
+ :type inputs: List[openvino.Output]
+ """
+ @typing.overload
+ def __init__(self, inputs: list[openvino._pyopenvino.Node]) -> None:
+ """
+ Create pattern Or operation which is used to match any of given inputs.
+
+ :param inputs: Operation inputs.
+ :type inputs: List[openvino.Node]
+ """
+ def __repr__(self) -> str:
+ ...
+class PassBase:
+ """
+ openvino.passes.PassBase wraps ov::pass::PassBase
+ """
+ def __repr__(self) -> str:
+ ...
+ def get_name(self) -> str:
+ """
+ Get transformation name.
+
+ :return: Transformation name.
+ :rtype: str
+ """
+ def set_name(self, name: str) -> None:
+ """
+ Set transformation name.
+
+ :param name: Transformation name.
+ :type name: str
+ """
+class PatternSymbolValue:
+ """
+ openvino.passes.PatternSymbolValue wraps ov::pass::pattern::PatternSymbolValue
+ """
+ __hash__: typing.ClassVar[None] = None
+ def __eq__(self, arg0: PatternSymbolValue) -> bool:
+ ...
+ @typing.overload
+ def __init__(self, value: openvino._pyopenvino.Symbol) -> None:
+ """
+ Create PatternSymbolValue with the given value.
+
+ :param value: symbol to keep as pattern value
+ :type value: openvino.Symbol
+ """
+ @typing.overload
+ def __init__(self, value: int) -> None:
+ """
+ Create PatternSymbolValue with the given value.
+
+ :param value: integer to keep as a pattern value
+ :type value: int
+ """
+ @typing.overload
+ def __init__(self, value: float) -> None:
+ """
+ Create PatternSymbolValue with the given value.
+
+ :param value: float to keep as a pattern value
+ :type value: float
+ """
+ @typing.overload
+ def __init__(self, value: list[PatternSymbolValue]) -> None:
+ """
+ Create PatternSymbolValue with the given value.
+
+ :param value: list of values representing a group of pattern values
+ :type value: List[PatternSymbolValue]
+ """
+ def d(self) -> float:
+ ...
+ def g(self) -> list[PatternSymbolValue]:
+ ...
+ def i(self) -> int:
+ ...
+ def is_double(self) -> bool:
+ ...
+ def is_dynamic(self) -> bool:
+ ...
+ def is_group(self) -> bool:
+ ...
+ def is_integer(self) -> bool:
+ ...
+ def is_static(self) -> bool:
+ ...
+ def s(self) -> openvino._pyopenvino.Symbol:
+ ...
+class Predicate:
+ """
+ openvino.passes.Predicate wraps ov::pass::pattern::op::Predicate
+ """
+ @typing.overload
+ def __init__(self) -> None:
+ """
+ Create default Predicate which always returns true.
+ """
+ @typing.overload
+ def __init__(self, predicate: typing.Callable[[openvino._pyopenvino.Output], bool]) -> None:
+ """
+ Create Predicate from a given function.
+
+ :param predicate: function (Output<Node> -> bool)
+ :type predicate: Callable
+ """
+ @typing.overload
+ def __init__(self, predicate: typing.Callable[[dict[str, ...], openvino._pyopenvino.Output], bool]) -> None:
+ """
+ Create Predicate from a given function.
+
+ :param predicate: function (PatternSymbolMap&, Output<Node> -> bool)
+ :type predicate: Callable
+ """
+class Serialize(ModelPass, PassBase):
+ """
+ openvino.passes.Serialize transformation
+ """
+ def __init__(self, path_to_xml: typing.Any, path_to_bin: typing.Any, version: typing.Any = None) -> None:
+ """
+ Create Serialize pass which is used for Model to IR serialization.
+
+ :param path_to_xml: Path where *.xml file will be saved.
+ :type path_to_xml: Union[str, bytes, pathlib.Path]
+
+ :param path_to_xml: Path where *.bin file will be saved.
+ :type path_to_xml: Union[str, bytes, pathlib.Path]
+
+ :param version: Optional serialized IR version.
+ :type version: Union[str, openvino.passes.Version]
+ """
+ def __repr__(self) -> str:
+ ...
+class Version:
+ """
+ Members:
+
+ UNSPECIFIED
+
+ IR_V10
+
+ IR_V11
+ """
+ IR_V10: typing.ClassVar[Version] # value = <Version.IR_V10: 10>
+ IR_V11: typing.ClassVar[Version] # value = <Version.IR_V11: 11>
+ UNSPECIFIED: typing.ClassVar[Version] # value = <Version.UNSPECIFIED: 0>
+ __members__: typing.ClassVar[dict[str, Version]] # value = {'UNSPECIFIED': <Version.UNSPECIFIED: 0>, 'IR_V10': <Version.IR_V10: 10>, 'IR_V11': <Version.IR_V11: 11>}
+ def __eq__(self, other: typing.Any) -> bool:
+ ...
+ def __ge__(self, other: typing.Any) -> bool:
+ ...
+ def __getstate__(self) -> int:
+ ...
+ def __gt__(self, other: typing.Any) -> bool:
+ ...
+ def __hash__(self) -> int:
+ ...
+ def __index__(self) -> int:
+ ...
+ def __init__(self, value: int) -> None:
+ ...
+ def __int__(self) -> int:
+ ...
+ def __le__(self, other: typing.Any) -> bool:
+ ...
+ def __lt__(self, other: typing.Any) -> bool:
+ ...
+ def __ne__(self, other: typing.Any) -> bool:
+ ...
+ def __repr__(self) -> str:
+ ...
+ def __setstate__(self, state: int) -> None:
+ ...
+ def __str__(self) -> str:
+ ...
+ @property
+ def name(self) -> str:
+ ...
+ @property
+ def value(self) -> int:
+ ...
+class VisualizeTree(ModelPass, PassBase):
+ """
+ openvino.passes.VisualizeTree transformation
+ """
+ def __init__(self, file_name: str, nm: typing.Callable[[openvino._pyopenvino.Node, list[str]], None] = None, don_only: bool = False) -> None:
+ """
+ Create VisualizeTree pass which is used for Model to dot serialization.
+
+ :param file_name: Path where serialized model will be saved. For example: /tmp/out.svg
+ :type file_name: str
+
+ :param nm: Node modifier function.
+ :type nm: function
+
+ :param don_only: Enable only dot file generation.
+ :type don_only: bool
+ """
+ def __repr__(self) -> str:
+ ...
+class WrapType(openvino._pyopenvino.Node):
+ """
+ openvino.passes.WrapType wraps ov::pass::pattern::op::WrapType
+ """
+ @typing.overload
+ def __init__(self, type_name: str) -> None:
+ """
+ Create WrapType with given node type.
+
+ :param type_name: node type. For example: "opset8.Abs"
+ :type type_name: str
+ """
+ @typing.overload
+ def __init__(self, type_name: str, pred: typing.Callable[[openvino._pyopenvino.Output], bool]) -> None:
+ """
+ Create WrapType with given node type and predicate.
+
+ :param type_name: node type. For example: "opset8.Abs"
+ :type type_name: str
+
+ :param predicate: Function that performs additional checks for matching.
+ :type predicate: Callable
+ """
+ @typing.overload
+ def __init__(self, type_name: str, pred: Predicate) -> None:
+ """
+ Create WrapType with given node type and predicate.
+
+ :param type_name: node type. For example: "opset8.Abs"
+ :type type_name: str
+
+ :param predicate: Function that performs additional checks for matching.
+ :type predicate: Callable
+ """
+ @typing.overload
+ def __init__(self, type_name: str, input: openvino._pyopenvino.Output) -> None:
+ """
+ Create WrapType with given node type and input node.
+
+ :param type_name: node type. For example: "opset8.Abs"
+ :type type_name: str
+
+ :param input: Node output.
+ :type input: openvino.Output
+ """
+ @typing.overload
+ def __init__(self, type_name: str, input: openvino._pyopenvino.Node) -> None:
+ """
+ Create WrapType with given node type and input node.
+
+ :param type_name: node type. For example: opset8.Abs
+ :type type_name: str
+
+ :param input: Input node.
+ :type input: openvino.Node
+ """
+ @typing.overload
+ def __init__(self, type_name: str, input: openvino._pyopenvino.Output, predicate: typing.Callable[[openvino._pyopenvino.Output], bool]) -> None:
+ """
+ Create WrapType with given node type, input node and predicate.
+
+ :param type_name: node type. For example: "opset8.Abs"
+ :type type_name: str
+
+ :param input: Node output.
+ :type input: openvino.Output
+
+ :param predicate: Function that performs additional checks for matching.
+ :type predicate: Callable
+ """
+ @typing.overload
+ def __init__(self, type_name: str, input: openvino._pyopenvino.Output, predicate: Predicate) -> None:
+ """
+ Create WrapType with given node type, input node and predicate.
+
+ :param type_name: node type. For example: "opset8.Abs"
+ :type type_name: str
+
+ :param input: Node output.
+ :type input: openvino.Output
+
+ :param predicate: Function that performs additional checks for matching.
+ :type predicate: Callable
+ """
+ @typing.overload
+ def __init__(self, type_name: str, input: openvino._pyopenvino.Node, predicate: typing.Callable[[openvino._pyopenvino.Output], bool]) -> None:
+ """
+ Create WrapType with given node type, input node and predicate.
+
+ :param type_name: node type. For example: "opset8.Abs"
+ :type type_name: str
+
+ :param input: Input node.
+ :type input: openvino.Node
+
+ :param predicate: Function that performs additional checks for matching.
+ :type predicate: Callable
+ """
+ @typing.overload
+ def __init__(self, type_name: str, input: openvino._pyopenvino.Node, predicate: Predicate) -> None:
+ """
+ Create WrapType with given node type, input node and predicate.
+
+ :param type_name: node type. For example: "opset8.Abs"
+ :type type_name: str
+
+ :param input: Input node.
+ :type input: openvino.Node
+
+ :param predicate: Function that performs additional checks for matching.
+ :type predicate: Callable
+ """
+ @typing.overload
+ def __init__(self, type_name: str, inputs: list[openvino._pyopenvino.Output]) -> None:
+ """
+ Create WrapType with given node type and input nodes.
+
+ :param type_name: node type. For example: "opset8.Abs"
+ :type type_name: str
+
+ :param inputs: Node outputs.
+ :type inputs: List[openvino.Output]
+ """
+ @typing.overload
+ def __init__(self, type_name: str, inputs: list[openvino._pyopenvino.Node]) -> None:
+ """
+ Create WrapType with given node type and input nodes.
+
+ :param type_name: node type. For example: "opset8.Abs"
+ :type type_name: str
+
+ :param inputs: Input nodes.
+ :type inputs: List[openvino.Node]
+ """
+ @typing.overload
+ def __init__(self, type_name: str, inputs: list[openvino._pyopenvino.Output], predicate: typing.Callable[[openvino._pyopenvino.Output], bool]) -> None:
+ """
+ Create WrapType with given node type, input nodes and predicate.
+
+ :param type_name: node type. For example: "opset8.Abs"
+ :type type_name: str
+
+ :param inputs: Node outputs.
+ :type inputs: List[openvino.Output]
+
+ :param predicate: Function that performs additional checks for matching.
+ :type predicate: Callable
+ """
+ @typing.overload
+ def __init__(self, type_name: str, inputs: list[openvino._pyopenvino.Output], predicate: Predicate) -> None:
+ """
+ Create WrapType with given node type, input nodes and predicate.
+
+ :param type_name: node type. For example: "opset8.Abs"
+ :type type_name: str
+
+ :param inputs: Node outputs.
+ :type inputs: List[openvino.Output]
+
+ :param predicate: Function that performs additional checks for matching.
+ :type predicate: Callable
+ """
+ @typing.overload
+ def __init__(self, type_name: str, inputs: list[openvino._pyopenvino.Node], predicate: typing.Callable[[openvino._pyopenvino.Output], bool]) -> None:
+ """
+ Create WrapType with given node type, input nodes and predicate.
+
+ :param type_name: node type. For example: "opset8.Abs"
+ :type type_name: str
+
+ :param inputs: Input nodes.
+ :type inputs: List[openvino.Node]
+
+ :param predicate: Function that performs additional checks for matching.
+ :type predicate: Callable
+ """
+ @typing.overload
+ def __init__(self, type_name: str, inputs: list[openvino._pyopenvino.Node], predicate: Predicate) -> None:
+ """
+ Create WrapType with given node type, input nodes and predicate.
+
+ :param type_name: node type. For example: "opset8.Abs"
+ :type type_name: str
+
+ :param inputs: Input nodes.
+ :type inputs: List[openvino.Node]
+
+ :param predicate: Function that performs additional checks for matching.
+ :type predicate: Callable
+ """
+ @typing.overload
+ def __init__(self, type_names: list[str]) -> None:
+ """
+ Create WrapType with given node types.
+
+ :param type_names: node types. For example: ["opset8.Abs", "opset8.Relu"]
+ :type type_names: List[str]
+ """
+ @typing.overload
+ def __init__(self, type_names: list[str], predicate: typing.Callable[[openvino._pyopenvino.Output], bool]) -> None:
+ """
+ Create WrapType with given node types and predicate.
+
+ :param type_names: node types. For example: ["opset8.Abs", "opset8.Relu"]
+ :type type_names: List[str]
+
+ :param predicate: Function that performs additional checks for matching.
+ :type predicate: Callable
+ """
+ @typing.overload
+ def __init__(self, type_names: list[str], predicate: Predicate) -> None:
+ """
+ Create WrapType with given node types and predicate.
+
+ :param type_names: node types. For example: ["opset8.Abs", "opset8.Relu"]
+ :type type_names: List[str]
+
+ :param predicate: Function that performs additional checks for matching.
+ :type predicate: Callable
+ """
+ @typing.overload
+ def __init__(self, type_names: list[str], input: openvino._pyopenvino.Output) -> None:
+ """
+ Create WrapType with given node types and input.
+
+ :param type_names: node types. For example: ["opset8.Abs", "opset8.Relu"]
+ :type type_names: List[str]
+
+ :param input: Node output.
+ :type input: openvino.Output
+ """
+ @typing.overload
+ def __init__(self, type_names: list[str], input: openvino._pyopenvino.Node) -> None:
+ """
+ Create WrapType with given node types and input.
+
+ :param type_name: node types. For example: ["opset8.Abs", "opset8.Relu"]
+ :type type_name: List[str]
+
+ :param input: Input node.
+ :type input: openvino.Node
+ """
+ @typing.overload
+ def __init__(self, type_names: list[str], input: openvino._pyopenvino.Output, predicate: typing.Callable[[openvino._pyopenvino.Output], bool]) -> None:
+ """
+ Create WrapType with given node types, input and predicate.
+
+ :param type_names: node types. For example: ["opset8.Abs", "opset8.Relu"]
+ :type type_names: List[str]
+
+ :param input: Node output.
+ :type input: openvino.Output
+
+ :param predicate: Function that performs additional checks for matching.
+ :type predicate: Callable
+ """
+ @typing.overload
+ def __init__(self, type_names: list[str], input: openvino._pyopenvino.Output, predicate: Predicate) -> None:
+ """
+ Create WrapType with given node types, input and predicate.
+
+ :param type_names: node types. For example: ["opset8.Abs", "opset8.Relu"]
+ :type type_names: List[str]
+
+ :param input: Node output.
+ :type input: openvino.Output
+
+ :param predicate: Function that performs additional checks for matching.
+ :type predicate: Callable
+ """
+ @typing.overload
+ def __init__(self, type_names: list[str], input: openvino._pyopenvino.Node, predicate: typing.Callable[[openvino._pyopenvino.Output], bool]) -> None:
+ """
+ Create WrapType with given node types, input and predicate.
+
+ :param type_names: node types. For example: ["opset8.Abs", "opset8.Relu"]
+ :type type_names: List[str]
+
+ :param input: Input node.
+ :type input: openvino.Node
+
+ :param predicate: Function that performs additional checks for matching.
+ :type predicate: Callable
+ """
+ @typing.overload
+ def __init__(self, type_names: list[str], input: openvino._pyopenvino.Node, predicate: Predicate) -> None:
+ """
+ Create WrapType with given node types, input and predicate.
+
+ :param type_names: node types. For example: ["opset8.Abs", "opset8.Relu"]
+ :type type_names: List[str]
+
+ :param input: Input node.
+ :type input: openvino.Node
+
+ :param predicate: Function that performs additional checks for matching.
+ :type predicate: Callable
+ """
+ @typing.overload
+ def __init__(self, type_names: list[str], inputs: list[openvino._pyopenvino.Output]) -> None:
+ """
+ Create WrapType with given node types and input.
+
+ :param type_names: node types. For example: ["opset8.Abs", "opset8.Relu"]
+ :type type_names: List[str]
+
+ :param inputs: Nodes outputs.
+ :type inputs: List[openvino.Output]
+ """
+ @typing.overload
+ def __init__(self, type_names: list[str], inputs: list[openvino._pyopenvino.Node]) -> None:
+ """
+ Create WrapType with given node types and inputs.
+
+ :param type_names: node types. For example: ["opset8.Abs", "opset8.Relu"]
+ :type type_names: List[str]
+
+ :param inputs: Input nodes.
+ :type inputs: List[openvino.Node]
+ """
+ @typing.overload
+ def __init__(self, type_names: list[str], inputs: list[openvino._pyopenvino.Output], predicate: typing.Callable[[openvino._pyopenvino.Output], bool]) -> None:
+ """
+ Create WrapType with given node types, inputs and predicate.
+
+ :param type_names: node types. For example: ["opset8.Abs", "opset8.Relu"]
+ :type type_names: List[str]
+
+ :param inputs: Nodes outputs.
+ :type inputs: List[openvino.Output]
+
+ :param predicate: Function that performs additional checks for matching.
+ :type predicate: Callable
+ """
+ @typing.overload
+ def __init__(self, type_names: list[str], inputs: list[openvino._pyopenvino.Output], predicate: Predicate) -> None:
+ """
+ Create WrapType with given node types, inputs and predicate.
+
+ :param type_names: node types. For example: ["opset8.Abs", "opset8.Relu"]
+ :type type_names: List[str]
+
+ :param inputs: Nodes outputs.
+ :type inputs: List[openvino.Output]
+
+ :param predicate: Function that performs additional checks for matching.
+ :type predicate: Callable
+ """
+ @typing.overload
+ def __init__(self, type_names: list[str], inputs: list[openvino._pyopenvino.Node], predicate: typing.Callable[[openvino._pyopenvino.Output], bool]) -> None:
+ """
+ Create WrapType with given node types, inputs and predicate.
+
+ :param type_names: node types. For example: ["opset8.Abs", "opset8.Relu"]
+ :type type_names: List[str]
+
+ :param inputs: Input nodes.
+ :type inputs: List[openvino.Node]
+
+ :param predicate: Function that performs additional checks for matching.
+ :type predicate: Callable
+ """
+ @typing.overload
+ def __init__(self, type_names: list[str], inputs: list[openvino._pyopenvino.Node], predicate: Predicate) -> None:
+ """
+ Create WrapType with given node types, inputs and predicate.
+
+ :param type_names: node types. For example: ["opset8.Abs", "opset8.Relu"]
+ :type type_names: List[str]
+
+ :param inputs: Input nodes.
+ :type inputs: List[openvino.Node]
+
+ :param predicate: Function that performs additional checks for matching.
+ :type predicate: Callable
+ """
+ def __repr__(self) -> str:
+ ...
+def consumers_count(arg0: int) -> Predicate:
+ ...
+def has_static_dim(arg0: int) -> Predicate:
+ ...
+def has_static_dims(arg0: list[int]) -> Predicate:
+ ...
+def has_static_rank() -> Predicate:
+ ...
+def has_static_shape() -> Predicate:
+ ...
+def rank_equals(arg0: openvino._pyopenvino.Dimension) -> Predicate:
+ ...
+def rank_more_than(arg0: openvino._pyopenvino.Dimension) -> Predicate:
+ ...
+def shape_matches(arg0: str) -> Predicate:
+ ...
+def type_matches(arg0: openvino._pyopenvino.Type) -> Predicate:
+ ...
+def type_matches_any(arg0: list[openvino._pyopenvino.Type]) -> Predicate:
+ ...
diff --git a/src/bindings/python/src/openvino/_pyopenvino/preprocess.pyi b/src/bindings/python/src/openvino/_pyopenvino/preprocess.pyi
new file mode 100644
index 00000000000..e753cc94462
--- /dev/null
+++ b/src/bindings/python/src/openvino/_pyopenvino/preprocess.pyi
@@ -0,0 +1,473 @@
+# type: ignore
+"""
+Package openvino.preprocess that wraps ov::preprocess
+"""
+from __future__ import annotations
+import numpy
+import openvino._pyopenvino
+import typing
+__all__ = ['BGR', 'BGRX', 'CONSTANT', 'ColorFormat', 'GRAY', 'I420_SINGLE_PLANE', 'I420_THREE_PLANES', 'InputInfo', 'InputModelInfo', 'InputTensorInfo', 'NV12_SINGLE_PLANE', 'NV12_TWO_PLANES', 'OutputInfo', 'OutputModelInfo', 'OutputTensorInfo', 'PaddingMode', 'PostProcessSteps', 'PrePostProcessor', 'PreProcessSteps', 'REFLECT', 'RESIZE_BICUBIC_PILLOW', 'RESIZE_BILINEAR_PILLOW', 'RESIZE_CUBIC', 'RESIZE_LINEAR', 'RESIZE_NEAREST', 'RGB', 'RGBX', 'ResizeAlgorithm', 'SYMMETRIC', 'UNDEFINED']
+class ColorFormat:
+ """
+ Members:
+
+ UNDEFINED
+
+ NV12_SINGLE_PLANE
+
+ NV12_TWO_PLANES
+
+ I420_SINGLE_PLANE
+
+ I420_THREE_PLANES
+
+ RGB
+
+ BGR
+
+ GRAY
+
+ RGBX
+
+ BGRX
+ """
+ BGR: typing.ClassVar[ColorFormat] # value = <ColorFormat.BGR: 6>
+ BGRX: typing.ClassVar[ColorFormat] # value = <ColorFormat.BGRX: 9>
+ GRAY: typing.ClassVar[ColorFormat] # value = <ColorFormat.GRAY: 7>
+ I420_SINGLE_PLANE: typing.ClassVar[ColorFormat] # value = <ColorFormat.I420_SINGLE_PLANE: 3>
+ I420_THREE_PLANES: typing.ClassVar[ColorFormat] # value = <ColorFormat.I420_THREE_PLANES: 4>
+ NV12_SINGLE_PLANE: typing.ClassVar[ColorFormat] # value = <ColorFormat.NV12_SINGLE_PLANE: 1>
+ NV12_TWO_PLANES: typing.ClassVar[ColorFormat] # value = <ColorFormat.NV12_TWO_PLANES: 2>
+ RGB: typing.ClassVar[ColorFormat] # value = <ColorFormat.RGB: 5>
+ RGBX: typing.ClassVar[ColorFormat] # value = <ColorFormat.RGBX: 8>
+ UNDEFINED: typing.ClassVar[ColorFormat] # value = <ColorFormat.UNDEFINED: 0>
+ __members__: typing.ClassVar[dict[str, ColorFormat]] # value = {'UNDEFINED': <ColorFormat.UNDEFINED: 0>, 'NV12_SINGLE_PLANE': <ColorFormat.NV12_SINGLE_PLANE: 1>, 'NV12_TWO_PLANES': <ColorFormat.NV12_TWO_PLANES: 2>, 'I420_SINGLE_PLANE': <ColorFormat.I420_SINGLE_PLANE: 3>, 'I420_THREE_PLANES': <ColorFormat.I420_THREE_PLANES: 4>, 'RGB': <ColorFormat.RGB: 5>, 'BGR': <ColorFormat.BGR: 6>, 'GRAY': <ColorFormat.GRAY: 7>, 'RGBX': <ColorFormat.RGBX: 8>, 'BGRX': <ColorFormat.BGRX: 9>}
+ def __eq__(self, other: typing.Any) -> bool:
+ ...
+ def __getstate__(self) -> int:
+ ...
+ def __hash__(self) -> int:
+ ...
+ def __index__(self) -> int:
+ ...
+ def __init__(self, value: int) -> None:
+ ...
+ def __int__(self) -> int:
+ ...
+ def __ne__(self, other: typing.Any) -> bool:
+ ...
+ def __repr__(self) -> str:
+ ...
+ def __setstate__(self, state: int) -> None:
+ ...
+ def __str__(self) -> str:
+ ...
+ @property
+ def name(self) -> str:
+ ...
+ @property
+ def value(self) -> int:
+ ...
+class InputInfo:
+ """
+ openvino.preprocess.InputInfo wraps ov::preprocess::InputInfo
+ """
+ def model(self) -> InputModelInfo:
+ ...
+ def preprocess(self) -> PreProcessSteps:
+ ...
+ def tensor(self) -> InputTensorInfo:
+ ...
+class InputModelInfo:
+ """
+ openvino.preprocess.InputModelInfo wraps ov::preprocess::InputModelInfo
+ """
+ def set_layout(self, layout: openvino._pyopenvino.Layout) -> InputModelInfo:
+ """
+ Set layout for input model
+ :param layout: layout to be set
+ :type layout: Union[str, openvino.Layout]
+ """
+class InputTensorInfo:
+ """
+ openvino.preprocess.InputTensorInfo wraps ov::preprocess::InputTensorInfo
+ """
+ def set_color_format(self, format: ColorFormat, sub_names: list[str] = []) -> InputTensorInfo:
+ ...
+ def set_element_type(self, type: openvino._pyopenvino.Type) -> InputTensorInfo:
+ """
+ Set initial client's tensor element type. If type is not the same as model's element type,
+ conversion of element type will be done automatically.
+
+ :param type: Client's input tensor element type.
+ :type type: openvino.Type
+ :return: Reference to itself, allows chaining of calls in client's code in a builder-like manner.
+ :rtype: openvino.preprocess.InputTensorInfo
+ """
+ @typing.overload
+ def set_from(self, tensor: openvino._pyopenvino.Tensor) -> InputTensorInfo:
+ """
+ Helper function to reuse element type and shape from user's created tensor. Overwrites previously
+ set shape and element type via `set_shape` and `set_element_type' methods. This method should be
+ used only in case if tensor is already known and avaiable before.
+
+ :param tensor: User's created tensor
+ :type type: openvino.Tensor
+ :return: Reference to itself, allows chaining of calls in client's code in a builder-like manner.
+ :rtype: openvino.preprocess.InputTensorInfo
+ """
+ @typing.overload
+ def set_from(self, tensor: numpy.ndarray[typing.Any, numpy.dtype[typing.Any]]) -> InputTensorInfo:
+ """
+ Helper function to reuse element type and shape from user's created tensor. Overwrites previously
+ set shape and element type via `set_shape` and `set_element_type' methods. This method should be
+ used only in case if tensor is already known and avaiable before.
+
+ :param tensor: User's created numpy array
+ :type type: numpy.ndarray
+ :return: Reference to itself, allows chaining of calls in client's code in a builder-like manner.
+ :rtype: openvino.preprocess.InputTensorInfo
+ """
+ def set_layout(self, layout: openvino._pyopenvino.Layout) -> InputTensorInfo:
+ """
+ Set layout for input tensor info
+
+ :param layout: layout to be set
+ :type layout: Union[str, openvino.Layout]
+ """
+ def set_memory_type(self, memory_type: str) -> InputTensorInfo:
+ ...
+ @typing.overload
+ def set_shape(self, shape: openvino._pyopenvino.PartialShape) -> InputTensorInfo:
+ ...
+ @typing.overload
+ def set_shape(self, shape: list[int]) -> InputTensorInfo:
+ ...
+ def set_spatial_dynamic_shape(self) -> InputTensorInfo:
+ ...
+ def set_spatial_static_shape(self, height: int, width: int) -> InputTensorInfo:
+ ...
+class OutputInfo:
+ """
+ openvino.preprocess.OutputInfo wraps ov::preprocess::OutputInfo
+ """
+ def model(self) -> OutputModelInfo:
+ ...
+ def postprocess(self) -> PostProcessSteps:
+ ...
+ def tensor(self) -> OutputTensorInfo:
+ ...
+class OutputModelInfo:
+ """
+ openvino.preprocess.OutputModelInfo wraps ov::preprocess::OutputModelInfo
+ """
+ def set_layout(self, layout: openvino._pyopenvino.Layout) -> OutputModelInfo:
+ """
+ Set layout for output model info
+
+ :param layout: layout to be set
+ :type layout: Union[str, openvino.Layout]
+ """
+class OutputTensorInfo:
+ """
+ openvino.preprocess.OutputTensorInfo wraps ov::preprocess::OutputTensorInfo
+ """
+ def set_element_type(self, type: openvino._pyopenvino.Type) -> OutputTensorInfo:
+ """
+ Set client's output tensor element type. If type is not the same as model's element type,
+ conversion of element type will be done automatically.
+
+ :param type: Client's output tensor element type.
+ :type type: openvino.Type
+ :return: Reference to itself to allow chaining of calls in client's code in a builder-like manner.
+ :rtype: openvino.preprocess.OutputTensorInfo
+ """
+ def set_layout(self, layout: openvino._pyopenvino.Layout) -> OutputTensorInfo:
+ """
+ Set layout for output tensor info
+
+ :param layout: layout to be set
+ :type layout: Union[str, openvino.Layout]
+ """
+class PaddingMode:
+ """
+ Members:
+
+ CONSTANT
+
+ REFLECT
+
+ SYMMETRIC
+ """
+ CONSTANT: typing.ClassVar[PaddingMode] # value = <PaddingMode.CONSTANT: 0>
+ REFLECT: typing.ClassVar[PaddingMode] # value = <PaddingMode.REFLECT: 2>
+ SYMMETRIC: typing.ClassVar[PaddingMode] # value = <PaddingMode.SYMMETRIC: 3>
+ __members__: typing.ClassVar[dict[str, PaddingMode]] # value = {'CONSTANT': <PaddingMode.CONSTANT: 0>, 'REFLECT': <PaddingMode.REFLECT: 2>, 'SYMMETRIC': <PaddingMode.SYMMETRIC: 3>}
+ def __eq__(self, other: typing.Any) -> bool:
+ ...
+ def __getstate__(self) -> int:
+ ...
+ def __hash__(self) -> int:
+ ...
+ def __index__(self) -> int:
+ ...
+ def __init__(self, value: int) -> None:
+ ...
+ def __int__(self) -> int:
+ ...
+ def __ne__(self, other: typing.Any) -> bool:
+ ...
+ def __repr__(self) -> str:
+ ...
+ def __setstate__(self, state: int) -> None:
+ ...
+ def __str__(self) -> str:
+ ...
+ @property
+ def name(self) -> str:
+ ...
+ @property
+ def value(self) -> int:
+ ...
+class PostProcessSteps:
+ """
+ openvino.preprocess.PostprocessSteps wraps ov::preprocess::PostProcessSteps
+ """
+ def convert_element_type(self, type: openvino._pyopenvino.Type = ...) -> PostProcessSteps:
+ """
+ Converts tensor element type to specified type.
+ Tensor must have openvino.Type data type.
+
+ :param type: Destination type. If not specified, type will be taken from model output's element type.
+ :type type: openvino.Type
+ :return: Reference to itself to allow chaining of calls in client's code in a builder-like manner.
+ :rtype: openvino.preprocess.PostProcessSteps
+ """
+ @typing.overload
+ def convert_layout(self, dst_layout: openvino._pyopenvino.Layout) -> PostProcessSteps:
+ ...
+ @typing.overload
+ def convert_layout(self, dims: list[int]) -> PostProcessSteps:
+ ...
+ def custom(self, operation: typing.Callable) -> PostProcessSteps:
+ """
+ Adds custom postprocessing operation.
+
+ :param operation: Python's function which takes `openvino.Output` as input argument and returns`openvino.Output`.
+ :type operation: function
+ :return: Reference to itself, allows chaining of calls in client's code in a builder-like manner.
+ :rtype: openvino.preprocess.PreProcessSteps
+ """
+class PrePostProcessor:
+ """
+ openvino.preprocess.PrePostProcessor wraps ov::preprocess::PrePostProcessor
+ """
+ def __init__(self, model: typing.Any) -> None:
+ """
+ It creates PrePostProcessor.
+ """
+ def __repr__(self) -> str:
+ ...
+ def __str__(self) -> str:
+ ...
+ def build(self) -> typing.Any:
+ ...
+ @typing.overload
+ def input(self) -> InputInfo:
+ ...
+ @typing.overload
+ def input(self, tensor_name: str) -> InputInfo:
+ ...
+ @typing.overload
+ def input(self, input_index: int) -> InputInfo:
+ ...
+ @typing.overload
+ def output(self) -> OutputInfo:
+ ...
+ @typing.overload
+ def output(self, tensor_name: str) -> OutputInfo:
+ ...
+ @typing.overload
+ def output(self, output_index: int) -> OutputInfo:
+ ...
+class PreProcessSteps:
+ """
+ openvino.preprocess.PreProcessSteps wraps ov::preprocess::PreProcessSteps
+ """
+ def convert_color(self, dst_format: ColorFormat) -> PreProcessSteps:
+ ...
+ def convert_element_type(self, type: openvino._pyopenvino.Type = ...) -> PreProcessSteps:
+ """
+ Converts input tensor element type to specified type.
+ Input tensor must have openvino.Type data type.
+
+ :param type: Destination type. If not specified, type will be taken from model input's element type
+ :type type: openvino.Type
+ :return: Reference to itself to allow chaining of calls in client's code in a builder-like manner.
+ :rtype: openvino.preprocess.PreProcessSteps
+ """
+ @typing.overload
+ def convert_layout(self, dst_layout: openvino._pyopenvino.Layout) -> PreProcessSteps:
+ ...
+ @typing.overload
+ def convert_layout(self, dims: list[int]) -> PreProcessSteps:
+ ...
+ def crop(self, begin: list[int], end: list[int]) -> PreProcessSteps:
+ ...
+ def custom(self, operation: typing.Callable) -> PreProcessSteps:
+ """
+ Adds custom preprocessing operation.
+
+ :param operation: Python's function which takes `openvino.Output` as input argument and returns`openvino.Output`.
+ :type operation: function
+ :return: Reference to itself, allows chaining of calls in client's code in a builder-like manner.
+ :rtype: openvino.preprocess.PreProcessSteps
+ """
+ @typing.overload
+ def mean(self, value: float) -> PreProcessSteps:
+ """
+ Subtracts single float value from each element in input tensor.
+ Input tensor must have ov.Type.f32 data type.
+
+ :param value: Value to subtract.
+ :type value: float
+ :return: Reference to itself to allow chaining of calls in client's code in a builder-like manner.
+ :rtype: openvino.preprocess.PreProcessSteps
+ """
+ @typing.overload
+ def mean(self, values: list[float]) -> PreProcessSteps:
+ """
+ Subtracts a given single float value from each element in a given channel from input tensor.
+ Input tensor must have ov.Type.f32 data type.
+
+ :param values: Values to subtract.
+ :type values: List[float]
+ :return: Reference to itself to allow chaining of calls in client's code in a builder-like manner.
+ :rtype: openvino.preprocess.PreProcessSteps
+ """
+ @typing.overload
+ def pad(self, pads_begin: list[int], pads_end: list[int], value: float, mode: PaddingMode) -> PreProcessSteps:
+ """
+ Adds padding preprocessing operation.
+
+ :param pads_begin: Number of elements matches the number of indices in data attribute. Specifies the number of padding elements at the ending of each axis.
+ :type pads_begin: 1D tensor of type T_INT.
+ :param pads_end: Number of elements matches the number of indices in data attribute. Specifies the number of padding elements at the ending of each axis.
+ :type pads_end: 1D tensor of type T_INT.
+ :param value: All new elements are populated with this value or with 0 if input not provided. Shouldn’t be set for other pad_mode values.
+ :type value: scalar tensor of type T.
+ :param mode: pad_mode specifies the method used to generate new element values.
+ :type mode: string
+ :return: Reference to itself, allows chaining of calls in client's code in a builder-like manner.
+ :rtype: openvino.preprocess.PreProcessSteps
+ """
+ @typing.overload
+ def pad(self, pads_begin: list[int], pads_end: list[int], value: list[float], mode: PaddingMode) -> PreProcessSteps:
+ """
+ Adds padding preprocessing operation.
+
+ :param pads_begin: Number of elements matches the number of indices in data attribute. Specifies the number of padding elements at the ending of each axis.
+ :type pads_begin: 1D tensor of type T_INT.
+ :param pads_end: Number of elements matches the number of indices in data attribute. Specifies the number of padding elements at the ending of each axis.
+ :type pads_end: 1D tensor of type T_INT.
+ :param value: All new elements are populated with this value or with 0 if input not provided. Shouldn’t be set for other pad_mode values.
+ :type value: scalar tensor of type T.
+ :param mode: pad_mode specifies the method used to generate new element values.
+ :type mode: string
+ :return: Reference to itself, allows chaining of calls in client's code in a builder-like manner.
+ :rtype: openvino.PreProcessSteps
+ """
+ @typing.overload
+ def resize(self, alg: ResizeAlgorithm, dst_height: int, dst_width: int) -> PreProcessSteps:
+ ...
+ @typing.overload
+ def resize(self, alg: ResizeAlgorithm) -> PreProcessSteps:
+ ...
+ def reverse_channels(self) -> PreProcessSteps:
+ ...
+ @typing.overload
+ def scale(self, value: float) -> PreProcessSteps:
+ """
+ Divides each element in input tensor by specified constant float value.
+ Input tensor must have ov.Type.f32 data type.
+
+ :param value: Value used in division.
+ :type value: float
+ :return: Reference to itself to allow chaining of calls in client's code in a builder-like manner.
+ :rtype: openvino.preprocess.PreProcessSteps
+ """
+ @typing.overload
+ def scale(self, values: list[float]) -> PreProcessSteps:
+ """
+ Divides each element in a given channel from input tensor by a given single float value.
+ Input tensor must have ov.Type.f32 data type.
+
+ :param values: Values which are used in division.
+ :type values: List[float]
+ :return: Reference to itself to allow chaining of calls in client's code in a builder-like manner.
+ :rtype: openvino.preprocess.PreProcessSteps
+ """
+class ResizeAlgorithm:
+ """
+ Members:
+
+ RESIZE_LINEAR
+
+ RESIZE_CUBIC
+
+ RESIZE_NEAREST
+
+ RESIZE_BILINEAR_PILLOW
+
+ RESIZE_BICUBIC_PILLOW
+ """
+ RESIZE_BICUBIC_PILLOW: typing.ClassVar[ResizeAlgorithm] # value = <ResizeAlgorithm.RESIZE_BICUBIC_PILLOW: 4>
+ RESIZE_BILINEAR_PILLOW: typing.ClassVar[ResizeAlgorithm] # value = <ResizeAlgorithm.RESIZE_BILINEAR_PILLOW: 3>
+ RESIZE_CUBIC: typing.ClassVar[ResizeAlgorithm] # value = <ResizeAlgorithm.RESIZE_CUBIC: 1>
+ RESIZE_LINEAR: typing.ClassVar[ResizeAlgorithm] # value = <ResizeAlgorithm.RESIZE_LINEAR: 0>
+ RESIZE_NEAREST: typing.ClassVar[ResizeAlgorithm] # value = <ResizeAlgorithm.RESIZE_NEAREST: 2>
+ __members__: typing.ClassVar[dict[str, ResizeAlgorithm]] # value = {'RESIZE_LINEAR': <ResizeAlgorithm.RESIZE_LINEAR: 0>, 'RESIZE_CUBIC': <ResizeAlgorithm.RESIZE_CUBIC: 1>, 'RESIZE_NEAREST': <ResizeAlgorithm.RESIZE_NEAREST: 2>, 'RESIZE_BILINEAR_PILLOW': <ResizeAlgorithm.RESIZE_BILINEAR_PILLOW: 3>, 'RESIZE_BICUBIC_PILLOW': <ResizeAlgorithm.RESIZE_BICUBIC_PILLOW: 4>}
+ def __eq__(self, other: typing.Any) -> bool:
+ ...
+ def __getstate__(self) -> int:
+ ...
+ def __hash__(self) -> int:
+ ...
+ def __index__(self) -> int:
+ ...
+ def __init__(self, value: int) -> None:
+ ...
+ def __int__(self) -> int:
+ ...
+ def __ne__(self, other: typing.Any) -> bool:
+ ...
+ def __repr__(self) -> str:
+ ...
+ def __setstate__(self, state: int) -> None:
+ ...
+ def __str__(self) -> str:
+ ...
+ @property
+ def name(self) -> str:
+ ...
+ @property
+ def value(self) -> int:
+ ...
+BGR: ColorFormat # value = <ColorFormat.BGR: 6>
+BGRX: ColorFormat # value = <ColorFormat.BGRX: 9>
+CONSTANT: PaddingMode # value = <PaddingMode.CONSTANT: 0>
+GRAY: ColorFormat # value = <ColorFormat.GRAY: 7>
+I420_SINGLE_PLANE: ColorFormat # value = <ColorFormat.I420_SINGLE_PLANE: 3>
+I420_THREE_PLANES: ColorFormat # value = <ColorFormat.I420_THREE_PLANES: 4>
+NV12_SINGLE_PLANE: ColorFormat # value = <ColorFormat.NV12_SINGLE_PLANE: 1>
+NV12_TWO_PLANES: ColorFormat # value = <ColorFormat.NV12_TWO_PLANES: 2>
+REFLECT: PaddingMode # value = <PaddingMode.REFLECT: 2>
+RESIZE_BICUBIC_PILLOW: ResizeAlgorithm # value = <ResizeAlgorithm.RESIZE_BICUBIC_PILLOW: 4>
+RESIZE_BILINEAR_PILLOW: ResizeAlgorithm # value = <ResizeAlgorithm.RESIZE_BILINEAR_PILLOW: 3>
+RESIZE_CUBIC: ResizeAlgorithm # value = <ResizeAlgorithm.RESIZE_CUBIC: 1>
+RESIZE_LINEAR: ResizeAlgorithm # value = <ResizeAlgorithm.RESIZE_LINEAR: 0>
+RESIZE_NEAREST: ResizeAlgorithm # value = <ResizeAlgorithm.RESIZE_NEAREST: 2>
+RGB: ColorFormat # value = <ColorFormat.RGB: 5>
+RGBX: ColorFormat # value = <ColorFormat.RGBX: 8>
+SYMMETRIC: PaddingMode # value = <PaddingMode.SYMMETRIC: 3>
+UNDEFINED: ColorFormat # value = <ColorFormat.UNDEFINED: 0>
diff --git a/src/bindings/python/src/openvino/_pyopenvino/properties/__init__.pyi b/src/bindings/python/src/openvino/_pyopenvino/properties/__init__.pyi
new file mode 100644
index 00000000000..e26253edda5
--- /dev/null
+++ b/src/bindings/python/src/openvino/_pyopenvino/properties/__init__.pyi
@@ -0,0 +1,218 @@
+# type: ignore
+"""
+openvino.properties submodule
+"""
+from __future__ import annotations
+from . import device
+from . import hint
+from . import intel_auto
+from . import intel_cpu
+from . import intel_gpu
+from . import intel_npu
+from . import log
+from . import streams
+import openvino._pyopenvino
+import typing
+__all__ = ['CacheMode', 'WorkloadType', 'auto_batch_timeout', 'available_devices', 'cache_dir', 'cache_encryption_callbacks', 'cache_mode', 'compilation_num_threads', 'device', 'enable_mmap', 'enable_profiling', 'execution_devices', 'force_tbb_terminate', 'hint', 'inference_num_threads', 'intel_auto', 'intel_cpu', 'intel_gpu', 'intel_npu', 'key_cache_group_size', 'key_cache_precision', 'loaded_from_cache', 'log', 'max_batch_size', 'model_name', 'num_streams', 'optimal_batch_size', 'optimal_number_of_infer_requests', 'range_for_async_infer_requests', 'range_for_streams', 'streams', 'supported_properties', 'value_cache_group_size', 'value_cache_precision', 'weights_path', 'workload_type']
+class CacheMode:
+ """
+ Members:
+
+ OPTIMIZE_SIZE
+
+ OPTIMIZE_SPEED
+ """
+ OPTIMIZE_SIZE: typing.ClassVar[CacheMode] # value = <CacheMode.OPTIMIZE_SIZE: 0>
+ OPTIMIZE_SPEED: typing.ClassVar[CacheMode] # value = <CacheMode.OPTIMIZE_SPEED: 1>
+ __members__: typing.ClassVar[dict[str, CacheMode]] # value = {'OPTIMIZE_SIZE': <CacheMode.OPTIMIZE_SIZE: 0>, 'OPTIMIZE_SPEED': <CacheMode.OPTIMIZE_SPEED: 1>}
+ def __eq__(self, other: typing.Any) -> bool:
+ ...
+ def __ge__(self, other: typing.Any) -> bool:
+ ...
+ def __getstate__(self) -> int:
+ ...
+ def __gt__(self, other: typing.Any) -> bool:
+ ...
+ def __hash__(self) -> int:
+ ...
+ def __index__(self) -> int:
+ ...
+ def __init__(self, value: int) -> None:
+ ...
+ def __int__(self) -> int:
+ ...
+ def __le__(self, other: typing.Any) -> bool:
+ ...
+ def __lt__(self, other: typing.Any) -> bool:
+ ...
+ def __ne__(self, other: typing.Any) -> bool:
+ ...
+ def __repr__(self) -> str:
+ ...
+ def __setstate__(self, state: int) -> None:
+ ...
+ def __str__(self) -> str:
+ ...
+ @property
+ def name(self) -> str:
+ ...
+ @property
+ def value(self) -> int:
+ ...
+class WorkloadType:
+ """
+ Members:
+
+ DEFAULT
+
+ EFFICIENT
+ """
+ DEFAULT: typing.ClassVar[WorkloadType] # value = <WorkloadType.DEFAULT: 0>
+ EFFICIENT: typing.ClassVar[WorkloadType] # value = <WorkloadType.EFFICIENT: 1>
+ __members__: typing.ClassVar[dict[str, WorkloadType]] # value = {'DEFAULT': <WorkloadType.DEFAULT: 0>, 'EFFICIENT': <WorkloadType.EFFICIENT: 1>}
+ def __eq__(self, other: typing.Any) -> bool:
+ ...
+ def __ge__(self, other: typing.Any) -> bool:
+ ...
+ def __getstate__(self) -> int:
+ ...
+ def __gt__(self, other: typing.Any) -> bool:
+ ...
+ def __hash__(self) -> int:
+ ...
+ def __index__(self) -> int:
+ ...
+ def __init__(self, value: int) -> None:
+ ...
+ def __int__(self) -> int:
+ ...
+ def __le__(self, other: typing.Any) -> bool:
+ ...
+ def __lt__(self, other: typing.Any) -> bool:
+ ...
+ def __ne__(self, other: typing.Any) -> bool:
+ ...
+ def __repr__(self) -> str:
+ ...
+ def __setstate__(self, state: int) -> None:
+ ...
+ def __str__(self) -> str:
+ ...
+ @property
+ def name(self) -> str:
+ ...
+ @property
+ def value(self) -> int:
+ ...
+def auto_batch_timeout() -> str:
+ ...
+def auto_batch_timeout(arg0: int) -> tuple[str, openvino._pyopenvino.OVAny]:
+ ...
+def available_devices() -> str:
+ ...
+def cache_dir() -> str:
+ ...
+def cache_dir(arg0: str) -> tuple[str, openvino._pyopenvino.OVAny]:
+ ...
+def cache_encryption_callbacks(arg0: typing.Any) -> tuple[str, openvino._pyopenvino.OVAny]:
+ ...
+def cache_mode() -> str:
+ ...
+def cache_mode(arg0: CacheMode) -> tuple[str, openvino._pyopenvino.OVAny]:
+ ...
+def compilation_num_threads() -> str:
+ ...
+def compilation_num_threads(arg0: int) -> tuple[str, openvino._pyopenvino.OVAny]:
+ ...
+def enable_mmap() -> str:
+ ...
+def enable_mmap(arg0: bool) -> tuple[str, openvino._pyopenvino.OVAny]:
+ ...
+def enable_profiling() -> str:
+ ...
+def enable_profiling(arg0: bool) -> tuple[str, openvino._pyopenvino.OVAny]:
+ ...
+def execution_devices() -> str:
+ ...
+def force_tbb_terminate() -> str:
+ ...
+def force_tbb_terminate(arg0: bool) -> tuple[str, openvino._pyopenvino.OVAny]:
+ ...
+def inference_num_threads() -> str:
+ ...
+def inference_num_threads(arg0: int) -> tuple[str, openvino._pyopenvino.OVAny]:
+ ...
+def key_cache_group_size() -> str:
+ ...
+def key_cache_group_size(arg0: int) -> tuple[str, openvino._pyopenvino.OVAny]:
+ ...
+def key_cache_precision() -> str:
+ ...
+def key_cache_precision(arg0: openvino._pyopenvino.Type) -> tuple[str, openvino._pyopenvino.OVAny]:
+ ...
+def loaded_from_cache() -> str:
+ ...
+def max_batch_size() -> str:
+ ...
+def model_name() -> str:
+ ...
+def num_streams() -> str:
+ ...
+def num_streams(arg0: typing.Any) -> tuple[str, openvino._pyopenvino.OVAny]:
+ ...
+def optimal_batch_size() -> str:
+ ...
+def optimal_number_of_infer_requests() -> str:
+ ...
+def range_for_async_infer_requests() -> str:
+ ...
+def range_for_streams() -> str:
+ ...
+def supported_properties() -> str:
+ ...
+def value_cache_group_size() -> str:
+ ...
+def value_cache_group_size(arg0: int) -> tuple[str, openvino._pyopenvino.OVAny]:
+ ...
+def value_cache_precision() -> str:
+ ...
+def value_cache_precision(arg0: openvino._pyopenvino.Type) -> tuple[str, openvino._pyopenvino.OVAny]:
+ ...
+def weights_path() -> str:
+ ...
+def weights_path(arg0: str) -> tuple[str, openvino._pyopenvino.OVAny]:
+ ...
+def workload_type() -> str:
+ ...
+def workload_type(arg0: WorkloadType) -> tuple[str, openvino._pyopenvino.OVAny]:
+ ...
diff --git a/src/bindings/python/src/openvino/_pyopenvino/properties/device.pyi b/src/bindings/python/src/openvino/_pyopenvino/properties/device.pyi
new file mode 100644
index 00000000000..2b55d271e92
--- /dev/null
+++ b/src/bindings/python/src/openvino/_pyopenvino/properties/device.pyi
@@ -0,0 +1,120 @@
+# type: ignore
+"""
+openvino.properties.device submodule that simulates ov::device
+"""
+from __future__ import annotations
+import openvino._pyopenvino
+import typing
+__all__ = ['Capability', 'PCIInfo', 'Priorities', 'Type', 'architecture', 'capabilities', 'full_name', 'gops', 'id', 'luid', 'pci_info', 'priorities', 'properties', 'thermal', 'type', 'uuid']
+class Capability:
+ """
+ openvino.properties.device.Capability that simulates ov::device::capability
+ """
+ BF16: typing.ClassVar[str] = 'BF16'
+ BIN: typing.ClassVar[str] = 'BIN'
+ EXPORT_IMPORT: typing.ClassVar[str] = 'EXPORT_IMPORT'
+ FP16: typing.ClassVar[str] = 'FP16'
+ FP32: typing.ClassVar[str] = 'FP32'
+ INT16: typing.ClassVar[str] = 'INT16'
+ INT8: typing.ClassVar[str] = 'INT8'
+ WINOGRAD: typing.ClassVar[str] = 'WINOGRAD'
+class PCIInfo:
+ def __init__(self, arg0: int, arg1: int, arg2: int, arg3: int) -> None:
+ ...
+ def __repr__(self) -> typing.Any:
+ ...
+ @property
+ def bus(self) -> int:
+ ...
+ @property
+ def device(self) -> int:
+ ...
+ @property
+ def domain(self) -> int:
+ ...
+ @property
+ def function(self) -> int:
+ ...
+class Priorities:
+ pass
+class Type:
+ """
+ Members:
+
+ INTEGRATED
+
+ DISCRETE
+ """
+ DISCRETE: typing.ClassVar[Type] # value = <Type.DISCRETE: 1>
+ INTEGRATED: typing.ClassVar[Type] # value = <Type.INTEGRATED: 0>
+ __members__: typing.ClassVar[dict[str, Type]] # value = {'INTEGRATED': <Type.INTEGRATED: 0>, 'DISCRETE': <Type.DISCRETE: 1>}
+ def __eq__(self, other: typing.Any) -> bool:
+ ...
+ def __ge__(self, other: typing.Any) -> bool:
+ ...
+ def __getstate__(self) -> int:
+ ...
+ def __gt__(self, other: typing.Any) -> bool:
+ ...
+ def __hash__(self) -> int:
+ ...
+ def __index__(self) -> int:
+ ...
+ def __init__(self, value: int) -> None:
+ ...
+ def __int__(self) -> int:
+ ...
+ def __le__(self, other: typing.Any) -> bool:
+ ...
+ def __lt__(self, other: typing.Any) -> bool:
+ ...
+ def __ne__(self, other: typing.Any) -> bool:
+ ...
+ def __repr__(self) -> str:
+ ...
+ def __setstate__(self, state: int) -> None:
+ ...
+ def __str__(self) -> str:
+ ...
+ @property
+ def name(self) -> str:
+ ...
+ @property
+ def value(self) -> int:
+ ...
+def architecture() -> str:
+ ...
+def capabilities() -> str:
+ ...
+def full_name() -> str:
+ ...
+def gops() -> str:
+ ...
+def id() -> str:
+ ...
+def id(arg0: str) -> tuple[str, openvino._pyopenvino.OVAny]:
+ ...
+def luid() -> str:
+ ...
+def pci_info() -> str:
+ ...
+def priorities() -> str:
+ ...
+def priorities(*args) -> tuple[str, openvino._pyopenvino.OVAny]:
+ ...
+def properties() -> str:
+ ...
+def properties(*args) -> tuple[str, openvino._pyopenvino.OVAny]:
+ ...
+def thermal() -> str:
+ ...
+def type() -> str:
+ ...
+def uuid() -> str:
+ ...
diff --git a/src/bindings/python/src/openvino/_pyopenvino/properties/hint.pyi b/src/bindings/python/src/openvino/_pyopenvino/properties/hint.pyi
new file mode 100644
index 00000000000..43d4fb781f2
--- /dev/null
+++ b/src/bindings/python/src/openvino/_pyopenvino/properties/hint.pyi
@@ -0,0 +1,329 @@
+# type: ignore
+"""
+openvino.properties.hint submodule that simulates ov::hint
+"""
+from __future__ import annotations
+import openvino._pyopenvino
+import typing
+__all__ = ['ExecutionMode', 'ModelDistributionPolicy', 'PerformanceMode', 'Priority', 'SchedulingCoreType', 'activations_scale_factor', 'allow_auto_batching', 'dynamic_quantization_group_size', 'enable_cpu_pinning', 'enable_hyper_threading', 'execution_mode', 'inference_precision', 'kv_cache_precision', 'model', 'model_distribution_policy', 'model_priority', 'num_requests', 'performance_mode', 'scheduling_core_type']
+class ExecutionMode:
+ """
+ Members:
+
+ PERFORMANCE
+
+ ACCURACY
+ """
+ ACCURACY: typing.ClassVar[ExecutionMode] # value = <ExecutionMode.ACCURACY: 2>
+ PERFORMANCE: typing.ClassVar[ExecutionMode] # value = <ExecutionMode.PERFORMANCE: 1>
+ __members__: typing.ClassVar[dict[str, ExecutionMode]] # value = {'PERFORMANCE': <ExecutionMode.PERFORMANCE: 1>, 'ACCURACY': <ExecutionMode.ACCURACY: 2>}
+ def __eq__(self, other: typing.Any) -> bool:
+ ...
+ def __ge__(self, other: typing.Any) -> bool:
+ ...
+ def __getstate__(self) -> int:
+ ...
+ def __gt__(self, other: typing.Any) -> bool:
+ ...
+ def __hash__(self) -> int:
+ ...
+ def __index__(self) -> int:
+ ...
+ def __init__(self, value: int) -> None:
+ ...
+ def __int__(self) -> int:
+ ...
+ def __le__(self, other: typing.Any) -> bool:
+ ...
+ def __lt__(self, other: typing.Any) -> bool:
+ ...
+ def __ne__(self, other: typing.Any) -> bool:
+ ...
+ def __repr__(self) -> str:
+ ...
+ def __setstate__(self, state: int) -> None:
+ ...
+ def __str__(self) -> str:
+ ...
+ @property
+ def name(self) -> str:
+ ...
+ @property
+ def value(self) -> int:
+ ...
+class ModelDistributionPolicy:
+ """
+ Members:
+
+ TENSOR_PARALLEL
+
+ PIPELINE_PARALLEL
+ """
+ PIPELINE_PARALLEL: typing.ClassVar[ModelDistributionPolicy] # value = <ModelDistributionPolicy.PIPELINE_PARALLEL: 1>
+ TENSOR_PARALLEL: typing.ClassVar[ModelDistributionPolicy] # value = <ModelDistributionPolicy.TENSOR_PARALLEL: 0>
+ __members__: typing.ClassVar[dict[str, ModelDistributionPolicy]] # value = {'TENSOR_PARALLEL': <ModelDistributionPolicy.TENSOR_PARALLEL: 0>, 'PIPELINE_PARALLEL': <ModelDistributionPolicy.PIPELINE_PARALLEL: 1>}
+ def __eq__(self, other: typing.Any) -> bool:
+ ...
+ def __ge__(self, other: typing.Any) -> bool:
+ ...
+ def __getstate__(self) -> int:
+ ...
+ def __gt__(self, other: typing.Any) -> bool:
+ ...
+ def __hash__(self) -> int:
+ ...
+ def __index__(self) -> int:
+ ...
+ def __init__(self, value: int) -> None:
+ ...
+ def __int__(self) -> int:
+ ...
+ def __le__(self, other: typing.Any) -> bool:
+ ...
+ def __lt__(self, other: typing.Any) -> bool:
+ ...
+ def __ne__(self, other: typing.Any) -> bool:
+ ...
+ def __repr__(self) -> str:
+ ...
+ def __setstate__(self, state: int) -> None:
+ ...
+ def __str__(self) -> str:
+ ...
+ @property
+ def name(self) -> str:
+ ...
+ @property
+ def value(self) -> int:
+ ...
+class PerformanceMode:
+ """
+ Members:
+
+ LATENCY
+
+ THROUGHPUT
+
+ CUMULATIVE_THROUGHPUT
+ """
+ CUMULATIVE_THROUGHPUT: typing.ClassVar[PerformanceMode] # value = <PerformanceMode.CUMULATIVE_THROUGHPUT: 3>
+ LATENCY: typing.ClassVar[PerformanceMode] # value = <PerformanceMode.LATENCY: 1>
+ THROUGHPUT: typing.ClassVar[PerformanceMode] # value = <PerformanceMode.THROUGHPUT: 2>
+ __members__: typing.ClassVar[dict[str, PerformanceMode]] # value = {'LATENCY': <PerformanceMode.LATENCY: 1>, 'THROUGHPUT': <PerformanceMode.THROUGHPUT: 2>, 'CUMULATIVE_THROUGHPUT': <PerformanceMode.CUMULATIVE_THROUGHPUT: 3>}
+ def __eq__(self, other: typing.Any) -> bool:
+ ...
+ def __ge__(self, other: typing.Any) -> bool:
+ ...
+ def __getstate__(self) -> int:
+ ...
+ def __gt__(self, other: typing.Any) -> bool:
+ ...
+ def __hash__(self) -> int:
+ ...
+ def __index__(self) -> int:
+ ...
+ def __init__(self, value: int) -> None:
+ ...
+ def __int__(self) -> int:
+ ...
+ def __le__(self, other: typing.Any) -> bool:
+ ...
+ def __lt__(self, other: typing.Any) -> bool:
+ ...
+ def __ne__(self, other: typing.Any) -> bool:
+ ...
+ def __repr__(self) -> str:
+ ...
+ def __setstate__(self, state: int) -> None:
+ ...
+ def __str__(self) -> str:
+ ...
+ @property
+ def name(self) -> str:
+ ...
+ @property
+ def value(self) -> int:
+ ...
+class Priority:
+ """
+ Members:
+
+ LOW
+
+ MEDIUM
+
+ HIGH
+
+ DEFAULT
+ """
+ DEFAULT: typing.ClassVar[Priority] # value = <Priority.MEDIUM: 1>
+ HIGH: typing.ClassVar[Priority] # value = <Priority.HIGH: 2>
+ LOW: typing.ClassVar[Priority] # value = <Priority.LOW: 0>
+ MEDIUM: typing.ClassVar[Priority] # value = <Priority.MEDIUM: 1>
+ __members__: typing.ClassVar[dict[str, Priority]] # value = {'LOW': <Priority.LOW: 0>, 'MEDIUM': <Priority.MEDIUM: 1>, 'HIGH': <Priority.HIGH: 2>, 'DEFAULT': <Priority.MEDIUM: 1>}
+ def __eq__(self, other: typing.Any) -> bool:
+ ...
+ def __ge__(self, other: typing.Any) -> bool:
+ ...
+ def __getstate__(self) -> int:
+ ...
+ def __gt__(self, other: typing.Any) -> bool:
+ ...
+ def __hash__(self) -> int:
+ ...
+ def __index__(self) -> int:
+ ...
+ def __init__(self, value: int) -> None:
+ ...
+ def __int__(self) -> int:
+ ...
+ def __le__(self, other: typing.Any) -> bool:
+ ...
+ def __lt__(self, other: typing.Any) -> bool:
+ ...
+ def __ne__(self, other: typing.Any) -> bool:
+ ...
+ def __repr__(self) -> str:
+ ...
+ def __setstate__(self, state: int) -> None:
+ ...
+ def __str__(self) -> str:
+ ...
+ @property
+ def name(self) -> str:
+ ...
+ @property
+ def value(self) -> int:
+ ...
+class SchedulingCoreType:
+ """
+ Members:
+
+ ANY_CORE
+
+ PCORE_ONLY
+
+ ECORE_ONLY
+ """
+ ANY_CORE: typing.ClassVar[SchedulingCoreType] # value = <SchedulingCoreType.ANY_CORE: 0>
+ ECORE_ONLY: typing.ClassVar[SchedulingCoreType] # value = <SchedulingCoreType.ECORE_ONLY: 2>
+ PCORE_ONLY: typing.ClassVar[SchedulingCoreType] # value = <SchedulingCoreType.PCORE_ONLY: 1>
+ __members__: typing.ClassVar[dict[str, SchedulingCoreType]] # value = {'ANY_CORE': <SchedulingCoreType.ANY_CORE: 0>, 'PCORE_ONLY': <SchedulingCoreType.PCORE_ONLY: 1>, 'ECORE_ONLY': <SchedulingCoreType.ECORE_ONLY: 2>}
+ def __eq__(self, other: typing.Any) -> bool:
+ ...
+ def __ge__(self, other: typing.Any) -> bool:
+ ...
+ def __getstate__(self) -> int:
+ ...
+ def __gt__(self, other: typing.Any) -> bool:
+ ...
+ def __hash__(self) -> int:
+ ...
+ def __index__(self) -> int:
+ ...
+ def __init__(self, value: int) -> None:
+ ...
+ def __int__(self) -> int:
+ ...
+ def __le__(self, other: typing.Any) -> bool:
+ ...
+ def __lt__(self, other: typing.Any) -> bool:
+ ...
+ def __ne__(self, other: typing.Any) -> bool:
+ ...
+ def __repr__(self) -> str:
+ ...
+ def __setstate__(self, state: int) -> None:
+ ...
+ def __str__(self) -> str:
+ ...
+ @property
+ def name(self) -> str:
+ ...
+ @property
+ def value(self) -> int:
+ ...
+def activations_scale_factor() -> str:
+ ...
+def activations_scale_factor(arg0: float) -> tuple[str, openvino._pyopenvino.OVAny]:
+ ...
+def allow_auto_batching() -> str:
+ ...
+def allow_auto_batching(arg0: bool) -> tuple[str, openvino._pyopenvino.OVAny]:
+ ...
+def dynamic_quantization_group_size() -> str:
+ ...
+def dynamic_quantization_group_size(arg0: int) -> tuple[str, openvino._pyopenvino.OVAny]:
+ ...
+def enable_cpu_pinning() -> str:
+ ...
+def enable_cpu_pinning(arg0: bool) -> tuple[str, openvino._pyopenvino.OVAny]:
+ ...
+def enable_hyper_threading() -> str:
+ ...
+def enable_hyper_threading(arg0: bool) -> tuple[str, openvino._pyopenvino.OVAny]:
+ ...
+def execution_mode() -> str:
+ ...
+def execution_mode(arg0: ExecutionMode) -> tuple[str, openvino._pyopenvino.OVAny]:
+ ...
+def inference_precision() -> str:
+ ...
+def inference_precision(arg0: openvino._pyopenvino.Type) -> tuple[str, openvino._pyopenvino.OVAny]:
+ ...
+def kv_cache_precision() -> str:
+ ...
+def kv_cache_precision(arg0: openvino._pyopenvino.Type) -> tuple[str, openvino._pyopenvino.OVAny]:
+ ...
+def model() -> str:
+ ...
+def model(arg0: openvino._pyopenvino.Model) -> tuple[str, openvino._pyopenvino.OVAny]:
+ ...
+def model_distribution_policy() -> str:
+ ...
+def model_distribution_policy(arg0: set[ModelDistributionPolicy]) -> tuple[str, openvino._pyopenvino.OVAny]:
+ ...
+def model_priority() -> str:
+ ...
+def model_priority(arg0: Priority) -> tuple[str, openvino._pyopenvino.OVAny]:
+ ...
+def num_requests() -> str:
+ ...
+def num_requests(arg0: int) -> tuple[str, openvino._pyopenvino.OVAny]:
+ ...
+def performance_mode() -> str:
+ ...
+def performance_mode(arg0: PerformanceMode) -> tuple[str, openvino._pyopenvino.OVAny]:
+ ...
+def scheduling_core_type() -> str:
+ ...
+def scheduling_core_type(arg0: SchedulingCoreType) -> tuple[str, openvino._pyopenvino.OVAny]:
+ ...
diff --git a/src/bindings/python/src/openvino/_pyopenvino/properties/intel_auto.pyi b/src/bindings/python/src/openvino/_pyopenvino/properties/intel_auto.pyi
new file mode 100644
index 00000000000..d8d3814ebb7
--- /dev/null
+++ b/src/bindings/python/src/openvino/_pyopenvino/properties/intel_auto.pyi
@@ -0,0 +1,80 @@
+# type: ignore
+"""
+openvino.properties.intel_auto submodule that simulates ov::intel_auto
+"""
+from __future__ import annotations
+import openvino._pyopenvino
+import typing
+__all__ = ['SchedulePolicy', 'device_bind_buffer', 'enable_runtime_fallback', 'enable_startup_fallback', 'schedule_policy']
+class SchedulePolicy:
+ """
+ Members:
+
+ ROUND_ROBIN
+
+ DEVICE_PRIORITY
+
+ DEFAULT
+ """
+ DEFAULT: typing.ClassVar[SchedulePolicy] # value = <SchedulePolicy.DEVICE_PRIORITY: 1>
+ DEVICE_PRIORITY: typing.ClassVar[SchedulePolicy] # value = <SchedulePolicy.DEVICE_PRIORITY: 1>
+ ROUND_ROBIN: typing.ClassVar[SchedulePolicy] # value = <SchedulePolicy.ROUND_ROBIN: 0>
+ __members__: typing.ClassVar[dict[str, SchedulePolicy]] # value = {'ROUND_ROBIN': <SchedulePolicy.ROUND_ROBIN: 0>, 'DEVICE_PRIORITY': <SchedulePolicy.DEVICE_PRIORITY: 1>, 'DEFAULT': <SchedulePolicy.DEVICE_PRIORITY: 1>}
+ def __eq__(self, other: typing.Any) -> bool:
+ ...
+ def __ge__(self, other: typing.Any) -> bool:
+ ...
+ def __getstate__(self) -> int:
+ ...
+ def __gt__(self, other: typing.Any) -> bool:
+ ...
+ def __hash__(self) -> int:
+ ...
+ def __index__(self) -> int:
+ ...
+ def __init__(self, value: int) -> None:
+ ...
+ def __int__(self) -> int:
+ ...
+ def __le__(self, other: typing.Any) -> bool:
+ ...
+ def __lt__(self, other: typing.Any) -> bool:
+ ...
+ def __ne__(self, other: typing.Any) -> bool:
+ ...
+ def __repr__(self) -> str:
+ ...
+ def __setstate__(self, state: int) -> None:
+ ...
+ def __str__(self) -> str:
+ ...
+ @property
+ def name(self) -> str:
+ ...
+ @property
+ def value(self) -> int:
+ ...
+def device_bind_buffer() -> str:
+ ...
+def device_bind_buffer(arg0: bool) -> tuple[str, openvino._pyopenvino.OVAny]:
+ ...
+def enable_runtime_fallback() -> str:
+ ...
+def enable_runtime_fallback(arg0: bool) -> tuple[str, openvino._pyopenvino.OVAny]:
+ ...
+def enable_startup_fallback() -> str:
+ ...
+def enable_startup_fallback(arg0: bool) -> tuple[str, openvino._pyopenvino.OVAny]:
+ ...
+def schedule_policy() -> str:
+ ...
+def schedule_policy(arg0: SchedulePolicy) -> tuple[str, openvino._pyopenvino.OVAny]:
+ ...
diff --git a/src/bindings/python/src/openvino/_pyopenvino/properties/intel_cpu.pyi b/src/bindings/python/src/openvino/_pyopenvino/properties/intel_cpu.pyi
new file mode 100644
index 00000000000..4f78115fe2a
--- /dev/null
+++ b/src/bindings/python/src/openvino/_pyopenvino/properties/intel_cpu.pyi
@@ -0,0 +1,20 @@
+# type: ignore
+"""
+openvino.properties.intel_cpu submodule that simulates ov::intel_cpu
+"""
+from __future__ import annotations
+import openvino._pyopenvino
+import typing
+__all__ = ['denormals_optimization', 'sparse_weights_decompression_rate']
+def denormals_optimization() -> str:
+ ...
+def denormals_optimization(arg0: bool) -> tuple[str, openvino._pyopenvino.OVAny]:
+ ...
+def sparse_weights_decompression_rate() -> str:
+ ...
+def sparse_weights_decompression_rate(arg0: float) -> tuple[str, openvino._pyopenvino.OVAny]:
+ ...
diff --git a/src/bindings/python/src/openvino/_pyopenvino/properties/intel_gpu/__init__.pyi b/src/bindings/python/src/openvino/_pyopenvino/properties/intel_gpu/__init__.pyi
new file mode 100644
index 00000000000..a155815b499
--- /dev/null
+++ b/src/bindings/python/src/openvino/_pyopenvino/properties/intel_gpu/__init__.pyi
@@ -0,0 +1,40 @@
+# type: ignore
+"""
+openvino.properties.intel_gpu submodule that simulates ov::intel_gpu
+"""
+from __future__ import annotations
+from . import hint
+import openvino._pyopenvino
+import typing
+__all__ = ['CapabilityGPU', 'MemoryType', 'device_total_mem_size', 'disable_winograd_convolution', 'enable_loop_unrolling', 'execution_units_count', 'hint', 'memory_statistics', 'uarch_version']
+class CapabilityGPU:
+ """
+ openvino.properties.intel_gpu.CapabilityGPU submodule that simulates ov::intel_gpu::capability
+ """
+ HW_MATMUL: typing.ClassVar[str] = 'GPU_HW_MATMUL'
+class MemoryType:
+ """
+ openvino.properties.intel_gpu.MemoryType submodule that simulates ov::intel_gpu::memory_type
+ """
+ buffer: typing.ClassVar[str] = 'GPU_BUFFER'
+ surface: typing.ClassVar[str] = 'GPU_SURFACE'
+def device_total_mem_size() -> str:
+ ...
+def disable_winograd_convolution() -> str:
+ ...
+def disable_winograd_convolution(arg0: bool) -> tuple[str, openvino._pyopenvino.OVAny]:
+ ...
+def enable_loop_unrolling() -> str:
+ ...
+def enable_loop_unrolling(arg0: bool) -> tuple[str, openvino._pyopenvino.OVAny]:
+ ...
+def execution_units_count() -> str:
+ ...
+def memory_statistics() -> str:
+ ...
+def uarch_version() -> str:
+ ...
diff --git a/src/bindings/python/src/openvino/_pyopenvino/properties/intel_gpu/hint.pyi b/src/bindings/python/src/openvino/_pyopenvino/properties/intel_gpu/hint.pyi
new file mode 100644
index 00000000000..d6207fa46dc
--- /dev/null
+++ b/src/bindings/python/src/openvino/_pyopenvino/properties/intel_gpu/hint.pyi
@@ -0,0 +1,41 @@
+# type: ignore
+"""
+openvino.properties.intel_gpu.hint submodule that simulates ov::intel_gpu::hint
+"""
+from __future__ import annotations
+import openvino._pyopenvino
+import openvino._pyopenvino.properties.hint
+import typing
+__all__ = ['ThrottleLevel', 'available_device_mem', 'host_task_priority', 'queue_priority', 'queue_throttle']
+class ThrottleLevel:
+ """
+ openvino.properties.intel_gpu.hint.ThrottleLevel that simulates ov::intel_gpu::hint::ThrottleLevel
+ """
+ DEFAULT: typing.ClassVar[openvino._pyopenvino.properties.hint.Priority] # value = <Priority.MEDIUM: 1>
+ HIGH: typing.ClassVar[openvino._pyopenvino.properties.hint.Priority] # value = <Priority.HIGH: 2>
+ LOW: typing.ClassVar[openvino._pyopenvino.properties.hint.Priority] # value = <Priority.LOW: 0>
+ MEDIUM: typing.ClassVar[openvino._pyopenvino.properties.hint.Priority] # value = <Priority.MEDIUM: 1>
+def available_device_mem() -> str:
+ ...
+def available_device_mem(arg0: int) -> tuple[str, openvino._pyopenvino.OVAny]:
+ ...
+def host_task_priority() -> str:
+ ...
+def host_task_priority(arg0: openvino._pyopenvino.properties.hint.Priority) -> tuple[str, openvino._pyopenvino.OVAny]:
+ ...
+def queue_priority() -> str:
+ ...
+def queue_priority(arg0: openvino._pyopenvino.properties.hint.Priority) -> tuple[str, openvino._pyopenvino.OVAny]:
+ ...
+def queue_throttle() -> str:
+ ...
+def queue_throttle(arg0: openvino._pyopenvino.properties.hint.Priority) -> tuple[str, openvino._pyopenvino.OVAny]:
+ ...
diff --git a/src/bindings/python/src/openvino/_pyopenvino/properties/intel_npu.pyi b/src/bindings/python/src/openvino/_pyopenvino/properties/intel_npu.pyi
new file mode 100644
index 00000000000..2ffeee216cd
--- /dev/null
+++ b/src/bindings/python/src/openvino/_pyopenvino/properties/intel_npu.pyi
@@ -0,0 +1,64 @@
+# type: ignore
+"""
+openvino.properties.intel_npu submodule that simulates ov::intel_npu
+"""
+from __future__ import annotations
+import openvino._pyopenvino
+import typing
+__all__ = ['bypass_umd_caching', 'compilation_mode_params', 'compiler_dynamic_quantization', 'compiler_version', 'defer_weights_load', 'device_alloc_mem_size', 'device_total_mem_size', 'driver_version', 'max_tiles', 'qdq_optimization', 'tiles', 'turbo']
+def bypass_umd_caching() -> str:
+ ...
+def bypass_umd_caching(arg0: bool) -> tuple[str, openvino._pyopenvino.OVAny]:
+ ...
+def compilation_mode_params() -> str:
+ ...
+def compilation_mode_params(arg0: str) -> tuple[str, openvino._pyopenvino.OVAny]:
+ ...
+def compiler_dynamic_quantization() -> str:
+ ...
+def compiler_dynamic_quantization(arg0: bool) -> tuple[str, openvino._pyopenvino.OVAny]:
+ ...
+def compiler_version() -> str:
+ ...
+def defer_weights_load() -> str:
+ ...
+def defer_weights_load(arg0: bool) -> tuple[str, openvino._pyopenvino.OVAny]:
+ ...
+def device_alloc_mem_size() -> str:
+ ...
+def device_total_mem_size() -> str:
+ ...
+def driver_version() -> str:
+ ...
+def max_tiles() -> str:
+ ...
+def max_tiles(arg0: int) -> tuple[str, openvino._pyopenvino.OVAny]:
+ ...
+def qdq_optimization() -> str:
+ ...
+def qdq_optimization(arg0: bool) -> tuple[str, openvino._pyopenvino.OVAny]:
+ ...
+def tiles() -> str:
+ ...
+def tiles(arg0: int) -> tuple[str, openvino._pyopenvino.OVAny]:
+ ...
+def turbo() -> str:
+ ...
+def turbo(arg0: bool) -> tuple[str, openvino._pyopenvino.OVAny]:
+ ...
diff --git a/src/bindings/python/src/openvino/_pyopenvino/properties/log.pyi b/src/bindings/python/src/openvino/_pyopenvino/properties/log.pyi
new file mode 100644
index 00000000000..7c1b263ae94
--- /dev/null
+++ b/src/bindings/python/src/openvino/_pyopenvino/properties/log.pyi
@@ -0,0 +1,71 @@
+# type: ignore
+"""
+openvino.properties.log submodule that simulates ov::log
+"""
+from __future__ import annotations
+import openvino._pyopenvino
+import typing
+__all__ = ['Level', 'level']
+class Level:
+ """
+ Members:
+
+ NO
+
+ ERR
+
+ WARNING
+
+ INFO
+
+ DEBUG
+
+ TRACE
+ """
+ DEBUG: typing.ClassVar[Level] # value = <Level.DEBUG: 3>
+ ERR: typing.ClassVar[Level] # value = <Level.ERR: 0>
+ INFO: typing.ClassVar[Level] # value = <Level.INFO: 2>
+ NO: typing.ClassVar[Level] # value = <Level.NO: -1>
+ TRACE: typing.ClassVar[Level] # value = <Level.TRACE: 4>
+ WARNING: typing.ClassVar[Level] # value = <Level.WARNING: 1>
+ __members__: typing.ClassVar[dict[str, Level]] # value = {'NO': <Level.NO: -1>, 'ERR': <Level.ERR: 0>, 'WARNING': <Level.WARNING: 1>, 'INFO': <Level.INFO: 2>, 'DEBUG': <Level.DEBUG: 3>, 'TRACE': <Level.TRACE: 4>}
+ def __eq__(self, other: typing.Any) -> bool:
+ ...
+ def __ge__(self, other: typing.Any) -> bool:
+ ...
+ def __getstate__(self) -> int:
+ ...
+ def __gt__(self, other: typing.Any) -> bool:
+ ...
+ def __hash__(self) -> int:
+ ...
+ def __index__(self) -> int:
+ ...
+ def __init__(self, value: int) -> None:
+ ...
+ def __int__(self) -> int:
+ ...
+ def __le__(self, other: typing.Any) -> bool:
+ ...
+ def __lt__(self, other: typing.Any) -> bool:
+ ...
+ def __ne__(self, other: typing.Any) -> bool:
+ ...
+ def __repr__(self) -> str:
+ ...
+ def __setstate__(self, state: int) -> None:
+ ...
+ def __str__(self) -> str:
+ ...
+ @property
+ def name(self) -> str:
+ ...
+ @property
+ def value(self) -> int:
+ ...
+def level() -> str:
+ ...
+def level(arg0: Level) -> tuple[str, openvino._pyopenvino.OVAny]:
+ ...
diff --git a/src/bindings/python/src/openvino/_pyopenvino/properties/streams.pyi b/src/bindings/python/src/openvino/_pyopenvino/properties/streams.pyi
new file mode 100644
index 00000000000..38c40327fb0
--- /dev/null
+++ b/src/bindings/python/src/openvino/_pyopenvino/properties/streams.pyi
@@ -0,0 +1,28 @@
+# type: ignore
+"""
+openvino.properties.streams submodule that simulates ov::streams
+"""
+from __future__ import annotations
+import openvino._pyopenvino
+import typing
+__all__ = ['Num', 'num']
+class Num:
+ AUTO: typing.ClassVar[Num] # value = <openvino._pyopenvino.properties.streams.Num object>
+ NUMA: typing.ClassVar[Num] # value = <openvino._pyopenvino.properties.streams.Num object>
+ @typing.overload
+ def __init__(self) -> None:
+ ...
+ @typing.overload
+ def __init__(self, arg0: int) -> None:
+ ...
+ def to_integer(self) -> int:
+ ...
+def num() -> str:
+ ...
+def num(arg0: Num) -> tuple[str, openvino._pyopenvino.OVAny]:
+ ...
+def num(arg0: int) -> tuple[str, openvino._pyopenvino.OVAny]:
+ ...
diff --git a/src/bindings/python/src/openvino/_pyopenvino/util.pyi b/src/bindings/python/src/openvino/_pyopenvino/util.pyi
new file mode 100644
index 00000000000..e118dfca6ae
--- /dev/null
+++ b/src/bindings/python/src/openvino/_pyopenvino/util.pyi
@@ -0,0 +1,31 @@
+# type: ignore
+"""
+openvino.utils
+"""
+from __future__ import annotations
+import numpy
+import openvino._pyopenvino
+import typing
+__all__ = ['deprecation_warning', 'numpy_to_c', 'replace_node', 'replace_output_update_name']
+def deprecation_warning(function_name: str, version: str = '', message: str = '', stacklevel: int = 2) -> None:
+ """
+ Prints deprecation warning "{function_name} is deprecated and will be removed in version {version}. {message}".
+
+ :param function_name: The name of the deprecated function.
+ :param version: The version in which the code will be removed.
+ :param message: A message explaining why the function is deprecated.
+ :param stacklevel: How many layers should be propagated.
+ """
+def numpy_to_c(arg0: numpy.ndarray[typing.Any, numpy.dtype[typing.Any]]) -> capsule:
+ ...
+def replace_node(target: openvino._pyopenvino.Node, replacement: openvino._pyopenvino.Node) -> None:
+ ...
+def replace_node(target: openvino._pyopenvino.Node, replacement: list[openvino._pyopenvino.Output]) -> None:
+ ...
+def replace_node(target: openvino._pyopenvino.Node, replacement: openvino._pyopenvino.Node, outputs_order: list[int]) -> None:
+ ...
+def replace_output_update_name(output: openvino._pyopenvino.Output, target_output: openvino._pyopenvino.Output) -> bool:
+ ...
diff --git a/src/bindings/python/src/openvino/exceptions.pyi b/src/bindings/python/src/openvino/exceptions.pyi
new file mode 100644
index 00000000000..7fffdc3b07b
--- /dev/null
+++ b/src/bindings/python/src/openvino/exceptions.pyi
@@ -0,0 +1,18 @@
+# type: ignore
+"""
+openvino exceptions hierarchy. All exceptions are descendants of OVError.
+"""
+from __future__ import annotations
+__all__ = ['OVError', 'OVTypeError', 'UserInputError']
+class OVError(Exception):
+ """
+ Base class for OV exceptions.
+ """
+class OVTypeError(OVError, TypeError):
+ """
+ Type mismatch error.
+ """
+class UserInputError(OVError):
+ """
+ User provided unexpected input.
+ """
diff --git a/src/bindings/python/src/openvino/experimental.pyi b/src/bindings/python/src/openvino/experimental.pyi
new file mode 100644
index 00000000000..a9f36a04eaa
--- /dev/null
+++ b/src/bindings/python/src/openvino/experimental.pyi
@@ -0,0 +1,12 @@
+# type: ignore
+"""
+
+Package: openvino
+This module provides access to experimental functionality that is subject to change without prior notice.
+"""
+from __future__ import annotations
+from openvino._pyopenvino.experimental import evaluate_as_partial_shape
+from openvino._pyopenvino.experimental import evaluate_both_bounds
+from openvino._pyopenvino.experimental import set_element_type
+from openvino._pyopenvino.experimental import set_tensor_type
+__all__ = ['evaluate_as_partial_shape', 'evaluate_both_bounds', 'set_element_type', 'set_tensor_type']
diff --git a/src/bindings/python/src/openvino/frontend/__init__.pyi b/src/bindings/python/src/openvino/frontend/__init__.pyi
new file mode 100644
index 00000000000..00d3adb1ad0
--- /dev/null
+++ b/src/bindings/python/src/openvino/frontend/__init__.pyi
@@ -0,0 +1,26 @@
+# type: ignore
+"""
+
+Package: openvino
+Low level wrappers for the FrontEnd C++ API.
+"""
+from __future__ import annotations
+from . import frontend
+from openvino.frontend.frontend import FrontEnd
+from openvino.frontend.frontend import FrontEndManager
+from openvino._pyopenvino.frontend import OpExtension
+from openvino._pyopenvino import ConversionExtension
+from openvino._pyopenvino import DecoderTransformationExtension
+from openvino._pyopenvino import GeneralFailure
+from openvino._pyopenvino import get_version
+from openvino._pyopenvino import InitializationFailure
+from openvino._pyopenvino import InputModel
+from openvino._pyopenvino import NodeContext
+from openvino._pyopenvino import NotImplementedFailure
+from openvino._pyopenvino import OpConversionFailure
+from openvino._pyopenvino import OpValidationFailure
+from openvino._pyopenvino import Place
+from openvino._pyopenvino import ProgressReporterExtension
+from openvino._pyopenvino import TelemetryExtension
+__all__ = ['ConversionExtension', 'DecoderTransformationExtension', 'FrontEnd', 'FrontEndManager', 'GeneralFailure', 'InitializationFailure', 'InputModel', 'NodeContext', 'NotImplementedFailure', 'OpConversionFailure', 'OpExtension', 'OpValidationFailure', 'Place', 'ProgressReporterExtension', 'TelemetryExtension', 'frontend', 'get_version']
+__version__: str = 'version_string'
diff --git a/src/bindings/python/src/openvino/frontend/frontend.pyi b/src/bindings/python/src/openvino/frontend/frontend.pyi
new file mode 100644
index 00000000000..50997bff155
--- /dev/null
+++ b/src/bindings/python/src/openvino/frontend/frontend.pyi
@@ -0,0 +1,25 @@
+# type: ignore
+from __future__ import annotations
+from openvino._ov_api import Model
+from openvino._pyopenvino import FrontEnd as FrontEndBase
+from openvino._pyopenvino import FrontEndManager as FrontEndManagerBase
+from openvino._pyopenvino import InputModel
+import openvino._ov_api
+import openvino._pyopenvino
+__all__ = ['FrontEnd', 'FrontEndBase', 'FrontEndManager', 'FrontEndManagerBase', 'InputModel', 'Model']
+class FrontEnd(openvino._pyopenvino.FrontEnd):
+ def __init__(self, fe: openvino._pyopenvino.FrontEnd) -> None:
+ ...
+ def convert(self, model: typing.Union[openvino._ov_api.Model, openvino._pyopenvino.InputModel]) -> openvino._ov_api.Model:
+ ...
+ def convert_partially(self, model: openvino._pyopenvino.InputModel) -> openvino._ov_api.Model:
+ ...
+ def decode(self, model: openvino._pyopenvino.InputModel) -> openvino._ov_api.Model:
+ ...
+ def normalize(self, model: openvino._ov_api.Model) -> None:
+ ...
+class FrontEndManager(openvino._pyopenvino.FrontEndManager):
+ def load_by_framework(self, framework: str) -> typing.Optional[openvino.frontend.frontend.FrontEnd]:
+ ...
+ def load_by_model(self, model: str) -> typing.Optional[openvino.frontend.frontend.FrontEnd]:
+ ...
diff --git a/src/bindings/python/src/openvino/frontend/pytorch/quantized.py b/src/bindings/python/src/openvino/frontend/pytorch/quantized.py
index 81c09797151..f584408ce14 100644
--- a/src/bindings/python/src/openvino/frontend/pytorch/quantized.py
+++ b/src/bindings/python/src/openvino/frontend/pytorch/quantized.py
@@ -19,9 +19,9 @@ def detect_quantized_model(model: torch.nn.Module) -> Optional[str]:
"""
if (model and getattr(model, "config", None)
and getattr(model.config, "quantization_config", None)):
- return model.config.quantization_config.quant_method
+ return model.config.quantization_config.quant_method # type: ignore
if getattr(model, "model", None):
- return detect_quantized_model(model.model)
+ return detect_quantized_model(model.model) # type: ignore[arg-type]
return None
@@ -53,7 +53,7 @@ def patch_quantized(model: torch.nn.Module) -> None:
patch_model(model, extensions,
"_openvino_quantized_patch_orig_forward") # type: ignore
elif quant_type == "gptq":
- model._openvino_gptq_patched = True
+ model._openvino_gptq_patched = True # type: ignore[assignment]
gptq.patch_model(model) # type: ignore
else:
raise RuntimeError(f"Unknown quantization type: {quant_type}.")
diff --git a/src/bindings/python/src/openvino/helpers/__init__.pyi b/src/bindings/python/src/openvino/helpers/__init__.pyi
new file mode 100644
index 00000000000..144a12186e1
--- /dev/null
+++ b/src/bindings/python/src/openvino/helpers/__init__.pyi
@@ -0,0 +1,6 @@
+# type: ignore
+from __future__ import annotations
+from . import packing
+from openvino.helpers.packing import pack_data
+from openvino.helpers.packing import unpack_data
+__all__ = ['pack_data', 'packing', 'unpack_data']
diff --git a/src/bindings/python/src/openvino/helpers/packing.pyi b/src/bindings/python/src/openvino/helpers/packing.pyi
new file mode 100644
index 00000000000..57fa5d0a51d
--- /dev/null
+++ b/src/bindings/python/src/openvino/helpers/packing.pyi
@@ -0,0 +1,41 @@
+# type: ignore
+from __future__ import annotations
+from openvino._pyopenvino import Shape
+from openvino._pyopenvino import Type
+import numpy
+import numpy as np
+import openvino._pyopenvino
+__all__ = ['Shape', 'Type', 'np', 'pack_data', 'unpack_data']
+def pack_data(array: numpy.ndarray, type: openvino._pyopenvino.Type) -> numpy.ndarray:
+ """
+ Represent array values as u1,u4 or i4 openvino element type and pack them into uint8 numpy array.
+
+ If the number of elements in array is odd we pad them with zero value to be able to fit the bit
+ sequence into the uint8 array.
+
+ Example: two uint8 values - [7, 8] can be represented as uint4 values and be packed into one int8
+ value - [120], because [7, 8] bit representation is [0111, 1000] will be viewed
+ as [01111000], which is bit representation of [120].
+
+ :param array: numpy array with values to pack.
+ :type array: numpy array
+ :param type: Type to interpret the array values. Type must be u1, u4, i4, nf4 or f4e2m1.
+ :type type: openvino.Type
+
+ """
+def unpack_data(array: numpy.ndarray, type: openvino._pyopenvino.Type, shape: typing.Union[list, openvino._pyopenvino.Shape]) -> numpy.ndarray:
+ """
+ Extract openvino element type values from array into new uint8/int8 array given shape.
+
+ Example: uint8 value [120] can be represented as two u4 values and be unpacked into [7, 8]
+ because [120] bit representation is [01111000] will be viewed as [0111, 1000],
+ which is bit representation of [7, 8].
+
+ :param array: numpy array to unpack.
+ :type array: numpy array
+ :param type: Type to extract from array values. Type must be u1, u4, i4, nf4 or f4e2m1.
+ :type type: openvino.Type
+ :param shape: the new shape for the unpacked array.
+ :type shape: Union[list, openvino.Shape]
+
+ """
diff --git a/src/bindings/python/src/openvino/op/__init__.pyi b/src/bindings/python/src/openvino/op/__init__.pyi
new file mode 100644
index 00000000000..d2e453674ab
--- /dev/null
+++ b/src/bindings/python/src/openvino/op/__init__.pyi
@@ -0,0 +1,18 @@
+# type: ignore
+"""
+
+Package: openvino.op
+Low level wrappers for the c++ api in ov::op.
+"""
+from __future__ import annotations
+from . import util
+from openvino._pyopenvino.op import assign
+from openvino._pyopenvino.op import Constant
+from openvino._pyopenvino.op import if_op
+from openvino._pyopenvino.op import loop
+from openvino._pyopenvino.op import _PagedAttentionExtension
+from openvino._pyopenvino.op import Parameter
+from openvino._pyopenvino.op import read_value
+from openvino._pyopenvino.op import Result
+from openvino._pyopenvino.op import tensor_iterator
+__all__ = ['Constant', 'Parameter', 'Result', 'assign', 'if_op', 'loop', 'read_value', 'tensor_iterator', 'util']
diff --git a/src/bindings/python/src/openvino/op/util.pyi b/src/bindings/python/src/openvino/op/util.pyi
new file mode 100644
index 00000000000..281b5f244f9
--- /dev/null
+++ b/src/bindings/python/src/openvino/op/util.pyi
@@ -0,0 +1,21 @@
+# type: ignore
+"""
+
+Package: openvino.op.util
+Low level wrappers for the c++ api in ov::op::util.
+"""
+from __future__ import annotations
+from openvino._pyopenvino.op.util import ArithmeticReduction
+from openvino._pyopenvino.op.util import BinaryElementwiseArithmetic
+from openvino._pyopenvino.op.util import BinaryElementwiseComparison
+from openvino._pyopenvino.op.util import BinaryElementwiseLogical
+from openvino._pyopenvino.op.util import BodyOutputDescription
+from openvino._pyopenvino.op.util import ConcatOutputDescription
+from openvino._pyopenvino.op.util import IndexReduction
+from openvino._pyopenvino.op.util import InvariantInputDescription
+from openvino._pyopenvino.op.util import MergedInputDescription
+from openvino._pyopenvino.op.util import SliceInputDescription
+from openvino._pyopenvino.op.util import UnaryElementwiseArithmetic
+from openvino._pyopenvino.op.util import Variable
+from openvino._pyopenvino.op.util import VariableInfo
+__all__ = ['ArithmeticReduction', 'BinaryElementwiseArithmetic', 'BinaryElementwiseComparison', 'BinaryElementwiseLogical', 'BodyOutputDescription', 'ConcatOutputDescription', 'IndexReduction', 'InvariantInputDescription', 'MergedInputDescription', 'SliceInputDescription', 'UnaryElementwiseArithmetic', 'Variable', 'VariableInfo']
diff --git a/src/bindings/python/src/openvino/opset1/__init__.pyi b/src/bindings/python/src/openvino/opset1/__init__.pyi
new file mode 100644
index 00000000000..6a265e0715c
--- /dev/null
+++ b/src/bindings/python/src/openvino/opset1/__init__.pyi
@@ -0,0 +1,111 @@
+# type: ignore
+from __future__ import annotations
+from . import ops
+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 maximum
+from openvino.opset1.ops import max_pool
+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 proposal
+from openvino.opset1.ops import psroi_pooling
+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 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
+from openvino._pyopenvino.op import tensor_iterator
+__all__ = ['abs', 'absolute', 'acos', 'add', 'asin', 'atan', 'avg_pool', 'batch_norm_inference', 'binary_convolution', 'broadcast', 'ceil', 'ceiling', 'clamp', 'concat', 'constant', 'convert', 'convert_like', 'convolution', 'convolution_backprop_data', 'cos', 'cosh', 'ctc_greedy_decoder', 'deformable_convolution', 'deformable_psroi_pooling', 'depth_to_space', 'detection_output', 'divide', 'elu', 'equal', 'erf', 'exp', 'fake_quantize', 'floor', 'floor_mod', 'gather', 'gather_tree', 'greater', 'greater_equal', 'grn', 'group_convolution', 'group_convolution_backprop_data', 'hard_sigmoid', 'interpolate', 'less', 'less_equal', 'log', 'logical_and', 'logical_not', 'logical_or', 'logical_xor', 'lrn', 'lstm_cell', 'matmul', 'max_pool', 'maximum', 'minimum', 'mod', 'multiply', 'negative', 'non_max_suppression', 'normalize_l2', 'not_equal', 'one_hot', 'ops', 'pad', 'parameter', 'power', 'prelu', 'prior_box', 'prior_box_clustered', 'proposal', 'psroi_pooling', 'range', 'reduce_logical_and', 'reduce_logical_or', 'reduce_max', 'reduce_mean', 'reduce_min', 'reduce_prod', 'reduce_sum', 'region_yolo', 'relu', 'reshape', 'result', 'reverse_sequence', 'select', 'selu', 'shape_of', 'sigmoid', 'sign', 'sin', 'sinh', 'softmax', 'space_to_depth', 'split', 'sqrt', 'squared_difference', 'squeeze', 'strided_slice', 'subtract', 'tan', 'tanh', 'tensor_iterator', 'tile', 'topk', 'transpose', 'unsqueeze', 'variadic_split']
diff --git a/src/bindings/python/src/openvino/opset1/ops.pyi b/src/bindings/python/src/openvino/opset1/ops.pyi
new file mode 100644
index 00000000000..3c10e99a18a
--- /dev/null
+++ b/src/bindings/python/src/openvino/opset1/ops.pyi
@@ -0,0 +1,1807 @@
+# type: ignore
+"""
+Factory functions for all openvino ops.
+"""
+from functools import partial
+from __future__ import annotations
+from openvino.package_utils import deprecated
+from openvino._pyopenvino import Node
+from openvino._pyopenvino import PartialShape
+from openvino._pyopenvino import Type
+from openvino._pyopenvino.op import Constant
+from openvino._pyopenvino.op import Parameter
+from openvino._pyopenvino.op import tensor_iterator
+from openvino.utils.decorators import binary_op
+from openvino.utils.decorators import nameable_op
+from openvino.utils.decorators import unary_op
+from openvino.utils.input_validation import check_valid_attributes
+from openvino.utils.input_validation import is_non_negative_value
+from openvino.utils.input_validation import is_positive_value
+from openvino.utils.node_factory import _get_node_factory
+from openvino.utils.node_factory import NodeFactory
+from openvino.utils.types import as_node
+from openvino.utils.types import as_nodes
+from openvino.utils.types import get_dtype
+from openvino.utils.types import get_element_type
+from openvino.utils.types import get_element_type_str
+from openvino.utils.types import make_constant_node
+from typing import get_args
+import functools
+import numpy as np
+import openvino._pyopenvino
+import openvino._pyopenvino.op
+import typing
+__all__ = ['Constant', 'Node', 'NodeFactory', 'NodeInput', 'NumericData', 'NumericType', 'Parameter', 'PartialShape', 'ScalarData', 'TensorShape', 'Type', 'absolute', 'acos', 'add', 'as_node', 'as_nodes', 'asin', 'atan', 'avg_pool', 'batch_norm_inference', 'binary_convolution', 'binary_op', 'broadcast', 'ceiling', 'check_valid_attributes', 'clamp', 'concat', 'constant', 'convert', 'convert_like', 'convolution', 'convolution_backprop_data', 'cos', 'cosh', 'ctc_greedy_decoder', 'deformable_convolution', 'deformable_psroi_pooling', 'deprecated', 'depth_to_space', 'detection_output', 'divide', 'elu', 'equal', 'erf', 'exp', 'fake_quantize', 'floor', 'floor_mod', 'gather', 'gather_tree', 'get_args', 'get_dtype', 'get_element_type', 'get_element_type_str', 'greater', 'greater_equal', 'grn', 'group_convolution', 'group_convolution_backprop_data', 'hard_sigmoid', 'interpolate', 'is_non_negative_value', 'is_positive_value', 'less', 'less_equal', 'log', 'logical_and', 'logical_not', 'logical_or', 'logical_xor', 'lrn', 'lstm_cell', 'make_constant_node', 'matmul', 'max_pool', 'maximum', 'minimum', 'mod', 'multiply', 'nameable_op', 'negative', 'non_max_suppression', 'normalize_l2', 'not_equal', 'np', 'one_hot', 'pad', 'parameter', 'partial', 'power', 'prelu', 'prior_box', 'prior_box_clustered', 'proposal', 'psroi_pooling', 'range', 'reduce_logical_and', 'reduce_logical_or', 'reduce_max', 'reduce_mean', 'reduce_min', 'reduce_prod', 'reduce_sum', 'region_yolo', 'relu', 'reshape', 'result', 'reverse_sequence', 'select', 'selu', 'shape_of', 'sigmoid', 'sign', 'sin', 'sinh', 'softmax', 'space_to_depth', 'split', 'sqrt', 'squared_difference', 'squeeze', 'strided_slice', 'subtract', 'tan', 'tanh', 'tensor_iterator', 'tile', 'topk', 'transpose', 'unary_op', 'unsqueeze', 'variadic_split']
+def absolute(input_value, *args, **kwargs) -> openvino._pyopenvino.Node:
+ """
+ Return node which applies f(x) = abs(x) to the input node element-wise.
+
+ :param node: One of: input node, array or scalar.
+ :param name: Optional new name for output node.
+ :return: New node with Abs operation applied on it.
+
+ """
+def acos(input_value, *args, **kwargs) -> openvino._pyopenvino.Node:
+ """
+ Apply inverse cosine function on the input node element-wise.
+
+ :param node: One of: input node, array or scalar.
+ :param name: Optional new name for output node.
+ :return: New node with arccos operation applied on it.
+
+ """
+def add(left, right, *args, **kwargs) -> openvino._pyopenvino.Node:
+ """
+ Return node which applies f(A,B) = A+B to the input nodes element-wise.
+
+ :param left_node: The first input node for add operation.
+ :param right_node: The second input node for add operation.
+ :param auto_broadcast: The type of broadcasting specifies rules used for
+ auto-broadcasting of input tensors. Defaults to "NUMPY".
+ :param name: The optional name for output new node.
+ :return: The node performing element-wise addition.
+
+ """
+def asin(input_value, *args, **kwargs) -> openvino._pyopenvino.Node:
+ """
+ Apply inverse sine function on the input node element-wise.
+
+ :param node: One of: input node, array or scalar.
+ :param name: Optional new name for output node.
+ :return: New node with arcsin operation applied on it.
+
+ """
+def atan(input_value, *args, **kwargs) -> openvino._pyopenvino.Node:
+ """
+ Apply inverse tangent function on the input node element-wise.
+
+ :param node: One of: input node, array or scalar.
+ :param name: Optional new name for output node.
+ :return: New node with arctan operation applied on it.
+
+ """
+def avg_pool(*args, **kwargs) -> openvino._pyopenvino.Node:
+ """
+ Return average pooling node.
+
+ :param data_batch: The input node providing data.
+ :param strides: The window movement strides.
+ :param pads_begin: The input data optional padding below filled with zeros.
+ :param pads_end: The input data optional padding below filled with zeros.
+ :param kernel_shape: The pooling window shape.
+ :param exclude_pad: Whether or not to include zero padding in average computations.
+ :param rounding_type: Determines used rounding schema when computing output shape. Acceptable
+ values are: ['floor', 'ceil']
+ :param auto_pad: Determines how the padding is calculated. Acceptable values:
+ [None, 'same_upper', 'same_lower', 'valid']
+ :param name: Optional name for the new output node.
+
+ :return: New node with AvgPool operation applied on its data.
+
+ """
+def batch_norm_inference(*args, **kwargs) -> openvino._pyopenvino.Node:
+ """
+ Perform layer normalizes a input tensor by mean and variance with appling scale and offset.
+
+ :param data: The input tensor with data for normalization.
+ :param gamma: The scalar scaling for normalized value.
+ :param beta: The bias added to the scaled normalized value.
+ :param mean: The value for mean normalization.
+ :param variance: The value for variance normalization.
+ :param epsilon: The number to be added to the variance to avoid division
+ by zero when normalizing a value.
+ :param name: The optional name of the output node.
+ :return: The new node which performs BatchNormInference.
+
+ """
+def binary_convolution(*args, **kwargs) -> openvino._pyopenvino.Node:
+ """
+ Create node performing convolution with binary weights, binary input and integer output.
+
+ :param data: The node providing data batch tensor.
+ :param filter: The node providing filters tensor.
+ :param strides: The kernel window movement strides.
+ :param pads_begin: The number of pixels to add to the beginning along each axis.
+ :param pads_end: The number of pixels to add to the end along each axis.
+ :param dilations: The distance in width and height between elements (weights) in the filter.
+ :param mode: Defines how input tensor 0/1 values and weights 0/1 are interpreted.
+ :param pad_value: Floating-point value used to fill pad area.
+ :param auto_pad: The type of padding. Range of values: explicit, same_upper, same_lower, valid.
+ :param name: The optional new name for output node.
+ :return: New node performing binary convolution operation.
+
+ """
+def broadcast(*args, **kwargs) -> openvino._pyopenvino.Node:
+ """
+ Create a node which broadcasts the input node's values along specified axes to a desired shape.
+
+ :param data: The node with input tensor data.
+ :param target_shape: The node with a new shape we want to broadcast tensor to.
+ :param axes_mapping: The node with a axis positions (0-based) in the result
+ that are being broadcast.
+ :param mode: The type of broadcasting that specifies mapping of input tensor axes
+ to output shape axes. Range of values: NUMPY, EXPLICIT.
+ :param name: Optional new name for output node.
+ :return: New node with broadcast shape.
+
+ """
+def ceiling(input_value, *args, **kwargs) -> openvino._pyopenvino.Node:
+ """
+ Return node which applies ceiling to the input node element-wise.
+
+ :param node: The node providing data to ceiling operation.
+ :param name: Optional name for output node.
+ :return: The node performing element-wise ceiling.
+
+ """
+def clamp(*args, **kwargs) -> openvino._pyopenvino.Node:
+ """
+ Perform clamp element-wise on data from input node.
+
+ :param data: Input tensor. One of: input node, array or scalar.
+ :param min_value: The lower bound of the <min_value;max_value> range. Scalar value.
+ :param max_value: The upper bound of the <min_value;max_value> range. Scalar value.
+ :param name: Optional output node name.
+ :return: The new node performing a clamp operation on its input data element-wise.
+
+ Performs a clipping operation on an input value between a pair of boundary values.
+
+ For each element in `data`, if the element's value is lower than `min_value`,
+ it will be replaced with `min_value`. If the value is higher than `max_value`,
+ it will be replaced by `max_value`.
+ Intermediate values of `data` are returned without change.
+
+ Clamp uses the following logic:
+
+ .. code-block:: python
+
+ if data < min_value:
+ data=min_value
+ elif data > max_value:
+ data=max_value
+
+ """
+def concat(*args, **kwargs) -> openvino._pyopenvino.Node:
+ """
+ Concatenate input nodes into single new node along specified axis.
+
+ :param nodes: The nodes we want concatenate into single new node.
+ :param axis: The axis along which we want to concatenate input nodes.
+ :param name: The optional new name for output node.
+ :return: Return new node that is a concatenation of input nodes.
+
+ """
+def constant(*args, **kwargs) -> openvino._pyopenvino.op.Constant:
+ """
+ Create a Constant node from provided value.
+
+ :param value: One of: array of values or scalar to initialize node with.
+ :param dtype: The data type of provided data.
+ :param name: Optional name for output node.
+ :return: The Constant node initialized with provided data.
+
+ """
+def convert(*args, **kwargs) -> openvino._pyopenvino.Node:
+ """
+ Return node which casts input node values to specified type.
+
+ :param data: Node which produces the input tensor.
+ :param destination_type: Provides the target type for the conversion.
+ :param name: Optional name for the output node.
+ :return: New node performing the conversion operation.
+
+ """
+def convert_like(left, right, *args, **kwargs) -> openvino._pyopenvino.Node:
+ """
+ Return node which casts data node values to the type of another node.
+
+ :param data: Node which produces the input tensor
+ :param like: Node which provides the target type information for the conversion
+ :param name: Optional name for the output node.
+ :return: New node performing the conversion operation.
+
+ """
+def convolution(*args, **kwargs) -> openvino._pyopenvino.Node:
+ """
+ Return node performing batched convolution operation.
+
+ :param data: The node providing data batch tensor.
+ :param filter: The node providing filters tensor.
+ :param strides: The kernel window movement strides.
+ :param pads_begin: The number of zero padding elements to add on each axis below 0 coordinate.
+ :param pads_end: The number of zero padding elements to add on each axis above max coordinate
+ :param dilations: The data batch dilation strides.
+ :param auto_pad: The type of padding. Range of values: explicit, same_upper, same_lower, valid.
+ :param name: The optional new name for output node.
+ :return: New node performing batched convolution operation.
+
+ """
+def convolution_backprop_data(*args, **kwargs) -> openvino._pyopenvino.Node:
+ """
+ Create node performing a batched-convolution backprop data operation.
+
+ :param data: The node producing data from forward-prop
+ :param filters: The node producing the filters from forward-prop.
+ :param output_shape: The node producing output delta.
+ :param strides: The distance (in pixels) to slide the filter on the feature map
+ over the axes.
+ :param pads_begin: The number of pixels to add to the beginning along each axis.
+ :param pads_end: The number of pixels to add to the end along each axis.
+ :param dilations: The distance in width and height between elements (weights)
+ in the filter.
+ :param name: The node name.
+
+ :return: The node object representing ConvolutionBackpropData operation.
+
+ """
+def cos(input_value, *args, **kwargs) -> openvino._pyopenvino.Node:
+ """
+ Apply cosine function on the input node element-wise.
+
+ :param node: One of: input node, array or scalar.
+ :param name: Optional new name for output node.
+ :return: New node with cos operation applied on it.
+
+ """
+def cosh(input_value, *args, **kwargs) -> openvino._pyopenvino.Node:
+ """
+ Apply hyperbolic cosine function on the input node element-wise.
+
+ :param node: One of: input node, array or scalar.
+ :param name: Optional new name for output node.
+ :return: New node with cosh operation applied on it.
+
+ """
+def ctc_greedy_decoder(*args, **kwargs) -> openvino._pyopenvino.Node:
+ """
+ Perform greedy decoding on the logits given in input (best path).
+
+ :param data: Logits on which greedy decoding is performed.
+ :param sequence_mask: The tensor with sequence masks for each sequence in the batch.
+ :param merge_repeated: The flag for merging repeated labels during the CTC calculation.
+ :param name: Optional name for output node.
+ :return: The new node performing an CTCGreedyDecoder operation on input tensor.
+
+ """
+def deformable_convolution(*args, **kwargs) -> openvino._pyopenvino.Node:
+ """
+ Create node performing deformable convolution.
+
+ :param data: The node providing data batch tensor.
+ :param filter: The node providing filters tensor.
+ :param strides: The distance (in pixels) to slide the filter on the feature map over the axes.
+ :param pads_begin: The number of pixels to add to the beginning along each axis.
+ :param pads_end: The number of pixels to add to the end along each axis.
+ :param dilations: The distance in width and height between elements (weights) in the filter.
+ :param auto_pad: The type of padding. Range of values: explicit, same_upper, same_lower, valid.
+ :param group: The number of groups which both output and input should be split into.
+ :param deformable_group: The number of groups which deformable values and output should be split
+ into along the channel axis.
+ :param name: The optional new name for output node.
+ :return: New node performing deformable convolution operation.
+
+ """
+def deformable_psroi_pooling(*args, **kwargs) -> openvino._pyopenvino.Node:
+ """
+ Return node performing DeformablePSROIPooling operation.
+
+ DeformablePSROIPooling computes position-sensitive pooling
+ on regions of interest specified by input.
+
+ :param feature_maps: 4D tensor with feature maps.
+ :param coords: 2D tensor describing box consisting of tuples: [batch_id, x_1, y_1, x_2, y_2].
+ :param output_dim: A pooled output channel number.
+ :param spatial_scale: A multiplicative spatial scale factor to translate ROI.
+ :param group_size: The number of groups to encode position-sensitive score.
+ :param mode: Specifies mode for pooling. Range of values: ['bilinear_deformable'].
+ :param spatial_bins_x: Specifies numbers of bins to divide the input feature maps over width.
+ :param spatial_bins_y: Specifies numbers of bins to divide the input feature maps over height.
+ :param trans_std: The value that all transformation (offset) values are multiplied with.
+ :param part_size: The number of parts the output tensor spatial dimensions are divided into.
+ :param offsets: Optional node. 4D input blob with transformation values (offsets).
+ :param name: The optional new name for output node.
+ :return: New node performing DeformablePSROIPooling operation.
+
+ """
+def depth_to_space(*args, **kwargs) -> openvino._pyopenvino.Node:
+ """
+ Rearranges input tensor from depth into blocks of spatial data.
+
+ Values from the height and width dimensions are moved to the depth dimension.
+
+ Input tensor has shape [N,C,H,W], where N is the batch axis, C is the channel or depth,
+ H is the height and W is the width.
+
+ Output node produces a tensor with shape:
+
+ [N, C * `block_size` * `block_size`, H / `block_size`, W / `block_size`]
+
+ :param node: The node with input tensor data.
+ :param mode: Specifies how the input depth dimension is split to block coordinates
+
+ blocks_first: The input is divided to [block_size, ..., block_size, new_depth]
+ depth_first: The input is divided to [new_depth, block_size, ..., block_size]
+
+ :param block_size: The size of the spatial block of values describing
+ how the tensor's data is to be rearranged.
+ :param name: Optional output node name.
+ :return: The new node performing an DepthToSpace operation on its input tensor.
+
+ """
+def detection_output(*args, **kwargs) -> openvino._pyopenvino.Node:
+ """
+ Generate the detection output using information on location and confidence predictions.
+
+ :param box_logits: The 2D input tensor with box logits.
+ :param class_preds: The 2D input tensor with class predictions.
+ :param proposals: The 3D input tensor with proposals.
+ :param attrs: The dictionary containing key, value pairs for attributes.
+ :param aux_class_preds: The 2D input tensor with additional class predictions information.
+ :param aux_box_preds: The 2D input tensor with additional box predictions information.
+ :param name: Optional name for the output node.
+ :return: Node representing DetectionOutput operation.
+
+ Available attributes are:
+
+ * num_classes The number of classes to be predicted.
+ Range of values: positive integer number
+ Default value: None
+ Required: yes
+
+ * background_label_id The background label id.
+ Range of values: integer value
+ Default value: 0
+ Required: no
+
+ * top_k Maximum number of results to be kept per batch after NMS step.
+ Range of values: integer value
+ Default value: -1
+ Required: no
+
+ * variance_encoded_in_target The flag that denotes if variance is encoded in target.
+ Range of values: {False, True}
+ Default value: False
+ Required: no
+
+ * keep_top_k Maximum number of bounding boxes per batch to be kept after NMS step.
+ Range of values: integer values
+ Default value: None
+ Required: yes
+
+ * code_type The type of coding method for bounding boxes.
+ Range of values: {'caffe.PriorBoxParameter.CENTER_SIZE',
+ 'caffe.PriorBoxParameter.CORNER'}
+
+ Default value: 'caffe.PriorBoxParameter.CORNER'
+ Required: no
+
+ * share_location The flag that denotes if bounding boxes are shared among different
+ classes.
+ Range of values: {True, False}
+ Default value: True
+ Required: no
+
+ * nms_threshold The threshold to be used in the NMS stage.
+ Range of values: floating point value
+ Default value: None
+ Required: yes
+
+ * confidence_threshold Specifies the minimum confidence threshold for detection boxes to be
+ considered.
+ Range of values: floating point value
+ Default value: 0
+ Required: no
+
+ * clip_after_nms The flag that denotes whether to perform clip bounding boxes after
+ non-maximum suppression or not.
+ Range of values: {True, False}
+ Default value: False
+ Required: no
+
+ * clip_before_nms The flag that denotes whether to perform clip bounding boxes before
+ non-maximum suppression or not.
+ Range of values: {True, False}
+ Default value: False
+ Required: no
+
+ * decrease_label_id The flag that denotes how to perform NMS.
+ Range of values: False - perform NMS like in Caffe*.
+ True - perform NMS like in MxNet*.
+
+ Default value: False
+ Required: no
+
+ * normalized The flag that denotes whether input tensors with boxes are normalized.
+ Range of values: {True, False}
+ Default value: False
+ Required: no
+
+ * input_height The input image height.
+ Range of values: positive integer number
+ Default value: 1
+ Required: no
+
+ * input_width The input image width.
+ Range of values: positive integer number
+ Default value: 1
+ Required: no
+
+ * objectness_score The threshold to sort out confidence predictions.
+ Range of values: non-negative float number
+ Default value: 0
+ Required: no
+
+ Example of attribute dictionary:
+ .. code-block:: python
+
+ # just required ones
+ attrs = {
+ 'num_classes': 85,
+ 'keep_top_k': [1, 2, 3],
+ 'nms_threshold': 0.645,
+
+ }
+
+ attrs = {
+ 'num_classes': 85,
+ 'keep_top_k': [1, 2, 3],
+ 'nms_threshold': 0.645,
+ 'normalized': True,
+ 'clip_before_nms': True,
+ 'input_height': [32],
+ 'input_width': [32],
+
+ }
+
+ Optional attributes which are absent from dictionary will be set with corresponding default.
+
+ """
+def divide(left, right, *args, **kwargs) -> openvino._pyopenvino.Node:
+ """
+ Return node which applies f(x) = A/B to the input nodes element-wise.
+
+ :param left_node: The node providing dividend data.
+ :param right_node: The node providing divisor data.
+ :param auto_broadcast: Specifies rules used for auto-broadcasting of input tensors.
+ :param name: Optional name for output node.
+ :return: The node performing element-wise division.
+
+ """
+def elu(*args, **kwargs) -> openvino._pyopenvino.Node:
+ """
+ Perform Exponential Linear Unit operation element-wise on data from input node.
+
+ Computes exponential linear: alpha * (exp(data) - 1) if < 0, data otherwise.
+
+ For more information refer to:
+ [Fast and Accurate Deep Network Learning by Exponential Linear Units](http://arxiv.org/abs/1511.07289)
+
+ :param data: Input tensor. One of: input node, array or scalar.
+ :param alpha: Scalar multiplier for negative values.
+ :param name: Optional output node name.
+ :return: The new node performing an ELU operation on its input data element-wise.
+
+ """
+def equal(left, right, *args, **kwargs) -> openvino._pyopenvino.Node:
+ """
+ Return node which checks if input nodes are equal element-wise.
+
+ :param left_node: The first input node for equal operation.
+ :param right_node: The second input node for equal operation.
+ :param auto_broadcast: The type of broadcasting specifies rules used for
+ auto-broadcasting of input tensors.
+ :param name: The optional name for output new node.
+ :return: The node performing element-wise equality check.
+
+ """
+def erf(input_value, *args, **kwargs) -> openvino._pyopenvino.Node:
+ """
+ Return node which calculates Gauss error function element-wise with given tensor.
+
+ :param node: The node providing data for operation.
+ :param name: The optional name for new output node.
+ :return: The new node performing element-wise Erf operation.
+
+ """
+def exp(input_value, *args, **kwargs) -> openvino._pyopenvino.Node:
+ """
+ Return node which applies exponential function to the input node element-wise.
+
+ :param node: The node providing data for operation.
+ :param name: The optional name for new output node.
+ :return: The new node performing natural exponential operation.
+
+ """
+def fake_quantize(*args, **kwargs) -> openvino._pyopenvino.Node:
+ """
+ Perform an element-wise linear quantization on input data.
+
+ :param data: The node with data tensor.
+ :param input_low: The node with the minimum for input values.
+ :param input_high: The node with the maximum for input values.
+ :param output_low: The node with the minimum quantized value.
+ :param output_high: The node with the maximum quantized value.
+ :param levels: The number of quantization levels. Integer value.
+ :param auto_broadcast: The type of broadcasting specifies rules used for
+ auto-broadcasting of input tensors.
+ :return: New node with quantized value.
+
+ Input floating point values are quantized into a discrete set of floating point values.
+
+ .. code-block:: python
+
+ if x <= input_low:
+ output = output_low
+ if x > input_high:
+ output = output_high
+ else:
+ output = fake_quantize(output)
+
+ Fake quantize uses the following logic:
+
+ \\f[ output =
+ \\dfrac{round( \\dfrac{data - input\\_low}{(input\\_high - input\\_low)\\cdot (levels-1)})}
+ {(levels-1)\\cdot (output\\_high - output\\_low)} + output\\_low \\f]
+
+ """
+def floor(input_value, *args, **kwargs) -> openvino._pyopenvino.Node:
+ """
+ Return node which applies floor to the input node element-wise.
+
+ :param node: The input node providing data.
+ :param name: The optional name for new output node.
+ :return: The node performing element-wise floor operation.
+
+ """
+def floor_mod(left, right, *args, **kwargs) -> openvino._pyopenvino.Node:
+ """
+ Return node performing element-wise FloorMod (division reminder) with two given tensors.
+
+ :param left_node: The first input node for FloorMod operation.
+ :param right_node: The second input node for FloorMod operation.
+ :param auto_broadcast: Specifies rules used for auto-broadcasting of input tensors.
+ :param name: Optional name for output node.
+ :return: The node performing element-wise FloorMod operation.
+
+ """
+def gather(*args, **kwargs) -> openvino._pyopenvino.Node:
+ """
+ Return Gather node which takes slices from axis of data according to indices.
+
+ :param data: The tensor from which slices are gathered.
+ :param indices: Tensor with indexes to gather.
+ :param axis: The dimension index to gather data from.
+ :param name: Optional name for output node.
+ :return: The new node performing a Gather operation on the data input tensor.
+
+ """
+def gather_tree(*args, **kwargs) -> openvino._pyopenvino.Node:
+ """
+ Perform GatherTree operation.
+
+ :param step_ids: The tensor with indices from per each step.
+ :param parent_idx: The tensor with with parent beam indices.
+ :param max_seq_len: The tensor with maximum lengths for each sequence in the batch.
+ :param end_token: The scalar tensor with value of the end marker in a sequence.
+ :param name: Optional name for output node.
+ :return: The new node performing a GatherTree operation.
+
+ The GatherTree node generates the complete beams from the indices per each step
+ and the parent beam indices.
+ GatherTree uses the following logic:
+
+ .. code-block:: python
+
+ for batch in range(BATCH_SIZE):
+ for beam in range(BEAM_WIDTH):
+ max_sequence_in_beam = min(MAX_TIME, max_seq_len[batch])
+
+ parent = parent_idx[max_sequence_in_beam - 1, batch, beam]
+
+ for level in reversed(range(max_sequence_in_beam - 1)):
+ final_idx[level, batch, beam] = step_idx[level, batch, parent]
+
+ parent = parent_idx[level, batch, parent]
+
+ """
+def greater(left, right, *args, **kwargs) -> openvino._pyopenvino.Node:
+ """
+ Return node which checks if left input node is greater than the right node element-wise.
+
+ :param left_node: The first input node providing data.
+ :param right_node: The second input node providing data.
+ :param auto_broadcast: The type of broadcasting specifies rules used for
+ auto-broadcasting of input tensors.
+ :param name: The optional new name for output node.
+ :return: The node performing element-wise check whether left_node is greater than right_node.
+
+ """
+def greater_equal(left, right, *args, **kwargs) -> openvino._pyopenvino.Node:
+ """
+ Return node which checks if left node is greater or equal to the right node element-wise.
+
+ :param left_node: The first input node providing data.
+ :param right_node: The second input node providing data.
+ :param auto_broadcast: The type of broadcasting specifies rules used for
+ auto-broadcasting of input tensors.
+ :param name: The optional new name for output node.
+
+ :return: The node performing element-wise check whether left_node is greater than or equal right_node.
+
+ """
+def grn(data: openvino._pyopenvino.Node, bias: float, name: typing.Optional[str] = None) -> openvino._pyopenvino.Node:
+ """
+ Perform Global Response Normalization with L2 norm (across channels only).
+
+ Computes GRN operation on channels for input tensor:
+
+ \\f[ output_i = \\dfrac{input_i}{\\sqrt{\\sum_{i}^{C} input_i}} \\f]
+
+ :param data: The node with data tensor.
+ :param bias: The bias added to the variance. Scalar value.
+ :param name: Optional output node name.
+ :return: The new node performing a GRN operation on tensor's channels.
+
+ """
+def group_convolution(*args, **kwargs) -> openvino._pyopenvino.Node:
+ """
+ Perform Group Convolution operation on data from input node.
+
+ :param data: The node producing input data.
+ :param filters: The node producing filters data.
+ :param strides: The distance (in pixels) to slide the filter on the feature map
+ over the axes.
+ :param pads_begin: The number of pixels to add at the beginning along each axis.
+ :param pads_end: The number of pixels to add at the end along each axis.
+ :param dilations: The distance in width and height between elements (weights) in the filter.
+ :param auto_pad: Describes how to perform padding. Possible values:
+ EXPLICIT: Pad dimensions are explicity specified
+ SAME_LOWER: Pad dimensions computed to match input shape
+ Ceil(num_dims/2) at the beginning and
+ Floor(num_dims/2) at the end
+
+ SAME_UPPER: Pad dimensions computed to match input shape
+ Floor(num_dims/2) at the beginning and
+ Ceil(num_dims/2) at the end
+
+ VALID: No padding
+ :param name: Optional output node name.
+ :return: The new node performing a Group Convolution operation on tensor from input node.
+
+ """
+def group_convolution_backprop_data(*args, **kwargs) -> openvino._pyopenvino.Node:
+ """
+ Perform Group Convolution operation on data from input node.
+
+ :param data: The node producing input data.
+ :param filters: The node producing filter data.
+ :param strides: The distance (in pixels) to slide the filter on the feature map
+ over the axes.
+ :param output_shape: The node that specifies spatial shape of the output.
+ :param pads_begin: The number of pixels to add at the beginning along each axis.
+ :param pads_end: The number of pixels to add at the end along each axis.
+ :param dilations: The distance in width and height between elements (weights)
+ in the filter.
+ :param auto_pad: Describes how to perform padding. Possible values:
+ EXPLICIT: Pad dimensions are explicity specified
+ SAME_LOWER: Pad dimensions computed to match input shape
+ Ceil(num_dims/2) at the beginning and
+ Floor(num_dims/2) at the end
+
+ SAME_UPPER: Pad dimensions computed to match input shape
+ Floor(num_dims/2) at the beginning and
+ Ceil(num_dims/2) at the end
+
+ VALID: No padding
+
+ :param output_padding: The additional amount of paddings added per each spatial axis
+ in the output tensor.
+ :param name: Optional output node name.
+ :return: The new node performing a Group Convolution operation on tensor from input node.
+
+ """
+def hard_sigmoid(*args, **kwargs) -> openvino._pyopenvino.Node:
+ """
+ Perform Hard Sigmoid operation element-wise on data from input node.
+
+ :param data: The node with data tensor.
+ :param alpha: A node producing the alpha parameter.
+ :param beta: A node producing the beta parameter
+ :param name: Optional output node name.
+ :return: The new node performing a Hard Sigmoid element-wise on input tensor.
+
+ Hard Sigmoid uses the following logic:
+
+ .. code-block:: python
+
+ y = max(0, min(1, alpha * data + beta))
+
+ """
+def interpolate(*args, **kwargs) -> openvino._pyopenvino.Node:
+ """
+ Perform interpolation of independent slices in input tensor.
+
+ :param image: The node providing input tensor with data for interpolation.
+ :param output_shape: 1D tensor describing output shape for spatial axes.
+ :param attrs: The dictionary containing key, value pairs for attributes.
+ :param name: Optional name for the output node.
+ :return: Node representing interpolation operation.
+
+ Available attributes are:
+
+ * axes Specify spatial dimension indices where interpolation is applied.
+ Type: List of non-negative integer numbers.
+ Required: yes.
+
+ * mode Specifies type of interpolation.
+ Range of values: one of {nearest, linear, cubic, area}
+ Type: string
+ Required: yes
+
+ * align_corners A flag that specifies whether to align corners or not. True means the
+ alignment is applied, False means the alignment isn't applied.
+ Range of values: True or False. Default: True.
+ Required: no
+
+ * antialias A flag that specifies whether to perform anti-aliasing.
+ Range of values: False - do not perform anti-aliasing
+ True - perform anti-aliasing
+
+ Default value: False
+ Required: no
+
+ * pads_begin Specify the number of pixels to add to the beginning of the image being
+ interpolated. A scalar that specifies padding for each spatial dimension.
+ Range of values: list of non-negative integer numbers. Default value: 0
+ Required: no
+
+ * pads_end Specify the number of pixels to add to the beginning of the image being
+ interpolated. A scalar that specifies padding for each spatial dimension.
+ Range of values: list of non-negative integer numbers. Default value: 0
+ Required: no
+
+ Example of attribute dictionary:
+
+ .. code-block:: python
+
+ # just required ones
+ attrs = {
+ 'axes': [2, 3],
+ 'mode': 'cubic',
+ }
+
+ attrs = {
+ 'axes': [2, 3],
+ 'mode': 'cubic',
+ 'antialias': True,
+ 'pads_begin': [2, 2, 2],
+ }
+
+ Optional attributes which are absent from dictionary will be set with corresponding default.
+
+ """
+def less(left, right, *args, **kwargs) -> openvino._pyopenvino.Node:
+ """
+ Return node which checks if left input node is less than the right node element-wise.
+
+ :param left_node: The first input node providing data.
+ :param right_node: The second input node providing data.
+ :param auto_broadcast: The type of broadcasting specifies rules used for
+ auto-broadcasting of input tensors.
+ :param name: The optional new name for output node.
+ :return: The node performing element-wise check whether left_node is less than the right_node.
+
+ """
+def less_equal(left, right, *args, **kwargs) -> openvino._pyopenvino.Node:
+ """
+ Return node which checks if left input node is less or equal the right node element-wise.
+
+ :param left_node: The first input node providing data.
+ :param right_node: The second input node providing data.
+ :param auto_broadcast: The type of broadcasting specifies rules used for
+ auto-broadcasting of input tensors.
+ :param name: The optional new name for output node.
+ :return: The node performing element-wise check whether left_node is less than or equal the
+ right_node.
+
+ """
+def log(input_value, *args, **kwargs) -> openvino._pyopenvino.Node:
+ """
+ Return node which applies natural logarithm to the input node element-wise.
+
+ :param node: The input node providing data for operation.
+ :param name: The optional new name for output node.
+ :return: The new node performing log operation element-wise.
+
+ """
+def logical_and(left, right, *args, **kwargs) -> openvino._pyopenvino.Node:
+ """
+ Return node which perform logical and operation on input nodes element-wise.
+
+ :param left_node: The first input node providing data.
+ :param right_node: The second input node providing data.
+ :param auto_broadcast: The type of broadcasting that specifies mapping of input tensor axes
+ to output shape axes. Range of values: numpy, explicit.
+ :param name: The optional new name for output node.
+ :return: The node performing logical and operation on input nodes corresponding elements.
+
+ """
+def logical_not(input_value, *args, **kwargs) -> openvino._pyopenvino.Node:
+ """
+ Return node which applies element-wise logical negation to the input node.
+
+ :param node: The input node providing data.
+ :param name: The optional new name for output node.
+ :return: The node performing element-wise logical NOT operation with given tensor.
+
+ """
+def logical_or(left, right, *args, **kwargs) -> openvino._pyopenvino.Node:
+ """
+ Return node which performs logical OR operation on input nodes element-wise.
+
+ :param left_node: The first input node providing data.
+ :param right_node: The second input node providing data.
+ :param auto_broadcast: The type of broadcasting that specifies mapping of input tensor axes
+ to output shape axes. Range of values: numpy, explicit.
+ :param name: The optional new name for output node.
+ :return: The node performing logical or operation on input nodes corresponding elements.
+
+ """
+def logical_xor(left, right, *args, **kwargs) -> openvino._pyopenvino.Node:
+ """
+ Return node which performs logical XOR operation on input nodes element-wise.
+
+ :param left_node: The first input node providing data.
+ :param right_node: The second input node providing data.
+ :param auto_broadcast: The type of broadcasting that specifies mapping of input tensor axes
+ to output shape axes. Range of values: numpy, explicit.
+ :param name: The optional new name for output node.
+ :return: The node performing logical or operation on input nodes corresponding elements.
+
+ """
+def lrn(*args, **kwargs) -> openvino._pyopenvino.Node:
+ """
+ Return a node which performs element-wise Local Response Normalization (LRN) operation.
+
+ :param data: Input data.
+ :param alpha: A scale factor (usually positive).
+ :param beta: An exponent.
+ :param bias: An offset (usually positive) to avoid dividing by 0.
+ :param size: Width of the 1-D normalization window.
+ :param name: An optional name of the output node.
+ :return: The new node which performs LRN.
+
+ """
+def lstm_cell(*args, **kwargs) -> openvino._pyopenvino.Node:
+ """
+ Return a node which performs LSTMCell operation.
+
+ :param X: The input tensor with shape: [batch_size, input_size].
+ :param initial_hidden_state: The hidden state tensor with shape: [batch_size, hidden_size].
+ :param initial_cell_state: The cell state tensor with shape: [batch_size, hidden_size].
+ :param W: The weight tensor with shape: [4*hidden_size, input_size].
+ :param R: The recurrence weight tensor with shape: [4*hidden_size, hidden_size].
+ :param B: The bias tensor for gates with shape: [4*hidden_size].
+ :param hidden_size: Specifies hidden state size.
+ :param activations: The list of three activation functions for gates.
+ :param activations_alpha: The list of alpha parameters for activation functions.
+ :param activations_beta: The list of beta parameters for activation functions.
+ :param clip: Specifies bound values [-C, C] for tensor clipping performed before activations.
+ :param name: An optional name of the output node.
+
+ :return: The new node represents LSTMCell. Node outputs count: 2.
+
+ """
+def matmul(*args, **kwargs) -> openvino._pyopenvino.Node:
+ """
+ Return the Matrix Multiplication operation.
+
+ :param data_a: left-hand side matrix
+ :param data_b: right-hand side matrix
+ :param transpose_a: should the first matrix be transposed before operation
+ :param transpose_b: should the second matrix be transposed
+ :return: MatMul operation node
+
+ """
+def max_pool(*args, **kwargs) -> openvino._pyopenvino.Node:
+ """
+ Perform max pooling operation with given parameters on provided data.
+
+ :param data: The node providing input data.
+ :param strides: The distance (in pixels) to slide the filter on the feature map
+ over the axes.
+ :param pads_begin: The number of pixels to add at the beginning along each axis.
+ :param pads_end: The number of pixels to add at the end along each axis.
+ :param kernel_shape: The pooling operation kernel shape.
+ :param rounding_type: Determines used rounding schema when computing output shape. Acceptable
+ values are: ['floor', 'ceil']
+ :param auto_pad: Determines how the padding is calculated. Acceptable values:
+ [None, 'same_upper', 'same_lower', 'valid']
+ :param name: The optional name for the created output node.
+
+ :return: The new node performing max pooling operation.
+
+ """
+def maximum(left, right, *args, **kwargs) -> openvino._pyopenvino.Node:
+ """
+ Return node which applies the maximum operation to input nodes elementwise.
+
+ :param left_node: The first input node for maximum operation.
+ :param right_node: The second input node for maximum operation.
+ :param auto_broadcast: The type of broadcasting specifies rules used for
+ auto-broadcasting of input tensors. Defaults to "NUMPY".
+ :param name: The optional name for output new node.
+ :return: The node performing element-wise maximum operation.
+
+ """
+def minimum(left, right, *args, **kwargs) -> openvino._pyopenvino.Node:
+ """
+ Return node which applies the minimum operation to input nodes elementwise.
+
+ :param left_node: The first input node for minimum operation.
+ :param right_node: The second input node for minimum operation.
+ :param auto_broadcast: The type of broadcasting specifies rules used for
+ auto-broadcasting of input tensors. Defaults to "NUMPY".
+ :param name: The optional name for output new node.
+ :return: The node performing element-wise minimum operation.
+
+ """
+def mod(left, right, *args, **kwargs) -> openvino._pyopenvino.Node:
+ """
+ Return node performing element-wise division reminder with two given tensors.
+
+ :param left_node: The first input node for mod operation.
+ :param right_node: The second input node for mod operation.
+ :param auto_broadcast: Specifies rules used for auto-broadcasting of input tensors.
+ :param name: Optional name for output node.
+ :return: The node performing element-wise Mod operation.
+
+ """
+def multiply(left, right, *args, **kwargs) -> openvino._pyopenvino.Node:
+ """
+ Return node which applies f(A,B) = A*B to the input nodes elementwise.
+
+ :param left_node: The first input node for multiply operation.
+ :param right_node: The second input node for multiply operation.
+ :param auto_broadcast: The type of broadcasting specifies rules used for
+ auto-broadcasting of input tensors. Defaults to "NUMPY".
+ :param name: The optional name for output new node.
+ :return: The node performing element-wise multiplication.
+
+ """
+def negative(input_value, *args, **kwargs) -> openvino._pyopenvino.Node:
+ """
+ Return node which applies f(x) = -x to the input node elementwise.
+
+ :param node: Input node for negative operation.
+ :param name: The optional name for output new node.
+ :return: The node performing element-wise multiplicaion by -1.
+
+ """
+def non_max_suppression(*args, **kwargs) -> openvino._pyopenvino.Node:
+ """
+ Return a node which performs NonMaxSuppression.
+
+ :param boxes: Tensor with box coordinates.
+ :param scores: Tensor with box scores.
+ :param max_output_boxes_per_class: Tensor Specifying maximum number of boxes
+ to be selected per class.
+ :param iou_threshold: Tensor specifying intersection over union threshold
+ :param score_threshold: Tensor specifying minimum score to consider box for the processing.
+ :param box_encoding: Format of boxes data encoding. Range of values: corner or cente.
+ :param sort_result_descending: Flag that specifies whenever it is necessary to sort selected
+ boxes across batches or not.
+ :return: The new node which performs NonMaxSuppression
+
+ """
+def normalize_l2(*args, **kwargs) -> openvino._pyopenvino.Node:
+ """
+ Construct an NormalizeL2 operation.
+
+ :param data: Node producing the input tensor
+ :param axes: Node indicating axes along which L2 reduction is calculated
+ :param eps: The epsilon added to L2 norm
+ :param eps_mode: how eps is combined with L2 value (`add` or `max`)
+ :return: New node which performs the L2 normalization.
+
+ """
+def not_equal(left, right, *args, **kwargs) -> openvino._pyopenvino.Node:
+ """
+ Return node which checks if input nodes are unequal element-wise.
+
+ :param left_node: The first input node for not-equal operation.
+ :param right_node: The second input node for not-equal operation.
+ :param auto_broadcast: The type of broadcasting specifies rules used for
+ auto-broadcasting of input tensors.
+ :param name: The optional name for output new node.
+ :return: The node performing element-wise inequality check.
+
+ """
+def one_hot(*args, **kwargs) -> openvino._pyopenvino.Node:
+ """
+ Create node performing one-hot encoding on input data.
+
+ :param indices: Input tensor of rank N with indices of any supported integer data type.
+ :param depth: Scalar of any supported integer type that specifies number of classes and
+ the size of one-hot dimension.
+ :param on_value: Scalar of any type that is the value that the locations
+ in output tensor represented by indices in input take.
+ :param off_value: Scalar of any type that is the value that the locations not represented
+ by indices in input take.
+
+ :param name: The optional name for new output node.
+ :return: New node performing one-hot operation.
+
+ """
+def pad(*args, **kwargs) -> openvino._pyopenvino.Node:
+ """
+ Return a generic padding operation.
+
+ :param arg: The node producing input tensor to be padded.
+ :param pads_begin: number of padding elements to be added before position 0
+ on each axis of arg.
+ :param pads_end: number of padding elements to be added after the last element.
+ :param pad_mode: "constant", "edge", "reflect" or "symmetric"
+ :param arg_pad_value: value used for padding if pad_mode is "constant"
+ :return: Pad operation node.
+
+ """
+def parameter(*args, **kwargs) -> openvino._pyopenvino.op.Parameter:
+ """
+ Return an openvino Parameter object.
+
+ :param shape: The shape of the output tensor.
+ :param dtype: The type of elements of the output tensor. Defaults to np.float32.
+ :param name: The optional name for output new node.
+ :return: The node that specifies input to the model.
+
+ """
+def power(left, right, *args, **kwargs) -> openvino._pyopenvino.Node:
+ """
+ Return node which perform element-wise exponentiation operation.
+
+ :param left_node: The node providing the base of operation.
+ :param right_node: The node providing the exponent of operation.
+ :param name: The optional name for the new output node.
+ :param auto_broadcast: The type of broadcasting specifies rules used for
+ auto-broadcasting of input tensors.
+ :return: The new node performing element-wise exponentiation operation on input nodes.
+
+ """
+def prelu(*args, **kwargs) -> openvino._pyopenvino.Node:
+ """
+ Perform Parametrized Relu operation element-wise on data from input node.
+
+ :param data: The node with data tensor.
+ :param slope: The node with the multipliers for negative values.
+ :param name: Optional output node name.
+ :return: The new node performing a PRelu operation on tensor's channels.
+
+ PRelu uses the following logic:
+
+ .. code-block:: python
+
+ if data < 0:
+ data = data * slope
+ elif data >= 0:
+ data = data
+
+ """
+def prior_box(*args, **kwargs) -> openvino._pyopenvino.Node:
+ """
+ Generate prior boxes of specified sizes and aspect ratios across all dimensions.
+
+ :param layer_shape: Shape of layer for which prior boxes are computed.
+ :param image_shape: Shape of image to which prior boxes are scaled.
+ :param attrs: The dictionary containing key, value pairs for attributes.
+ :param name: Optional name for the output node.
+ :return: Node representing prior box operation.
+
+ Available attributes are:
+
+ * min_size The minimum box size (in pixels).
+ Range of values: positive floating point numbers
+ Default value: []
+ Required: no
+
+ * max_size The maximum box size (in pixels).
+ Range of values: positive floating point numbers
+ Default value: []
+ Required: no
+
+ * aspect_ratio Aspect ratios of prior boxes.
+ Range of values: set of positive floating point numbers
+ Default value: []
+ Required: no
+
+ * flip The flag that denotes that each aspect_ratio is duplicated and flipped.
+ Range of values: {True, False}
+ Default value: False
+ Required: no
+
+ * clip The flag that denotes if each value in the output tensor should be clipped
+ to [0,1] interval.
+ Range of values: {True, False}
+ Default value: False
+ Required: no
+
+ * step The distance between box centers.
+ Range of values: floating point non-negative number
+ Default value: 0
+ Required: no
+
+ * offset This is a shift of box respectively to top left corner.
+ Range of values: floating point non-negative number
+ Default value: None
+ Required: yes
+
+ * variance The variance denotes a variance of adjusting bounding boxes. The attribute
+ could contain 0, 1 or 4 elements.
+ Range of values: floating point positive numbers
+ Default value: []
+ Required: no
+
+ * scale_all_sizes The flag that denotes type of inference.
+ Range of values: False - max_size is ignored
+ True - max_size is used
+
+ Default value: True
+ Required: no
+
+ * fixed_ratio This is an aspect ratio of a box.
+ Range of values: a list of positive floating-point numbers
+ Default value: None
+ Required: no
+
+ * fixed_size This is an initial box size (in pixels).
+ Range of values: a list of positive floating-point numbers
+ Default value: None
+ Required: no
+
+ * density This is the square root of the number of boxes of each type.
+ Range of values: a list of positive floating-point numbers
+ Default value: None
+ Required: no
+
+ Example of attribute dictionary:
+
+ .. code-block:: python
+
+ # just required ones
+ attrs = {
+ 'offset': 85,
+ }
+
+ attrs = {
+ 'offset': 85,
+ 'flip': True,
+ 'clip': True,
+ 'fixed_size': [32, 64, 128]
+ }
+
+ Optional attributes which are absent from dictionary will be set with corresponding default.
+
+ """
+def prior_box_clustered(*args, **kwargs) -> openvino._pyopenvino.Node:
+ """
+ Generate prior boxes of specified sizes normalized to the input image size.
+
+ :param output_size: 1D tensor with two integer elements [height, width]. Specifies the
+ spatial size of generated grid with boxes.
+ :param image_size: 1D tensor with two integer elements [image_height, image_width] that
+ specifies shape of the image for which boxes are generated.
+ :param attrs: The dictionary containing key, value pairs for attributes.
+ :param name: Optional name for the output node.
+ :return: Node representing PriorBoxClustered operation.
+
+ Available attributes are:
+
+ * widths Specifies desired boxes widths in pixels.
+ Range of values: floating point positive numbers.
+ Default value: 1.0
+ Required: no
+
+ * heights Specifies desired boxes heights in pixels.
+ Range of values: floating point positive numbers.
+ Default value: 1.0
+ Required: no
+
+ * clip The flag that denotes if each value in the output tensor should be clipped
+ within [0,1].
+ Range of values: {True, False}
+ Default value: True
+ Required: no
+
+ * step_widths The distance between box centers.
+ Range of values: floating point positive number
+ Default value: 0.0
+ Required: no
+
+ * step_heights The distance between box centers.
+ Range of values: floating point positive number
+ Default value: 0.0
+ Required: no
+
+ * offset The shift of box respectively to the top left corner.
+ Range of values: floating point positive number
+ Default value: None
+ Required: yes
+
+ * variance Denotes a variance of adjusting bounding boxes.
+ Range of values: floating point positive numbers
+ Default value: []
+ Required: no
+
+ Example of attribute dictionary:
+
+ .. code-block:: python
+
+ # just required ones
+ attrs = {
+ 'offset': 85,
+ }
+
+ attrs = {
+ 'offset': 85,
+ 'clip': False,
+ 'step_widths': [1.5, 2.0, 2.5]
+ }
+
+ Optional attributes which are absent from dictionary will be set with corresponding default.
+
+ """
+def proposal(*args, **kwargs) -> openvino._pyopenvino.Node:
+ """
+ Filter bounding boxes and outputs only those with the highest prediction confidence.
+
+ :param class_probs: 4D input floating point tensor with class prediction scores.
+ :param bbox_deltas: 4D input floating point tensor with box logits.
+ :param image_shape: The 1D input tensor with 3 or 4 elements describing image shape.
+ :param attrs: The dictionary containing key, value pairs for attributes.
+ :param name: Optional name for the output node.
+
+ :return: Node representing Proposal operation.
+
+ * base_size The size of the anchor to which scale and ratio attributes are applied.
+ Range of values: a positive unsigned integer number
+ Default value: None
+ Required: yes
+
+ * pre_nms_topn The number of bounding boxes before the NMS operation.
+ Range of values: a positive unsigned integer number
+ Default value: None
+ Required: yes
+
+ * post_nms_topn The number of bounding boxes after the NMS operation.
+ Range of values: a positive unsigned integer number
+ Default value: None
+ Required: yes
+
+ * nms_thresh The minimum value of the proposal to be taken into consideration.
+ Range of values: a positive floating-point number
+ Default value: None
+ Required: yes
+
+ * feat_stride The step size to slide over boxes (in pixels).
+ Range of values: a positive unsigned integer
+ Default value: None
+ Required: yes
+
+ * min_size The minimum size of box to be taken into consideration.
+ Range of values: a positive unsigned integer number
+ Default value: None
+ Required: yes
+
+ * ratio The ratios for anchor generation.
+ Range of values: a list of floating-point numbers
+ Default value: None
+ Required: yes
+
+ * scale The scales for anchor generation.
+ Range of values: a list of floating-point numbers
+ Default value: None
+ Required: yes
+
+ * clip_before_nms The flag that specifies whether to perform clip bounding boxes before
+ non-maximum suppression or not.
+ Range of values: True or False
+ Default value: True
+ Required: no
+
+ * clip_after_nms The flag that specifies whether to perform clip bounding boxes after
+ non-maximum suppression or not.
+ Range of values: True or False
+ Default value: False
+ Required: no
+
+ * normalize The flag that specifies whether to perform normalization of output boxes to
+ [0,1] interval or not.
+ Range of values: True or False
+ Default value: False
+ Required: no
+
+ * box_size_scale Specifies the scale factor applied to logits of box sizes before decoding.
+ Range of values: a positive floating-point number
+ Default value: 1.0
+ Required: no
+
+ * box_coordinate_scale Specifies the scale factor applied to logits of box coordinates
+ before decoding.
+ Range of values: a positive floating-point number
+ Default value: 1.0
+ Required: no
+
+ * framework Specifies how the box coordinates are calculated.
+ Range of values: "" (empty string) - calculate box coordinates like in Caffe*
+ tensorflow - calculate box coordinates like in the TensorFlow*
+ Object Detection API models
+
+ Default value: "" (empty string)
+ Required: no
+
+ Example of attribute dictionary:
+
+ .. code-block:: python
+
+ # just required ones
+ attrs = {
+ 'base_size': 85,
+ 'pre_nms_topn': 10,
+ 'post_nms_topn': 20,
+ 'nms_thresh': 0.34,
+ 'feat_stride': 16,
+ 'min_size': 32,
+ 'ratio': [0.1, 1.5, 2.0, 2.5],
+ 'scale': [2, 3, 3, 4],
+ }
+
+ Optional attributes which are absent from dictionary will be set with corresponding default.
+
+
+ """
+def psroi_pooling(*args, **kwargs) -> openvino._pyopenvino.Node:
+ """
+ Return a node which produces a PSROIPooling operation.
+
+ :param input: Input feature map `{N, C, ...}`.
+ :param coords: Coordinates of bounding boxes.
+ :param output_dim: Output channel number.
+ :param group_size: Number of groups to encode position-sensitive scores.
+ :param spatial_scale: Ratio of input feature map over input image size.
+ :param spatial_bins_x: Numbers of bins to divide the input feature maps over.
+ :param spatial_bins_y: Numbers of bins to divide the input feature maps over.
+ :param mode: Mode of pooling - "avg" or "bilinear".
+ :return: PSROIPooling node
+
+ """
+def range(*args, **kwargs) -> openvino._pyopenvino.Node:
+ """
+ Return a node which produces the Range operation.
+
+ :param start: The start value of the generated range.
+ :param stop: The stop value of the generated range.
+ :param step: The step value for the generated range.
+ :param name: Optional name for output node.
+ :return: Range node
+
+ """
+def reduce_logical_and(*args, **kwargs) -> openvino._pyopenvino.Node:
+ """
+ Logical AND reduction operation on input tensor, eliminating the specified reduction axes.
+
+ :param node: The tensor we want to reduce.
+ :param reduction_axes: The axes to eliminate through AND operation.
+ :param keep_dims: If set to True it holds axes that are used for reduction.
+ :param name: Optional name for output node.
+ :return: The new node performing reduction operation.
+
+ """
+def reduce_logical_or(*args, **kwargs) -> openvino._pyopenvino.Node:
+ """
+ Logical OR reduction operation on input tensor, eliminating the specified reduction axes.
+
+ :param node: The tensor we want to reduce.
+ :param reduction_axes: The axes to eliminate through OR operation.
+ :param keep_dims: If set to True it holds axes that are used for reduction.
+ :param name: Optional name for output node.
+ :return: The new node performing reduction operation.
+
+ """
+def reduce_max(*args, **kwargs) -> openvino._pyopenvino.Node:
+ """
+ Max-reduction operation on input tensor, eliminating the specified reduction axes.
+
+ :param node: The tensor we want to max-reduce.
+ :param reduction_axes: The axes to eliminate through max operation.
+ :param keep_dims: If set to True it holds axes that are used for reduction.
+ :param name: Optional name for output node.
+
+ """
+def reduce_mean(*args, **kwargs) -> openvino._pyopenvino.Node:
+ """
+ Mean-reduction operation on input tensor, eliminating the specified reduction axes.
+
+ :param node: The tensor we want to mean-reduce.
+ :param reduction_axes: The axes to eliminate through mean operation.
+ :param keep_dims: If set to True it holds axes that are used for reduction.
+ :param name: Optional name for output node.
+ :return: The new node performing mean-reduction operation.
+
+ """
+def reduce_min(*args, **kwargs) -> openvino._pyopenvino.Node:
+ """
+ Min-reduction operation on input tensor, eliminating the specified reduction axes.
+
+ :param node: The tensor we want to min-reduce.
+ :param reduction_axes: The axes to eliminate through min operation.
+ :param keep_dims: If set to True it holds axes that are used for reduction
+ :param name: Optional name for output node.
+
+ """
+def reduce_prod(*args, **kwargs) -> openvino._pyopenvino.Node:
+ """
+ Product-reduction operation on input tensor, eliminating the specified reduction axes.
+
+ :param node: The tensor we want to product-reduce.
+ :param reduction_axes: The axes to eliminate through product operation.
+ :param keep_dims: If set to True it holds axes that are used for reduction
+ :param name: Optional name for output node.
+ :return: The new node performing product-reduction operation.
+
+ """
+def reduce_sum(*args, **kwargs) -> openvino._pyopenvino.Node:
+ """
+ Perform element-wise sums of the input tensor, eliminating the specified reduction axes.
+
+ :param node: The node providing data for operation.
+ :param reduction_axes: The axes to eliminate through summation.
+ :param keep_dims: If set to True it holds axes that are used for reduction
+ :param name: The optional new name for output node.
+ :return: The new node performing summation along `reduction_axes` element-wise.
+
+ """
+def region_yolo(*args, **kwargs) -> openvino._pyopenvino.Node:
+ """
+ Return a node which produces the RegionYolo operation.
+
+ :param input: Input data
+ :param coords: Number of coordinates for each region
+ :param classes: Number of classes for each region
+ :param num: Number of regions
+ :param do_softmax: Compute softmax
+ :param mask: Mask
+ :param axis: Axis to begin softmax on
+ :param end_axis: Axis to end softmax on
+ :param anchors: A flattened list of pairs `[width, height]` that describes prior box sizes
+ :param name: Optional name for output node.
+ :return: RegionYolo node
+
+ """
+def relu(input_value, *args, **kwargs) -> openvino._pyopenvino.Node:
+ """
+ Perform rectified linear unit operation on input node element-wise.
+
+ :param node: One of: input node, array or scalar.
+ :param name: The optional output node name.
+ :return: The new node performing relu operation on its input element-wise.
+
+ """
+def reshape(*args, **kwargs) -> openvino._pyopenvino.Node:
+ """
+ Return reshaped node according to provided parameters.
+
+ :param node: The tensor we want to reshape.
+ :param output_shape: The node with a new shape for input tensor.
+ :param special_zero: The boolean variable that controls how zero values in shape are
+ interpreted. If special_zero is false, then 0 is interpreted as-is
+ which means that output shape will contain a zero dimension at the
+ specified location. Input and output tensors are empty in this case.
+ If special_zero is true, then all zeros in shape implies the copying
+ of corresponding dimensions from data.shape into the output shape.
+ Range of values: False or True
+ :return: The node reshaping an input tensor.
+
+ """
+def result(input_value, *args, **kwargs) -> openvino._pyopenvino.Node:
+ """
+ Return a node which represents an output of a graph (Model).
+
+ :param data: The tensor containing the input data
+ :return: Result node
+
+ """
+def reverse_sequence(*args, **kwargs) -> openvino._pyopenvino.Node:
+ """
+ Return a node which produces a ReverseSequence operation.
+
+ :param input: tensor with input data to reverse
+ :param seq_lengths: 1D tensor of integers with sequence lengths in the input tensor.
+ :param batch_axis: index of the batch dimension.
+ :param seq_axis: index of the sequence dimension.
+ :return: ReverseSequence node
+
+ """
+def select(*args, **kwargs) -> openvino._pyopenvino.Node:
+ """
+ Perform an element-wise selection operation on input tensors.
+
+ :param cond: Tensor with selection mask of type `boolean`.
+ :param then_node: Tensor providing data to be selected if respective `cond`
+ item value is `True`.
+ :param else_node: Tensor providing data to be selected if respective `cond`
+ item value is `False`.
+ :param auto_broadcast: Mode specifies rules used for auto-broadcasting of input tensors.
+ :param name: The optional new name for output node.
+ :return: The new node with values selected according to provided arguments.
+
+ """
+def selu(*args, **kwargs) -> openvino._pyopenvino.Node:
+ """
+ Perform a Scaled Exponential Linear Unit (SELU) operation on input node element-wise.
+
+ :param data: input node, array or scalar.
+ :param alpha: Alpha coefficient of SELU operation
+ :param lambda_value: Lambda coefficient of SELU operation
+ :param name: The optional output node name.
+ :return: The new node performing relu operation on its input element-wise.
+
+ """
+def shape_of(*args, **kwargs) -> openvino._pyopenvino.Node:
+ """
+ Return a node which produces a tensor containing the shape of its input data.
+
+ :param data: The tensor containing the input data.
+ :return: ShapeOf node
+
+ """
+def sigmoid(input_value, *args, **kwargs) -> openvino._pyopenvino.Node:
+ """
+ Return a node which applies the sigmoid function element-wise.
+
+ :param data: The tensor containing the input data
+ :return: Sigmoid node
+
+ """
+def sign(input_value, *args, **kwargs) -> openvino._pyopenvino.Node:
+ """
+ Perform element-wise sign operation.
+
+ :param node: One of: input node, array or scalar.
+ :param name: The optional new name for output node.
+ :return: The node with mapped elements of the input tensor to -1 (if it is negative),
+ 0 (if it is zero), or 1 (if it is positive).
+
+ """
+def sin(input_value, *args, **kwargs) -> openvino._pyopenvino.Node:
+ """
+ Apply sine function on the input node element-wise.
+
+ :param node: One of: input node, array or scalar.
+ :param name: Optional new name for output node.
+ :return: New node with sin operation applied on it.
+
+ """
+def sinh(input_value, *args, **kwargs) -> openvino._pyopenvino.Node:
+ """
+ Apply hyperbolic sine function on the input node element-wise.
+
+ :param node: One of: input node, array or scalar.
+ :param name: Optional new name for output node.
+ :return: New node with sin operation applied on it.
+
+ """
+def softmax(*args, **kwargs) -> openvino._pyopenvino.Node:
+ """
+ Apply softmax operation on each element of input tensor.
+
+ :param data: The tensor providing input data.
+ :param axis: An axis along which Softmax should be calculated
+ :return: The new node with softmax operation applied on each element.
+
+ """
+def space_to_depth(*args, **kwargs) -> openvino._pyopenvino.Node:
+ """
+ Perform SpaceToDepth operation on the input tensor.
+
+ SpaceToDepth rearranges blocks of spatial data into depth.
+ The operator :return: a copy of the input tensor where values from the height
+ and width dimensions are moved to the depth dimension.
+
+ :param data: The node with data tensor.
+ :param mode: Specifies how the output depth dimension is gathered from block coordinates.
+
+ blocks_first: The output depth is gathered from [block_size, ..., block_size, C]
+ depth_first: The output depth is gathered from [C, block_size, ..., block_size]
+
+ :param block_size: The size of the block of values to be moved. Scalar value.
+ :param name: Optional output node name.
+ :return: The new node performing a SpaceToDepth operation on input tensor.
+
+ """
+def split(*args, **kwargs) -> openvino._pyopenvino.Node:
+ """
+ Return a node which splits the input tensor into same-length slices.
+
+ :param data: The input tensor to be split
+ :param axis: Axis along which the input data will be split
+ :param num_splits: Number of the output tensors that should be produced
+ :return: Split node
+
+ """
+def sqrt(input_value, *args, **kwargs) -> openvino._pyopenvino.Node:
+ """
+ Return node which applies square root to the input node element-wise.
+
+ :param node: One of: input node, array or scalar.
+ :param name: Optional new name for output node.
+ :return: The new node with sqrt operation applied element-wise.
+
+ """
+def squared_difference(left, right, *args, **kwargs) -> openvino._pyopenvino.Node:
+ """
+ Perform an element-wise squared difference between two tensors.
+
+ \\f[ y[i] = (x_1[i] - x_2[i])^2 \\f]
+
+ :param x1: The node with first input tensor.
+ :param x2: The node with second input tensor.
+ :param auto_broadcast: The type of broadcasting that specifies mapping of input tensor axes
+ to output shape axes. Range of values: numpy, explicit.
+ :param name: Optional new name for output node.
+ :return: The new node performing a squared difference between two tensors.
+
+ """
+def squeeze(*args, **kwargs) -> openvino._pyopenvino.Node:
+ """
+ Perform squeeze operation on input tensor.
+
+ :param data: The node with data tensor.
+ :param axes: List of non-negative integers, indicate the dimensions to squeeze.
+ One of: input node or array.
+ :param name: Optional new name for output node.
+ :return: The new node performing a squeeze operation on input tensor.
+
+ Remove single-dimensional entries from the shape of a tensor.
+ Takes a parameter `axes` with a list of axes to squeeze.
+ If `axes` is not provided, all the single dimensions will be removed from the shape.
+ If an `axis` is selected with shape entry not equal to one, an error is raised.
+
+
+ For example:
+
+ Inputs: tensor with shape [1, 2, 1, 3, 1, 1], axes=[2, 4]
+
+ Result: tensor with shape [1, 2, 3, 1]
+
+ """
+def strided_slice(*args, **kwargs) -> openvino._pyopenvino.Node:
+ """
+ Return a node which dynamically repeats(replicates) the input data tensor.
+
+ :param data: The tensor to be sliced
+ :param begin: 1D tensor with begin indexes for input blob slicing
+ :param end: 1D tensor with end indexes for input blob slicing
+ :param strides: The slicing strides
+ :param begin_mask: A mask applied to the 'begin' input indicating which elements
+ shoud be ignored
+ :param end_mask: A mask applied to the 'end' input indicating which elements
+ shoud be ignored
+ :param new_axis_mask: A mask indicating dimensions where '1' should be inserted
+ :param shrink_axis_mask: A mask indicating which dimensions should be deleted
+ :param ellipsis_mask: Indicates positions where missing dimensions should be inserted
+ :return: StridedSlice node
+
+ """
+def subtract(left, right, *args, **kwargs) -> openvino._pyopenvino.Node:
+ """
+ Return node which applies f(x) = A-B to the input nodes element-wise.
+
+ :param left_node: The node providing data for left hand side of operator.
+ :param right_node: The node providing data for right hand side of operator.
+ :param auto_broadcast: The type of broadcasting that specifies mapping of input tensor axes
+ to output shape axes. Range of values: numpy, explicit.
+ :param name: The optional name for output node.
+ :return: The new output node performing subtraction operation on both tensors element-wise.
+
+ """
+def tan(input_value, *args, **kwargs) -> openvino._pyopenvino.Node:
+ """
+ Apply tangent function on the input node element-wise.
+
+ :param node: One of: input node, array or scalar.
+ :param name: Optional new name for output node.
+ :return: New node with tan operation applied on it.
+
+ """
+def tanh(input_value, *args, **kwargs) -> openvino._pyopenvino.Node:
+ """
+ Return node which applies hyperbolic tangent to the input node element-wise.
+
+ :param node: One of: input node, array or scalar.
+ :param name: Optional new name for output node.
+ :return: New node with tanh operation applied on it.
+
+ """
+def tile(*args, **kwargs) -> openvino._pyopenvino.Node:
+ """
+ Return a node which dynamically repeats(replicates) the input data tensor.
+
+ :param data: The input tensor to be tiled
+ :param repeats: Per-dimension replication factors
+ :return: Tile node
+
+ """
+def topk(*args, **kwargs) -> openvino._pyopenvino.Node:
+ """
+ Return a node which performs TopK.
+
+ :param data: Input data.
+ :param k: K.
+ :param axis: TopK Axis.
+ :param mode: Compute TopK largest ('max') or smallest ('min')
+ :param sort: Order of output elements (sort by: 'none', 'index' or 'value')
+ :return: The new node which performs TopK (both indices and values)
+
+ """
+def transpose(*args, **kwargs) -> openvino._pyopenvino.Node:
+ """
+ Return a node which transposes the data in the input tensor.
+
+ :param data: The input tensor to be transposed
+ :param input_order: Permutation of axes to be applied to the input tensor
+ :return: Transpose node
+
+ """
+def unsqueeze(data: typing.Union[openvino._pyopenvino.Node, int, float, numpy.ndarray], axes: typing.Union[openvino._pyopenvino.Node, int, float, numpy.ndarray], name: typing.Optional[str] = None) -> openvino._pyopenvino.Node:
+ """
+ Perform unsqueeze operation on input tensor.
+
+ Insert single-dimensional entries to the shape of a tensor. Takes one required argument axes,
+ a list of dimensions that will be inserted.
+ Dimension indices in axes are as seen in the output tensor.
+
+ For example: Inputs: tensor with shape [3, 4, 5], axes=[0, 4]
+ Result: tensor with shape [1, 3, 4, 5, 1]
+
+ :param data: The node with data tensor.
+ :param axes: List of non-negative integers, indicate the dimensions to be inserted.
+ One of: input node or array.
+ :return: The new node performing an unsqueeze operation on input tensor.
+
+ """
+def variadic_split(*args, **kwargs) -> openvino._pyopenvino.Node:
+ """
+ Return a node which splits the input tensor into variadic length slices.
+
+ :param data: The input tensor to be split
+ :param axis: Axis along which the input data will be split
+ :param split_lengths: Sizes of the output tensors along the split axis
+ :return: VariadicSplit node
+
+ """
+NodeInput: typing._UnionGenericAlias # value = typing.Union[openvino._pyopenvino.Node, int, float, numpy.ndarray]
+NumericData: typing._UnionGenericAlias # value = typing.Union[int, float, numpy.ndarray]
+NumericType: typing._UnionGenericAlias # value = typing.Union[type, numpy.dtype]
+ScalarData: typing._UnionGenericAlias # value = typing.Union[int, float]
+TensorShape: typing._GenericAlias # value = typing.List[int]
+_get_node_factory_opset1: functools.partial # value = functools.partial(<function _get_node_factory at memory_address>, 'opset1')
diff --git a/src/bindings/python/src/openvino/opset10/__init__.pyi b/src/bindings/python/src/openvino/opset10/__init__.pyi
new file mode 100644
index 00000000000..c9c5a5ac6bf
--- /dev/null
+++ b/src/bindings/python/src/openvino/opset10/__init__.pyi
@@ -0,0 +1,180 @@
+# type: ignore
+from __future__ import annotations
+from . import ops
+from openvino.opset10.ops import interpolate
+from openvino.opset10.ops import is_finite
+from openvino.opset10.ops import is_inf
+from openvino.opset10.ops import is_nan
+from openvino.opset10.ops import unique
+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 binary_convolution
+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_psroi_pooling
+from openvino.opset1.ops import depth_to_space
+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_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 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 matmul
+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 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_clustered
+from openvino.opset1.ops import psroi_pooling
+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 sigmoid
+from openvino.opset1.ops import sign
+from openvino.opset1.ops import sin
+from openvino.opset1.ops import sinh
+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 tile
+from openvino.opset1.ops import transpose
+from openvino.opset1.ops import unsqueeze
+from openvino.opset1.ops import variadic_split
+from openvino.opset2.ops import batch_to_space
+from openvino.opset2.ops import reorg_yolo
+from openvino.opset2.ops import roi_pooling
+from openvino.opset2.ops import space_to_batch
+from openvino.opset3.ops import broadcast
+from openvino.opset3.ops import bucketize
+from openvino.opset3.ops import cum_sum
+from openvino.opset3.ops import cum_sum as cumsum
+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.opset3.ops import gru_cell
+from openvino.opset3.ops import non_zero
+from openvino.opset3.ops import rnn_cell
+from openvino.opset3.ops import scatter_elements_update
+from openvino.opset3.ops import scatter_update
+from openvino.opset3.ops import shape_of
+from openvino.opset3.ops import shuffle_channels
+from openvino.opset3.ops import topk
+from openvino.opset4.ops import acosh
+from openvino.opset4.ops import asinh
+from openvino.opset4.ops import atanh
+from openvino.opset4.ops import ctc_loss
+from openvino.opset4.ops import hswish
+from openvino.opset4.ops import lstm_cell
+from openvino.opset4.ops import mish
+from openvino.opset4.ops import proposal
+from openvino.opset4.ops import reduce_l1
+from openvino.opset4.ops import reduce_l2
+from openvino.opset4.ops import scatter_nd_update
+from openvino.opset4.ops import softplus
+from openvino.opset4.ops import swish
+from openvino.opset5.ops import batch_norm_inference
+from openvino.opset5.ops import gru_sequence
+from openvino.opset5.ops import hsigmoid
+from openvino.opset5.ops import log_softmax
+from openvino.opset5.ops import lstm_sequence
+from openvino.opset5.ops import rnn_sequence
+from openvino.opset5.ops import round
+from openvino.opset6.ops import ctc_greedy_decoder_seq_len
+from openvino.opset6.ops import gather_elements
+from openvino.opset6.ops import mvn
+from openvino.opset7.ops import dft
+from openvino.opset7.ops import einsum
+from openvino.opset7.ops import gelu
+from openvino.opset7.ops import idft
+from openvino.opset7.ops import roll
+from openvino.opset8.ops import adaptive_avg_pool
+from openvino.opset8.ops import adaptive_max_pool
+from openvino.opset8.ops import deformable_convolution
+from openvino.opset8.ops import detection_output
+from openvino.opset8.ops import gather
+from openvino.opset8.ops import gather_nd
+from openvino.opset8.ops import i420_to_bgr
+from openvino.opset8.ops import i420_to_rgb
+from openvino.opset8.ops import matrix_nms
+from openvino.opset8.ops import max_pool
+from openvino.opset8.ops import nv12_to_bgr
+from openvino.opset8.ops import nv12_to_rgb
+from openvino.opset8.ops import prior_box
+from openvino.opset8.ops import random_uniform
+from openvino.opset8.ops import slice
+from openvino.opset8.ops import softmax
+from openvino.opset9.ops import eye
+from openvino.opset9.ops import generate_proposals
+from openvino.opset9.ops import grid_sample
+from openvino.opset9.ops import irdft
+from openvino.opset9.ops import multiclass_nms
+from openvino.opset9.ops import non_max_suppression
+from openvino.opset9.ops import rdft
+from openvino.opset9.ops import roi_align
+from openvino.opset9.ops import softsign
+from openvino._pyopenvino.op import assign
+from openvino._pyopenvino.op import if_op
+from openvino._pyopenvino.op import loop
+from openvino._pyopenvino.op import tensor_iterator
+import openvino.utils.decorators
+__all__ = ['abs', 'absolute', 'acos', 'acosh', 'adaptive_avg_pool', 'adaptive_max_pool', 'add', 'asin', 'asinh', 'assign', 'atan', 'atanh', 'avg_pool', 'batch_norm_inference', 'batch_to_space', 'binary_convolution', 'broadcast', 'bucketize', 'ceil', 'ceiling', 'clamp', 'concat', 'constant', 'convert', 'convert_like', 'convolution', 'convolution_backprop_data', 'cos', 'cosh', 'ctc_greedy_decoder', 'ctc_greedy_decoder_seq_len', 'ctc_loss', 'cum_sum', 'cumsum', 'deformable_convolution', 'deformable_psroi_pooling', 'depth_to_space', 'detection_output', 'dft', 'divide', 'einsum', 'elu', 'embedding_bag_offsets_sum', 'embedding_bag_packed_sum', 'embedding_segments_sum', 'equal', 'erf', 'exp', 'extract_image_patches', 'eye', 'fake_quantize', 'floor', 'floor_mod', 'gather', 'gather_elements', 'gather_nd', 'gather_tree', 'gelu', 'generate_proposals', 'greater', 'greater_equal', 'grid_sample', 'grn', 'group_convolution', 'group_convolution_backprop_data', 'gru_cell', 'gru_sequence', 'hard_sigmoid', 'hsigmoid', 'hswish', 'i420_to_bgr', 'i420_to_rgb', 'idft', 'if_op', 'interpolate', 'irdft', 'is_finite', 'is_inf', 'is_nan', 'less', 'less_equal', 'log', 'log_softmax', 'logical_and', 'logical_not', 'logical_or', 'logical_xor', 'loop', 'lrn', 'lstm_cell', 'lstm_sequence', 'matmul', 'matrix_nms', 'max_pool', 'maximum', 'minimum', 'mish', 'mod', 'multiclass_nms', 'multiply', 'mvn', 'negative', 'non_max_suppression', 'non_zero', 'normalize_l2', 'not_equal', 'nv12_to_bgr', 'nv12_to_rgb', 'one_hot', 'ops', 'pad', 'parameter', 'power', 'prelu', 'prior_box', 'prior_box_clustered', 'proposal', 'psroi_pooling', 'random_uniform', 'range', 'rdft', 'read_value', 'reduce_l1', 'reduce_l2', 'reduce_logical_and', 'reduce_logical_or', 'reduce_max', 'reduce_mean', 'reduce_min', 'reduce_prod', 'reduce_sum', 'region_yolo', 'relu', 'reorg_yolo', 'reshape', 'result', 'reverse_sequence', 'rnn_cell', 'rnn_sequence', 'roi_align', 'roi_pooling', 'roll', 'round', 'scatter_elements_update', 'scatter_nd_update', 'scatter_update', 'select', 'selu', 'shape_of', 'shuffle_channels', 'sigmoid', 'sign', 'sin', 'sinh', 'slice', 'softmax', 'softplus', 'softsign', 'space_to_batch', 'space_to_depth', 'split', 'sqrt', 'squared_difference', 'squeeze', 'strided_slice', 'subtract', 'swish', 'tan', 'tanh', 'tensor_iterator', 'tile', 'topk', 'transpose', 'unique', 'unsqueeze', 'variadic_split']
+read_value: openvino.utils.decorators.MultiMethod # value = <openvino.utils.decorators.MultiMethod object>
diff --git a/src/bindings/python/src/openvino/opset10/ops.pyi b/src/bindings/python/src/openvino/opset10/ops.pyi
new file mode 100644
index 00000000000..d31d8d160fd
--- /dev/null
+++ b/src/bindings/python/src/openvino/opset10/ops.pyi
@@ -0,0 +1,107 @@
+# type: ignore
+"""
+Factory functions for all openvino ops.
+"""
+from functools import partial
+from __future__ import annotations
+from openvino._pyopenvino import Node
+from openvino.utils.decorators import nameable_op
+from openvino.utils.node_factory import _get_node_factory
+from openvino.utils.types import as_node
+from openvino.utils.types import as_nodes
+from openvino.utils.types import make_constant_node
+import functools
+import openvino._pyopenvino
+import typing
+__all__ = ['Node', 'NodeInput', 'as_node', 'as_nodes', 'interpolate', 'is_finite', 'is_inf', 'is_nan', 'make_constant_node', 'nameable_op', 'partial', 'unique']
+def interpolate(*args, **kwargs) -> openvino._pyopenvino.Node:
+ """
+ Perform interpolation of independent slices in input tensor.
+
+ :param image: The node providing input tensor with data for interpolation.
+ :param output_shape: 1D tensor describing output shape for spatial axes.
+ :param scales: 1D tensor describing scales for spatial axes.
+ :param mode: Specifies type of interpolation. Possible values are: nearest, linear,
+ linear_onnx, cubic.
+ :param shape_calculation_mode:
+ Specifies which input, sizes or scales, is used to calculate an output
+ shape.
+ :param pads_begin: Specifies the number of pixels to add to the beginning of the image
+ being interpolated. Default is None.
+ :param pads_end: Specifies the number of pixels to add to the end of the image being
+ interpolated. Default is None.
+ :param coordinate_transformation_mode:
+ Specifies how to transform the coordinate in the resized tensor to the
+ coordinate in the original tensor. Default is "half_pixel".
+ :param nearest_mode: Specifies round mode when mode == nearest and is used only when
+ mode == nearest. Default is "round_prefer_floor".
+ :param antialias: Specifies whether to perform anti-aliasing. Default is False.
+ :param cube_coeff: Specifies the parameter a for cubic interpolation. Default is -0.75.
+ :param axes: 1D tensor specifying dimension indices where interpolation is applied.
+ Default is None.
+ :param name: Optional name for the output node. Default is None.
+ :return: Node representing interpolation operation.
+
+ """
+def is_finite(*args, **kwargs) -> openvino._pyopenvino.Node:
+ """
+ Performs element-wise mapping from NaN and Infinity to False. Other values are mapped to True.
+
+ :param data: A tensor of floating-point numeric type and arbitrary shape.
+ :param name: Optional name for the output node. The default is None.
+ :return: Node representing is_finite operation.
+
+ """
+def is_inf(*args, **kwargs) -> openvino._pyopenvino.Node:
+ """
+ Return a node which performs IsInf operation.
+
+ :param data: The input tensor.
+ :param attributes: Optional dictionary containing IsInf attributes.
+ :param name: Optional name of the node.
+
+ Available attributes:
+
+ * detect_negative Specifies whether to map negative infinities to true in output map.
+ Range of values: true, false
+ Default value: true
+ Required: no
+ * detect_positive Specifies whether to map positive infinities to true in output map.
+ Range of values: true, false
+ Default value: true
+ Required: no
+
+ :return: A new IsInf node.
+
+ """
+def is_nan(*args, **kwargs) -> openvino._pyopenvino.Node:
+ """
+ Performs element-wise mapping from NaN to True. Other values are mapped to False.
+
+ :param data: A tensor of floating point numeric type and arbitrary shape.
+ :param name: Optional name for the output node. Default is None.
+ :return: Node representing is_nan operation.
+
+ """
+def unique(*args, **kwargs) -> openvino._pyopenvino.Node:
+ """
+ Operator which selects and returns unique elements or unique slices of the input tensor.
+
+ :param data: Input data tensor.
+ :param axis: (Optional) An input tensor containing the axis value.
+ If not provided or None, data input is considered as a flattened tensor.
+ Default value: None.
+ :param sorted: (Optional) Controls the order of the returned unique values,
+ sorts ascendingly when true.
+ Default value: True.
+ :param index_element_type: (Optional) The data type set for outputs containing indices.
+ Default value: "i64".
+ :param count_element_type: (Optional) The data type set for the output with repetition count.
+ Default value: "i64".
+ :param name: (Optional) A name for the output node. Default value: None.
+ :return: Node representing Unique operation.
+
+ """
+NodeInput: typing._UnionGenericAlias # value = typing.Union[openvino._pyopenvino.Node, int, float, numpy.ndarray]
+_get_node_factory_opset10: functools.partial # value = functools.partial(<function _get_node_factory at memory_address>, 'opset10')
+_get_node_factory_opset4: functools.partial # value = functools.partial(<function _get_node_factory at memory_address>, 'opset4')
diff --git a/src/bindings/python/src/openvino/opset11/__init__.pyi b/src/bindings/python/src/openvino/opset11/__init__.pyi
new file mode 100644
index 00000000000..85fc79e445b
--- /dev/null
+++ b/src/bindings/python/src/openvino/opset11/__init__.pyi
@@ -0,0 +1,180 @@
+# type: ignore
+from __future__ import annotations
+from . import ops
+from openvino.opset10.ops import is_finite
+from openvino.opset10.ops import is_inf
+from openvino.opset10.ops import is_nan
+from openvino.opset10.ops import unique
+from openvino.opset11.ops import interpolate
+from openvino.opset11.ops import topk
+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 binary_convolution
+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_psroi_pooling
+from openvino.opset1.ops import depth_to_space
+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_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 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 matmul
+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 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_clustered
+from openvino.opset1.ops import psroi_pooling
+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 sigmoid
+from openvino.opset1.ops import sign
+from openvino.opset1.ops import sin
+from openvino.opset1.ops import sinh
+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 tile
+from openvino.opset1.ops import transpose
+from openvino.opset1.ops import unsqueeze
+from openvino.opset1.ops import variadic_split
+from openvino.opset2.ops import batch_to_space
+from openvino.opset2.ops import reorg_yolo
+from openvino.opset2.ops import roi_pooling
+from openvino.opset2.ops import space_to_batch
+from openvino.opset3.ops import broadcast
+from openvino.opset3.ops import bucketize
+from openvino.opset3.ops import cum_sum
+from openvino.opset3.ops import cum_sum as cumsum
+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.opset3.ops import gru_cell
+from openvino.opset3.ops import non_zero
+from openvino.opset3.ops import rnn_cell
+from openvino.opset3.ops import scatter_elements_update
+from openvino.opset3.ops import scatter_update
+from openvino.opset3.ops import shape_of
+from openvino.opset3.ops import shuffle_channels
+from openvino.opset4.ops import acosh
+from openvino.opset4.ops import asinh
+from openvino.opset4.ops import atanh
+from openvino.opset4.ops import ctc_loss
+from openvino.opset4.ops import hswish
+from openvino.opset4.ops import lstm_cell
+from openvino.opset4.ops import mish
+from openvino.opset4.ops import proposal
+from openvino.opset4.ops import reduce_l1
+from openvino.opset4.ops import reduce_l2
+from openvino.opset4.ops import scatter_nd_update
+from openvino.opset4.ops import softplus
+from openvino.opset4.ops import swish
+from openvino.opset5.ops import batch_norm_inference
+from openvino.opset5.ops import gru_sequence
+from openvino.opset5.ops import hsigmoid
+from openvino.opset5.ops import log_softmax
+from openvino.opset5.ops import lstm_sequence
+from openvino.opset5.ops import rnn_sequence
+from openvino.opset5.ops import round
+from openvino.opset6.ops import ctc_greedy_decoder_seq_len
+from openvino.opset6.ops import gather_elements
+from openvino.opset6.ops import mvn
+from openvino.opset7.ops import dft
+from openvino.opset7.ops import einsum
+from openvino.opset7.ops import gelu
+from openvino.opset7.ops import idft
+from openvino.opset7.ops import roll
+from openvino.opset8.ops import adaptive_avg_pool
+from openvino.opset8.ops import adaptive_max_pool
+from openvino.opset8.ops import deformable_convolution
+from openvino.opset8.ops import detection_output
+from openvino.opset8.ops import gather
+from openvino.opset8.ops import gather_nd
+from openvino.opset8.ops import i420_to_bgr
+from openvino.opset8.ops import i420_to_rgb
+from openvino.opset8.ops import matrix_nms
+from openvino.opset8.ops import max_pool
+from openvino.opset8.ops import nv12_to_bgr
+from openvino.opset8.ops import nv12_to_rgb
+from openvino.opset8.ops import prior_box
+from openvino.opset8.ops import random_uniform
+from openvino.opset8.ops import slice
+from openvino.opset8.ops import softmax
+from openvino.opset9.ops import eye
+from openvino.opset9.ops import generate_proposals
+from openvino.opset9.ops import grid_sample
+from openvino.opset9.ops import irdft
+from openvino.opset9.ops import multiclass_nms
+from openvino.opset9.ops import non_max_suppression
+from openvino.opset9.ops import rdft
+from openvino.opset9.ops import roi_align
+from openvino.opset9.ops import softsign
+from openvino._pyopenvino.op import assign
+from openvino._pyopenvino.op import if_op
+from openvino._pyopenvino.op import loop
+from openvino._pyopenvino.op import tensor_iterator
+import openvino.utils.decorators
+__all__ = ['abs', 'absolute', 'acos', 'acosh', 'adaptive_avg_pool', 'adaptive_max_pool', 'add', 'asin', 'asinh', 'assign', 'atan', 'atanh', 'avg_pool', 'batch_norm_inference', 'batch_to_space', 'binary_convolution', 'broadcast', 'bucketize', 'ceil', 'ceiling', 'clamp', 'concat', 'constant', 'convert', 'convert_like', 'convolution', 'convolution_backprop_data', 'cos', 'cosh', 'ctc_greedy_decoder', 'ctc_greedy_decoder_seq_len', 'ctc_loss', 'cum_sum', 'cumsum', 'deformable_convolution', 'deformable_psroi_pooling', 'depth_to_space', 'detection_output', 'dft', 'divide', 'einsum', 'elu', 'embedding_bag_offsets_sum', 'embedding_bag_packed_sum', 'embedding_segments_sum', 'equal', 'erf', 'exp', 'extract_image_patches', 'eye', 'fake_quantize', 'floor', 'floor_mod', 'gather', 'gather_elements', 'gather_nd', 'gather_tree', 'gelu', 'generate_proposals', 'greater', 'greater_equal', 'grid_sample', 'grn', 'group_convolution', 'group_convolution_backprop_data', 'gru_cell', 'gru_sequence', 'hard_sigmoid', 'hsigmoid', 'hswish', 'i420_to_bgr', 'i420_to_rgb', 'idft', 'if_op', 'interpolate', 'irdft', 'is_finite', 'is_inf', 'is_nan', 'less', 'less_equal', 'log', 'log_softmax', 'logical_and', 'logical_not', 'logical_or', 'logical_xor', 'loop', 'lrn', 'lstm_cell', 'lstm_sequence', 'matmul', 'matrix_nms', 'max_pool', 'maximum', 'minimum', 'mish', 'mod', 'multiclass_nms', 'multiply', 'mvn', 'negative', 'non_max_suppression', 'non_zero', 'normalize_l2', 'not_equal', 'nv12_to_bgr', 'nv12_to_rgb', 'one_hot', 'ops', 'pad', 'parameter', 'power', 'prelu', 'prior_box', 'prior_box_clustered', 'proposal', 'psroi_pooling', 'random_uniform', 'range', 'rdft', 'read_value', 'reduce_l1', 'reduce_l2', 'reduce_logical_and', 'reduce_logical_or', 'reduce_max', 'reduce_mean', 'reduce_min', 'reduce_prod', 'reduce_sum', 'region_yolo', 'relu', 'reorg_yolo', 'reshape', 'result', 'reverse_sequence', 'rnn_cell', 'rnn_sequence', 'roi_align', 'roi_pooling', 'roll', 'round', 'scatter_elements_update', 'scatter_nd_update', 'scatter_update', 'select', 'selu', 'shape_of', 'shuffle_channels', 'sigmoid', 'sign', 'sin', 'sinh', 'slice', 'softmax', 'softplus', 'softsign', 'space_to_batch', 'space_to_depth', 'split', 'sqrt', 'squared_difference', 'squeeze', 'strided_slice', 'subtract', 'swish', 'tan', 'tanh', 'tensor_iterator', 'tile', 'topk', 'transpose', 'unique', 'unsqueeze', 'variadic_split']
+read_value: openvino.utils.decorators.MultiMethod # value = <openvino.utils.decorators.MultiMethod object>
diff --git a/src/bindings/python/src/openvino/opset11/ops.pyi b/src/bindings/python/src/openvino/opset11/ops.pyi
new file mode 100644
index 00000000000..33a8a95aef0
--- /dev/null
+++ b/src/bindings/python/src/openvino/opset11/ops.pyi
@@ -0,0 +1,60 @@
+# type: ignore
+"""
+Factory functions for all openvino ops.
+"""
+from functools import partial
+from __future__ import annotations
+from openvino._pyopenvino import Node
+from openvino.utils.decorators import nameable_op
+from openvino.utils.node_factory import _get_node_factory
+from openvino.utils.types import as_nodes
+import functools
+import openvino._pyopenvino
+import typing
+__all__ = ['Node', 'NodeInput', 'as_nodes', 'interpolate', 'nameable_op', 'partial', 'topk']
+def interpolate(*args, **kwargs) -> openvino._pyopenvino.Node:
+ """
+ Perfors the interpolation of the input tensor.
+
+ :param image: The node providing input tensor with data for interpolation.
+ :param scales_or_sizes:
+ 1D tensor providing information used to calculate the output shape
+ of the operation. It might contain floats (scales) or integers(sizes).
+ :param mode: Specifies type of interpolation. Possible values are: nearest, linear,
+ linear_onnx, cubic, bilinear_pillow, bicubic_pillow.
+ :param shape_calculation_mode:
+ Specifies how the scales_or_sizes input should be interpreted.
+ :param pads_begin: Specifies the number of pixels to add to the beginning of the image
+ being interpolated. Default is None.
+ :param pads_end: Specifies the number of pixels to add to the end of the image being
+ interpolated. Default is None.
+ :param coordinate_transformation_mode:
+ Specifies how to transform the coordinate in the resized tensor to the
+ coordinate in the original tensor. Default is "half_pixel".
+ :param nearest_mode: Specifies round mode when mode == nearest and is used only when
+ mode == nearest. Default is "round_prefer_floor".
+ :param antialias: Specifies whether to perform anti-aliasing. Default is False.
+ :param cube_coeff: Specifies the parameter a for cubic interpolation. Default is -0.75.
+ :param axes: 1D tensor specifying dimension indices where interpolation is applied.
+ The default is None.
+ :param name: Optional name for the output node. The default is None.
+ :return: Node representing the interpolation operation.
+
+ """
+def topk(*args, **kwargs) -> openvino._pyopenvino.Node:
+ """
+ Return a node which performs TopK.
+
+ :param data: Input data.
+ :param k: K.
+ :param axis: TopK Axis.
+ :param mode: Compute TopK largest ('max') or smallest ('min')
+ :param sort: Order of output elements (sort by: 'none', 'index' or 'value')
+ :param index_element_type: Type of output tensor with indices.
+ :param stable: Specifies whether the equivalent elements should maintain
+ their relative order from the input tensor during sorting.
+ :return: The new node which performs TopK
+
+ """
+NodeInput: typing._UnionGenericAlias # value = typing.Union[openvino._pyopenvino.Node, int, float, numpy.ndarray]
+_get_node_factory_opset11: functools.partial # value = functools.partial(<function _get_node_factory at memory_address>, 'opset11')
diff --git a/src/bindings/python/src/openvino/opset12/__init__.pyi b/src/bindings/python/src/openvino/opset12/__init__.pyi
new file mode 100644
index 00000000000..18cc0035683
--- /dev/null
+++ b/src/bindings/python/src/openvino/opset12/__init__.pyi
@@ -0,0 +1,181 @@
+# type: ignore
+from __future__ import annotations
+from . import ops
+from openvino.opset10.ops import is_finite
+from openvino.opset10.ops import is_inf
+from openvino.opset10.ops import is_nan
+from openvino.opset10.ops import unique
+from openvino.opset11.ops import interpolate
+from openvino.opset11.ops import topk
+from openvino.opset12.ops import group_normalization
+from openvino.opset12.ops import pad
+from openvino.opset12.ops import scatter_elements_update
+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 binary_convolution
+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_psroi_pooling
+from openvino.opset1.ops import depth_to_space
+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_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 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 matmul
+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 normalize_l2
+from openvino.opset1.ops import not_equal
+from openvino.opset1.ops import one_hot
+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_clustered
+from openvino.opset1.ops import psroi_pooling
+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 sigmoid
+from openvino.opset1.ops import sign
+from openvino.opset1.ops import sin
+from openvino.opset1.ops import sinh
+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 tile
+from openvino.opset1.ops import transpose
+from openvino.opset1.ops import unsqueeze
+from openvino.opset1.ops import variadic_split
+from openvino.opset2.ops import batch_to_space
+from openvino.opset2.ops import reorg_yolo
+from openvino.opset2.ops import roi_pooling
+from openvino.opset2.ops import space_to_batch
+from openvino.opset3.ops import broadcast
+from openvino.opset3.ops import bucketize
+from openvino.opset3.ops import cum_sum
+from openvino.opset3.ops import cum_sum as cumsum
+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.opset3.ops import gru_cell
+from openvino.opset3.ops import non_zero
+from openvino.opset3.ops import rnn_cell
+from openvino.opset3.ops import scatter_update
+from openvino.opset3.ops import shape_of
+from openvino.opset3.ops import shuffle_channels
+from openvino.opset4.ops import acosh
+from openvino.opset4.ops import asinh
+from openvino.opset4.ops import atanh
+from openvino.opset4.ops import ctc_loss
+from openvino.opset4.ops import hswish
+from openvino.opset4.ops import lstm_cell
+from openvino.opset4.ops import mish
+from openvino.opset4.ops import proposal
+from openvino.opset4.ops import range
+from openvino.opset4.ops import reduce_l1
+from openvino.opset4.ops import reduce_l2
+from openvino.opset4.ops import scatter_nd_update
+from openvino.opset4.ops import softplus
+from openvino.opset4.ops import swish
+from openvino.opset5.ops import batch_norm_inference
+from openvino.opset5.ops import gru_sequence
+from openvino.opset5.ops import hsigmoid
+from openvino.opset5.ops import log_softmax
+from openvino.opset5.ops import lstm_sequence
+from openvino.opset5.ops import rnn_sequence
+from openvino.opset5.ops import round
+from openvino.opset6.ops import ctc_greedy_decoder_seq_len
+from openvino.opset6.ops import gather_elements
+from openvino.opset6.ops import mvn
+from openvino.opset7.ops import dft
+from openvino.opset7.ops import einsum
+from openvino.opset7.ops import gelu
+from openvino.opset7.ops import idft
+from openvino.opset7.ops import roll
+from openvino.opset8.ops import adaptive_avg_pool
+from openvino.opset8.ops import adaptive_max_pool
+from openvino.opset8.ops import deformable_convolution
+from openvino.opset8.ops import detection_output
+from openvino.opset8.ops import gather
+from openvino.opset8.ops import gather_nd
+from openvino.opset8.ops import i420_to_bgr
+from openvino.opset8.ops import i420_to_rgb
+from openvino.opset8.ops import matrix_nms
+from openvino.opset8.ops import max_pool
+from openvino.opset8.ops import nv12_to_bgr
+from openvino.opset8.ops import nv12_to_rgb
+from openvino.opset8.ops import prior_box
+from openvino.opset8.ops import random_uniform
+from openvino.opset8.ops import slice
+from openvino.opset8.ops import softmax
+from openvino.opset9.ops import eye
+from openvino.opset9.ops import generate_proposals
+from openvino.opset9.ops import grid_sample
+from openvino.opset9.ops import irdft
+from openvino.opset9.ops import multiclass_nms
+from openvino.opset9.ops import non_max_suppression
+from openvino.opset9.ops import rdft
+from openvino.opset9.ops import roi_align
+from openvino.opset9.ops import softsign
+from openvino._pyopenvino.op import assign
+from openvino._pyopenvino.op import if_op
+from openvino._pyopenvino.op import loop
+from openvino._pyopenvino.op import tensor_iterator
+import openvino.utils.decorators
+__all__ = ['abs', 'absolute', 'acos', 'acosh', 'adaptive_avg_pool', 'adaptive_max_pool', 'add', 'asin', 'asinh', 'assign', 'atan', 'atanh', 'avg_pool', 'batch_norm_inference', 'batch_to_space', 'binary_convolution', 'broadcast', 'bucketize', 'ceil', 'ceiling', 'clamp', 'concat', 'constant', 'convert', 'convert_like', 'convolution', 'convolution_backprop_data', 'cos', 'cosh', 'ctc_greedy_decoder', 'ctc_greedy_decoder_seq_len', 'ctc_loss', 'cum_sum', 'cumsum', 'deformable_convolution', 'deformable_psroi_pooling', 'depth_to_space', 'detection_output', 'dft', 'divide', 'einsum', 'elu', 'embedding_bag_offsets_sum', 'embedding_bag_packed_sum', 'embedding_segments_sum', 'equal', 'erf', 'exp', 'extract_image_patches', 'eye', 'fake_quantize', 'floor', 'floor_mod', 'gather', 'gather_elements', 'gather_nd', 'gather_tree', 'gelu', 'generate_proposals', 'greater', 'greater_equal', 'grid_sample', 'grn', 'group_convolution', 'group_convolution_backprop_data', 'group_normalization', 'gru_cell', 'gru_sequence', 'hard_sigmoid', 'hsigmoid', 'hswish', 'i420_to_bgr', 'i420_to_rgb', 'idft', 'if_op', 'interpolate', 'irdft', 'is_finite', 'is_inf', 'is_nan', 'less', 'less_equal', 'log', 'log_softmax', 'logical_and', 'logical_not', 'logical_or', 'logical_xor', 'loop', 'lrn', 'lstm_cell', 'lstm_sequence', 'matmul', 'matrix_nms', 'max_pool', 'maximum', 'minimum', 'mish', 'mod', 'multiclass_nms', 'multiply', 'mvn', 'negative', 'non_max_suppression', 'non_zero', 'normalize_l2', 'not_equal', 'nv12_to_bgr', 'nv12_to_rgb', 'one_hot', 'ops', 'pad', 'parameter', 'power', 'prelu', 'prior_box', 'prior_box_clustered', 'proposal', 'psroi_pooling', 'random_uniform', 'range', 'rdft', 'read_value', 'reduce_l1', 'reduce_l2', 'reduce_logical_and', 'reduce_logical_or', 'reduce_max', 'reduce_mean', 'reduce_min', 'reduce_prod', 'reduce_sum', 'region_yolo', 'relu', 'reorg_yolo', 'reshape', 'result', 'reverse_sequence', 'rnn_cell', 'rnn_sequence', 'roi_align', 'roi_pooling', 'roll', 'round', 'scatter_elements_update', 'scatter_nd_update', 'scatter_update', 'select', 'selu', 'shape_of', 'shuffle_channels', 'sigmoid', 'sign', 'sin', 'sinh', 'slice', 'softmax', 'softplus', 'softsign', 'space_to_batch', 'space_to_depth', 'split', 'sqrt', 'squared_difference', 'squeeze', 'strided_slice', 'subtract', 'swish', 'tan', 'tanh', 'tensor_iterator', 'tile', 'topk', 'transpose', 'unique', 'unsqueeze', 'variadic_split']
+read_value: openvino.utils.decorators.MultiMethod # value = <openvino.utils.decorators.MultiMethod object>
diff --git a/src/bindings/python/src/openvino/opset12/ops.pyi b/src/bindings/python/src/openvino/opset12/ops.pyi
new file mode 100644
index 00000000000..92b0e48111c
--- /dev/null
+++ b/src/bindings/python/src/openvino/opset12/ops.pyi
@@ -0,0 +1,68 @@
+# type: ignore
+"""
+Factory functions for all ngraph ops.
+"""
+from functools import partial
+from __future__ import annotations
+from openvino._pyopenvino import Node
+from openvino.utils.decorators import nameable_op
+from openvino.utils.node_factory import _get_node_factory
+from openvino.utils.types import as_node
+from openvino.utils.types import as_nodes
+import functools
+import openvino._pyopenvino
+import typing
+__all__ = ['Node', 'NodeInput', 'as_node', 'as_nodes', 'group_normalization', 'nameable_op', 'pad', 'partial', 'scatter_elements_update']
+def group_normalization(*args, **kwargs) -> openvino._pyopenvino.Node:
+ """
+ Return a node which produces a GroupNormalization operation.
+
+ :param data: The input tensor to be normalized.
+ :param scale: The tensor containing the scale values for each channel.
+ :param bias: The tensor containing the bias values for each channel.
+ :param num_groups: Specifies the number of groups that the channel dimension will be divided into.
+ :param epsilon: A very small value added to the variance for numerical stability.
+ Ensures that division by zero does not occur for any normalized element.
+ :return: GroupNormalization node
+
+ """
+def pad(*args, **kwargs) -> openvino._pyopenvino.Node:
+ """
+ Return a generic padding operation.
+
+ :param arg: The node producing input tensor to be padded.
+ :param pads_begin: Number of padding elements to be added before position 0
+ on each axis of arg. Negative values are supported.
+ :param pads_end: Number of padding elements to be added after the last element.
+ Negative values are supported.
+ :param pad_mode: "constant", "edge", "reflect" or "symmetric"
+ :param arg_pad_value: value used for padding if pad_mode is "constant"
+ :return: Pad operation node.
+
+ """
+def scatter_elements_update(*args, **kwargs) -> openvino._pyopenvino.Node:
+ """
+ Return a node which produces a ScatterElementsUpdate operation.
+
+ :param data: The input tensor to be updated.
+ :param indices: The tensor with indexes which will be updated. Negative indices are supported.
+ :param updates: The tensor with update values.
+ :param axis: The axis for scatter.
+ :param reduction: The type of operation to perform on the inputs. One of "none", "sum",
+ "prod", "min", "max", "mean".
+ :param: use_init_val: Controls whether the elements in the data input tensor are used as
+ initial value for reduce operations.
+ :return: ScatterElementsUpdate node
+
+ ScatterElementsUpdate creates a copy of the first input tensor with updated elements
+ specified with second and third input tensors.
+
+ For each entry in `updates`, the target index in `data` is obtained by combining
+ the corresponding entry in `indices` with the index of the entry itself: the
+ index-value for dimension equal to `axis` is obtained from the value of the
+ corresponding entry in `indices` and the index-value for dimension not equal
+ to `axis` is obtained from the index of the entry itself.
+
+ """
+NodeInput: typing._UnionGenericAlias # value = typing.Union[openvino._pyopenvino.Node, int, float, numpy.ndarray]
+_get_node_factory_opset12: functools.partial # value = functools.partial(<function _get_node_factory at memory_address>, 'opset12')
diff --git a/src/bindings/python/src/openvino/opset13/__init__.pyi b/src/bindings/python/src/openvino/opset13/__init__.pyi
new file mode 100644
index 00000000000..1ac74ef941b
--- /dev/null
+++ b/src/bindings/python/src/openvino/opset13/__init__.pyi
@@ -0,0 +1,189 @@
+# type: ignore
+from __future__ import annotations
+from . import ops
+from openvino.opset10.ops import is_finite
+from openvino.opset10.ops import is_inf
+from openvino.opset10.ops import is_nan
+from openvino.opset10.ops import unique
+from openvino.opset11.ops import interpolate
+from openvino.opset11.ops import topk
+from openvino.opset12.ops import group_normalization
+from openvino.opset12.ops import pad
+from openvino.opset12.ops import scatter_elements_update
+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.opset13.ops import fake_convert
+from openvino.opset13.ops import fake_quantize
+from openvino.opset13.ops import multinomial
+from openvino.opset13.ops import nms_rotated
+from openvino.opset13.ops import result
+from openvino.opset13.ops import scaled_dot_product_attention
+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 binary_convolution
+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 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_psroi_pooling
+from openvino.opset1.ops import depth_to_space
+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 floor
+from openvino.opset1.ops import floor_mod
+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 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 matmul
+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 normalize_l2
+from openvino.opset1.ops import not_equal
+from openvino.opset1.ops import one_hot
+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_clustered
+from openvino.opset1.ops import psroi_pooling
+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 reverse_sequence
+from openvino.opset1.ops import select
+from openvino.opset1.ops import selu
+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 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 tile
+from openvino.opset1.ops import transpose
+from openvino.opset1.ops import unsqueeze
+from openvino.opset1.ops import variadic_split
+from openvino.opset2.ops import batch_to_space
+from openvino.opset2.ops import reorg_yolo
+from openvino.opset2.ops import roi_pooling
+from openvino.opset2.ops import space_to_batch
+from openvino.opset3.ops import broadcast
+from openvino.opset3.ops import bucketize
+from openvino.opset3.ops import cum_sum
+from openvino.opset3.ops import cum_sum as cumsum
+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.opset3.ops import gru_cell
+from openvino.opset3.ops import non_zero
+from openvino.opset3.ops import rnn_cell
+from openvino.opset3.ops import scatter_update
+from openvino.opset3.ops import shape_of
+from openvino.opset3.ops import shuffle_channels
+from openvino.opset4.ops import acosh
+from openvino.opset4.ops import asinh
+from openvino.opset4.ops import atanh
+from openvino.opset4.ops import ctc_loss
+from openvino.opset4.ops import hswish
+from openvino.opset4.ops import lstm_cell
+from openvino.opset4.ops import mish
+from openvino.opset4.ops import proposal
+from openvino.opset4.ops import range
+from openvino.opset4.ops import reduce_l1
+from openvino.opset4.ops import reduce_l2
+from openvino.opset4.ops import scatter_nd_update
+from openvino.opset4.ops import softplus
+from openvino.opset4.ops import swish
+from openvino.opset5.ops import batch_norm_inference
+from openvino.opset5.ops import gru_sequence
+from openvino.opset5.ops import hsigmoid
+from openvino.opset5.ops import log_softmax
+from openvino.opset5.ops import lstm_sequence
+from openvino.opset5.ops import rnn_sequence
+from openvino.opset5.ops import round
+from openvino.opset6.ops import ctc_greedy_decoder_seq_len
+from openvino.opset6.ops import gather_elements
+from openvino.opset6.ops import mvn
+from openvino.opset7.ops import dft
+from openvino.opset7.ops import einsum
+from openvino.opset7.ops import gelu
+from openvino.opset7.ops import idft
+from openvino.opset7.ops import roll
+from openvino.opset8.ops import adaptive_avg_pool
+from openvino.opset8.ops import adaptive_max_pool
+from openvino.opset8.ops import deformable_convolution
+from openvino.opset8.ops import detection_output
+from openvino.opset8.ops import gather
+from openvino.opset8.ops import gather_nd
+from openvino.opset8.ops import i420_to_bgr
+from openvino.opset8.ops import i420_to_rgb
+from openvino.opset8.ops import matrix_nms
+from openvino.opset8.ops import max_pool
+from openvino.opset8.ops import nv12_to_bgr
+from openvino.opset8.ops import nv12_to_rgb
+from openvino.opset8.ops import prior_box
+from openvino.opset8.ops import random_uniform
+from openvino.opset8.ops import slice
+from openvino.opset8.ops import softmax
+from openvino.opset9.ops import eye
+from openvino.opset9.ops import generate_proposals
+from openvino.opset9.ops import grid_sample
+from openvino.opset9.ops import irdft
+from openvino.opset9.ops import multiclass_nms
+from openvino.opset9.ops import non_max_suppression
+from openvino.opset9.ops import rdft
+from openvino.opset9.ops import roi_align
+from openvino.opset9.ops import softsign
+from openvino._pyopenvino.op import assign
+from openvino._pyopenvino.op import if_op
+from openvino._pyopenvino.op import loop
+from openvino._pyopenvino.op import tensor_iterator
+import openvino.utils.decorators
+__all__ = ['abs', 'absolute', 'acos', 'acosh', 'adaptive_avg_pool', 'adaptive_max_pool', 'add', 'asin', 'asinh', 'assign', 'atan', 'atanh', 'avg_pool', 'batch_norm_inference', 'batch_to_space', 'binary_convolution', 'bitwise_and', 'bitwise_not', 'bitwise_or', 'bitwise_xor', 'broadcast', 'bucketize', 'ceil', 'ceiling', 'clamp', 'concat', 'constant', 'convert', 'convert_like', 'convolution', 'convolution_backprop_data', 'cos', 'cosh', 'ctc_greedy_decoder', 'ctc_greedy_decoder_seq_len', 'ctc_loss', 'cum_sum', 'cumsum', 'deformable_convolution', 'deformable_psroi_pooling', 'depth_to_space', 'detection_output', 'dft', 'divide', 'einsum', 'elu', 'embedding_bag_offsets_sum', 'embedding_bag_packed_sum', 'embedding_segments_sum', 'equal', 'erf', 'exp', 'extract_image_patches', 'eye', 'fake_convert', 'fake_quantize', 'floor', 'floor_mod', 'gather', 'gather_elements', 'gather_nd', 'gather_tree', 'gelu', 'generate_proposals', 'greater', 'greater_equal', 'grid_sample', 'grn', 'group_convolution', 'group_convolution_backprop_data', 'group_normalization', 'gru_cell', 'gru_sequence', 'hard_sigmoid', 'hsigmoid', 'hswish', 'i420_to_bgr', 'i420_to_rgb', 'idft', 'if_op', 'interpolate', 'irdft', 'is_finite', 'is_inf', 'is_nan', 'less', 'less_equal', 'log', 'log_softmax', 'logical_and', 'logical_not', 'logical_or', 'logical_xor', 'loop', 'lrn', 'lstm_cell', 'lstm_sequence', 'matmul', 'matrix_nms', 'max_pool', 'maximum', 'minimum', 'mish', 'mod', 'multiclass_nms', 'multinomial', 'multiply', 'mvn', 'negative', 'nms_rotated', 'non_max_suppression', 'non_zero', 'normalize_l2', 'not_equal', 'nv12_to_bgr', 'nv12_to_rgb', 'one_hot', 'ops', 'pad', 'parameter', 'power', 'prelu', 'prior_box', 'prior_box_clustered', 'proposal', 'psroi_pooling', 'random_uniform', 'range', 'rdft', 'read_value', 'reduce_l1', 'reduce_l2', 'reduce_logical_and', 'reduce_logical_or', 'reduce_max', 'reduce_mean', 'reduce_min', 'reduce_prod', 'reduce_sum', 'region_yolo', 'relu', 'reorg_yolo', 'reshape', 'result', 'reverse_sequence', 'rnn_cell', 'rnn_sequence', 'roi_align', 'roi_pooling', 'roll', 'round', 'scaled_dot_product_attention', 'scatter_elements_update', 'scatter_nd_update', 'scatter_update', 'select', 'selu', 'shape_of', 'shuffle_channels', 'sigmoid', 'sign', 'sin', 'sinh', 'slice', 'softmax', 'softplus', 'softsign', 'space_to_batch', 'space_to_depth', 'split', 'sqrt', 'squared_difference', 'squeeze', 'strided_slice', 'subtract', 'swish', 'tan', 'tanh', 'tensor_iterator', 'tile', 'topk', 'transpose', 'unique', 'unsqueeze', 'variadic_split']
+constant: openvino.utils.decorators.MultiMethod # value = <openvino.utils.decorators.MultiMethod object>
+read_value: openvino.utils.decorators.MultiMethod # value = <openvino.utils.decorators.MultiMethod object>
diff --git a/src/bindings/python/src/openvino/opset13/ops.pyi b/src/bindings/python/src/openvino/opset13/ops.pyi
new file mode 100644
index 00000000000..07e10dd9eaa
--- /dev/null
+++ b/src/bindings/python/src/openvino/opset13/ops.pyi
@@ -0,0 +1,196 @@
+# type: ignore
+"""
+Factory functions for ops added to openvino opset13.
+"""
+from functools import partial
+from functools import singledispatch
+from __future__ import annotations
+from openvino.opset1.ops import convert_like
+from openvino._pyopenvino import Node
+from openvino._pyopenvino import Output
+from openvino._pyopenvino import Shape
+from openvino._pyopenvino import Tensor
+from openvino._pyopenvino import Type
+from openvino._pyopenvino.op import Constant
+from openvino._pyopenvino.op import Result
+from openvino.utils.decorators import binary_op
+from openvino.utils.decorators import nameable_op
+from openvino.utils.decorators import overloading
+from openvino.utils.decorators import unary_op
+from openvino.utils.node_factory import _get_node_factory
+from openvino.utils.types import as_node
+from openvino.utils.types import as_nodes
+import functools
+import logging as logging
+import numpy as np
+import openvino._pyopenvino
+import openvino.utils.decorators
+import typing
+__all__ = ['Constant', 'Node', 'NodeInput', 'NumericData', 'NumericType', 'Output', 'Result', 'Shape', 'Tensor', 'Type', 'as_node', 'as_nodes', 'binary_op', 'bitwise_and', 'bitwise_not', 'bitwise_or', 'bitwise_xor', 'constant', 'convert_like', 'fake_convert', 'fake_quantize', 'log', 'logging', 'multinomial', 'nameable_op', 'nms_rotated', 'np', 'overloading', 'partial', 'result', 'scaled_dot_product_attention', 'singledispatch', 'unary_op']
+def bitwise_and(left, right, *args, **kwargs) -> openvino._pyopenvino.Node:
+ """
+ Return node which performs bitwise AND operation on input nodes element-wise.
+
+ For boolean input tensors, operator is equivalent to logical_and.
+
+ :param left_node: Tensor of integer or boolean datatype providing data.
+ :param right_node: Tensor of integer or boolean datatype providing data.
+ :param auto_broadcast: The type of broadcasting specifies rules used for auto-broadcasting of input tensors. Defaults to “NUMPY”.
+ :param name: The optional new name for output node.
+ :return: The node performing bitwise AND operation on input nodes corresponding elements.
+
+ """
+def bitwise_not(input_value, *args, **kwargs) -> openvino._pyopenvino.Node:
+ """
+ Return node which performs bitwise NOT operation on input node element-wise.
+
+ For boolean input tensors, operator is equivalent to logical_not.
+
+ :param node: Tensor of integer or boolean datatype providing data.
+ :param name: The optional new name for output node.
+ :return: The node performing bitwise NOT operation on the given tensor.
+
+ """
+def bitwise_or(left, right, *args, **kwargs) -> openvino._pyopenvino.Node:
+ """
+ Return node which performs bitwise OR operation on input nodes element-wise.
+
+ For boolean input tensors, operator is equivalent to logical_or.
+
+ :param left_node: Tensor of integer or boolean datatype providing data.
+ :param right_node: Tensor of integer or boolean datatype providing data.
+ :param auto_broadcast: The type of broadcasting specifies rules used for auto-broadcasting of input tensors. Defaults to “NUMPY”.
+ :param name: The optional new name for output node.
+ :return: The node performing bitwise OR operation on input nodes corresponding elements.
+
+ """
+def bitwise_xor(left, right, *args, **kwargs) -> openvino._pyopenvino.Node:
+ """
+ Return node which performs bitwise XOR operation on input nodes element-wise.
+
+ For boolean input tensors, operator is equivalent to logical_xor.
+
+ :param left_node: Tensor of integer or boolean datatype providing data.
+ :param right_node: Tensor of integer or boolean datatype providing data.
+ :param auto_broadcast: The type of broadcasting specifies rules used for auto-broadcasting of input tensors. Defaults to “NUMPY”.
+ :param name: The optional new name for output node.
+ :return: The node performing bitwise XOR operation on input nodes corresponding elements.
+
+ """
+def fake_convert(*args, **kwargs) -> openvino._pyopenvino.Node:
+ """
+ Return a node which performs FakeConvert.
+
+ FakeConvert is experimental and may change in the future.
+ .. warning:: FakeConvert is experimental and may change in the future.
+
+ :param data: The node with data tensor with FP16, BF16 or FP32 datatype.
+ :param scale: Tensor with a scale factor for the data input value,
+ of the same type as the data, and shape Numpy-broadcastable to data.
+ :param shift: Optional tensor with value to subtract before and add after conversion of the data input value,
+ of the same type as the data, and shape Numpy-broadcastable to data.
+ :param destination_type: Type to emulate, string of either "f8e4m3" or "f8e5m2".
+ :param name: The optional new name for output node.
+
+ :return: The new node performing FakeConvert operation.
+
+ """
+def fake_quantize(*args, **kwargs) -> openvino._pyopenvino.Node:
+ """
+ Perform an element-wise linear quantization on input data.
+
+ :param data: The node with data tensor.
+ :param input_low: The node with the minimum for input values.
+ :param input_high: The node with the maximum for input values.
+ :param output_low: The node with the minimum quantized value.
+ :param output_high: The node with the maximum quantized value.
+ :param levels: The number of quantization levels. Integer value.
+ :param auto_broadcast: The type of broadcasting specifies rules used for
+ auto-broadcasting of input tensors.
+ :param name: Optional name of the new node.
+ :return: New node with quantized value.
+
+ Input floating point values are quantized into a discrete set of floating point values.
+
+ .. code-block:: python
+
+ if x <= input_low:
+ output = output_low
+ if x > input_high:
+ output = output_high
+ else:
+ output = fake_quantize(output)
+
+ Fake quantize uses the following logic:
+
+ \\f[ output =
+ \\dfrac{round( \\dfrac{data - input\\_low}{(input\\_high - input\\_low)\\cdot (levels-1)})}
+ {(levels-1)\\cdot (output\\_high - output\\_low)} + output\\_low \\f]
+
+ """
+def multinomial(*args, **kwargs) -> openvino._pyopenvino.Node:
+ """
+ Return a node which generates a sequence of class indices sampled from the multinomial distribution.
+
+ :param probs: Tensor with probabilities of floating-point type, and shape [batch_size, class_size].
+ :param num_samples: Tensor (scalar or 1D) a single element of type i32 or i64,
+ specifying the number of samples to draw from the multinomial distribution.
+ :param convert_type: Specifies the output tensor type, possible values: 'i64', 'i32'.
+ :param with_replacement: Flag that specifies whether to sample with replacement.
+ :param log_probs: Flag that specifies whether *probs* should be treated as unnormalized log probabilities.
+ :param global_seed: Specifies global seed value. Required to be a positive integer or 0.
+ :param op_seed: Specifies operational seed value. Required to be a positive integer or 0.
+ :param name: The optional new name for output node.
+
+ :return: The new node performing Multinomial operation.
+
+ """
+def nms_rotated(*args, **kwargs) -> openvino._pyopenvino.Node:
+ """
+ Return a node which performs NMSRotated.
+
+ :param boxes: Tensor with box coordinates of floating point type and shape [num_batches, num_boxes, 5],
+ where the last dimension is defined as [x_ctr, y_ctr, width, height, angle_radians].
+ :param scores: Tensor with box scores of floating point type and shape [num_batches, num_classes, num_boxes].
+ :param max_output_boxes_per_class: Tensor (scalar or 1D) of integer type, specifying maximum number of boxes
+ to be selected per class.
+ :param iou_threshold: Tensor (scalar or 1D) of floating point type, specifying intersection over union threshold
+ :param score_threshold: Tensor (scalar or 1D) of floating point type, specifying minimum score to consider box for the processing.
+ :param sort_result_descending: Flag that specifies whenever it is necessary to sort selected
+ boxes across batches or not.
+ :param output_type: Output element type.
+ :param clockwise: Flag that specifies direction of the box rotation.
+ :return: The new node which performs NMSRotated
+
+ """
+def result(input_value, *args, **kwargs) -> openvino._pyopenvino.Node:
+ """
+ Return a node which represents an output of a graph (Model).
+
+ :param data: The tensor containing the input data
+ :return: Result node
+
+ """
+def scaled_dot_product_attention(*args, **kwargs) -> openvino._pyopenvino.Node:
+ """
+ Return a node which implements Scaled Dot Product Attention.
+
+ :param query: Query tensor of shape [N, ..., L, E] and floating-point datatype.
+ :param key: Key tensor of shape [N, ..., S, E] and floating-point datatype.
+ :param value: Value tensor of shape [N, ..., S, Ev] and floating-point datatype.
+ :param attention_mask: Optional attention mask tensor of shape [N, ..., L, S] or scalar float type zero value.
+ Refer to the operation specification for a complete description.
+ :param scale: Optional alternative scale, a floating-point type scalar.
+ :param causal: If true, then autogenerates causal attention mask instead of using attention_mask input.
+ In this case attention_mask input is ignored.
+ :param name: The optional new name for output node.
+
+ :return: The new node performing Scaled Dot Product Attention operation.
+
+ """
+NodeInput: typing._UnionGenericAlias # value = typing.Union[openvino._pyopenvino.Node, int, float, numpy.ndarray]
+NumericData: typing._UnionGenericAlias # value = typing.Union[int, float, numpy.ndarray]
+NumericType: typing._UnionGenericAlias # value = typing.Union[type, numpy.dtype]
+_get_node_factory_opset13: functools.partial # value = functools.partial(<function _get_node_factory at memory_address>, 'opset13')
+constant: openvino.utils.decorators.MultiMethod # value = <openvino.utils.decorators.MultiMethod object>
+log: logging.Logger # value = <Logger openvino.opset13.ops (INFO)>
diff --git a/src/bindings/python/src/openvino/opset14/__init__.pyi b/src/bindings/python/src/openvino/opset14/__init__.pyi
new file mode 100644
index 00000000000..ea6c06d2096
--- /dev/null
+++ b/src/bindings/python/src/openvino/opset14/__init__.pyi
@@ -0,0 +1,191 @@
+# type: ignore
+from __future__ import annotations
+from . import ops
+from openvino.opset10.ops import is_finite
+from openvino.opset10.ops import is_inf
+from openvino.opset10.ops import is_nan
+from openvino.opset10.ops import unique
+from openvino.opset11.ops import interpolate
+from openvino.opset11.ops import topk
+from openvino.opset12.ops import group_normalization
+from openvino.opset12.ops import pad
+from openvino.opset12.ops import scatter_elements_update
+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.opset13.ops import fake_convert
+from openvino.opset13.ops import fake_quantize
+from openvino.opset13.ops import multinomial
+from openvino.opset13.ops import nms_rotated
+from openvino.opset13.ops import result
+from openvino.opset13.ops import scaled_dot_product_attention
+from openvino.opset14.ops import avg_pool
+from openvino.opset14.ops import convert_promote_types
+from openvino.opset14.ops import inverse
+from openvino.opset14.ops import max_pool
+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 binary_convolution
+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 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_psroi_pooling
+from openvino.opset1.ops import depth_to_space
+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 floor
+from openvino.opset1.ops import floor_mod
+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 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 matmul
+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 normalize_l2
+from openvino.opset1.ops import not_equal
+from openvino.opset1.ops import one_hot
+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_clustered
+from openvino.opset1.ops import psroi_pooling
+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 reverse_sequence
+from openvino.opset1.ops import select
+from openvino.opset1.ops import selu
+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 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 tile
+from openvino.opset1.ops import transpose
+from openvino.opset1.ops import unsqueeze
+from openvino.opset1.ops import variadic_split
+from openvino.opset2.ops import batch_to_space
+from openvino.opset2.ops import reorg_yolo
+from openvino.opset2.ops import roi_pooling
+from openvino.opset2.ops import space_to_batch
+from openvino.opset3.ops import broadcast
+from openvino.opset3.ops import bucketize
+from openvino.opset3.ops import cum_sum
+from openvino.opset3.ops import cum_sum as cumsum
+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.opset3.ops import gru_cell
+from openvino.opset3.ops import non_zero
+from openvino.opset3.ops import rnn_cell
+from openvino.opset3.ops import scatter_update
+from openvino.opset3.ops import shape_of
+from openvino.opset3.ops import shuffle_channels
+from openvino.opset4.ops import acosh
+from openvino.opset4.ops import asinh
+from openvino.opset4.ops import atanh
+from openvino.opset4.ops import ctc_loss
+from openvino.opset4.ops import hswish
+from openvino.opset4.ops import lstm_cell
+from openvino.opset4.ops import mish
+from openvino.opset4.ops import proposal
+from openvino.opset4.ops import range
+from openvino.opset4.ops import reduce_l1
+from openvino.opset4.ops import reduce_l2
+from openvino.opset4.ops import scatter_nd_update
+from openvino.opset4.ops import softplus
+from openvino.opset4.ops import swish
+from openvino.opset5.ops import batch_norm_inference
+from openvino.opset5.ops import gru_sequence
+from openvino.opset5.ops import hsigmoid
+from openvino.opset5.ops import log_softmax
+from openvino.opset5.ops import lstm_sequence
+from openvino.opset5.ops import rnn_sequence
+from openvino.opset5.ops import round
+from openvino.opset6.ops import ctc_greedy_decoder_seq_len
+from openvino.opset6.ops import gather_elements
+from openvino.opset6.ops import mvn
+from openvino.opset7.ops import dft
+from openvino.opset7.ops import einsum
+from openvino.opset7.ops import gelu
+from openvino.opset7.ops import idft
+from openvino.opset7.ops import roll
+from openvino.opset8.ops import adaptive_avg_pool
+from openvino.opset8.ops import adaptive_max_pool
+from openvino.opset8.ops import deformable_convolution
+from openvino.opset8.ops import detection_output
+from openvino.opset8.ops import gather
+from openvino.opset8.ops import gather_nd
+from openvino.opset8.ops import i420_to_bgr
+from openvino.opset8.ops import i420_to_rgb
+from openvino.opset8.ops import matrix_nms
+from openvino.opset8.ops import nv12_to_bgr
+from openvino.opset8.ops import nv12_to_rgb
+from openvino.opset8.ops import prior_box
+from openvino.opset8.ops import random_uniform
+from openvino.opset8.ops import slice
+from openvino.opset8.ops import softmax
+from openvino.opset9.ops import eye
+from openvino.opset9.ops import generate_proposals
+from openvino.opset9.ops import grid_sample
+from openvino.opset9.ops import irdft
+from openvino.opset9.ops import multiclass_nms
+from openvino.opset9.ops import non_max_suppression
+from openvino.opset9.ops import rdft
+from openvino.opset9.ops import roi_align
+from openvino.opset9.ops import softsign
+from openvino._pyopenvino.op import assign
+from openvino._pyopenvino.op import if_op
+from openvino._pyopenvino.op import loop
+from openvino._pyopenvino.op import tensor_iterator
+import openvino.utils.decorators
+__all__ = ['abs', 'absolute', 'acos', 'acosh', 'adaptive_avg_pool', 'adaptive_max_pool', 'add', 'asin', 'asinh', 'assign', 'atan', 'atanh', 'avg_pool', 'batch_norm_inference', 'batch_to_space', 'binary_convolution', 'bitwise_and', 'bitwise_not', 'bitwise_or', 'bitwise_xor', 'broadcast', 'bucketize', 'ceil', 'ceiling', 'clamp', 'concat', 'constant', 'convert', 'convert_like', 'convert_promote_types', 'convolution', 'convolution_backprop_data', 'cos', 'cosh', 'ctc_greedy_decoder', 'ctc_greedy_decoder_seq_len', 'ctc_loss', 'cum_sum', 'cumsum', 'deformable_convolution', 'deformable_psroi_pooling', 'depth_to_space', 'detection_output', 'dft', 'divide', 'einsum', 'elu', 'embedding_bag_offsets_sum', 'embedding_bag_packed_sum', 'embedding_segments_sum', 'equal', 'erf', 'exp', 'extract_image_patches', 'eye', 'fake_convert', 'fake_quantize', 'floor', 'floor_mod', 'gather', 'gather_elements', 'gather_nd', 'gather_tree', 'gelu', 'generate_proposals', 'greater', 'greater_equal', 'grid_sample', 'grn', 'group_convolution', 'group_convolution_backprop_data', 'group_normalization', 'gru_cell', 'gru_sequence', 'hard_sigmoid', 'hsigmoid', 'hswish', 'i420_to_bgr', 'i420_to_rgb', 'idft', 'if_op', 'interpolate', 'inverse', 'irdft', 'is_finite', 'is_inf', 'is_nan', 'less', 'less_equal', 'log', 'log_softmax', 'logical_and', 'logical_not', 'logical_or', 'logical_xor', 'loop', 'lrn', 'lstm_cell', 'lstm_sequence', 'matmul', 'matrix_nms', 'max_pool', 'maximum', 'minimum', 'mish', 'mod', 'multiclass_nms', 'multinomial', 'multiply', 'mvn', 'negative', 'nms_rotated', 'non_max_suppression', 'non_zero', 'normalize_l2', 'not_equal', 'nv12_to_bgr', 'nv12_to_rgb', 'one_hot', 'ops', 'pad', 'parameter', 'power', 'prelu', 'prior_box', 'prior_box_clustered', 'proposal', 'psroi_pooling', 'random_uniform', 'range', 'rdft', 'read_value', 'reduce_l1', 'reduce_l2', 'reduce_logical_and', 'reduce_logical_or', 'reduce_max', 'reduce_mean', 'reduce_min', 'reduce_prod', 'reduce_sum', 'region_yolo', 'relu', 'reorg_yolo', 'reshape', 'result', 'reverse_sequence', 'rnn_cell', 'rnn_sequence', 'roi_align', 'roi_pooling', 'roll', 'round', 'scaled_dot_product_attention', 'scatter_elements_update', 'scatter_nd_update', 'scatter_update', 'select', 'selu', 'shape_of', 'shuffle_channels', 'sigmoid', 'sign', 'sin', 'sinh', 'slice', 'softmax', 'softplus', 'softsign', 'space_to_batch', 'space_to_depth', 'split', 'sqrt', 'squared_difference', 'squeeze', 'strided_slice', 'subtract', 'swish', 'tan', 'tanh', 'tensor_iterator', 'tile', 'topk', 'transpose', 'unique', 'unsqueeze', 'variadic_split']
+constant: openvino.utils.decorators.MultiMethod # value = <openvino.utils.decorators.MultiMethod object>
+read_value: openvino.utils.decorators.MultiMethod # value = <openvino.utils.decorators.MultiMethod object>
diff --git a/src/bindings/python/src/openvino/opset14/ops.pyi b/src/bindings/python/src/openvino/opset14/ops.pyi
new file mode 100644
index 00000000000..5ab7368a069
--- /dev/null
+++ b/src/bindings/python/src/openvino/opset14/ops.pyi
@@ -0,0 +1,88 @@
+# type: ignore
+"""
+Factory functions for ops added to openvino opset14.
+"""
+from functools import partial
+from __future__ import annotations
+from openvino._pyopenvino import Node
+from openvino._pyopenvino import Type
+from openvino.utils.decorators import nameable_op
+from openvino.utils.node_factory import _get_node_factory
+from openvino.utils.types import as_node
+from openvino.utils.types import as_nodes
+import functools
+import openvino._pyopenvino
+import typing
+__all__ = ['Node', 'NodeInput', 'TensorShape', 'Type', 'as_node', 'as_nodes', 'avg_pool', 'convert_promote_types', 'inverse', 'max_pool', 'nameable_op', 'partial']
+def avg_pool(*args, **kwargs) -> openvino._pyopenvino.Node:
+ """
+ Return average pooling node.
+
+ :param data_batch: The input node providing data.
+ :param strides: The window movement strides.
+ :param pads_begin: The number of pixels to add at the beginning along each axis.
+ :param pads_end: The number of pixels to add at the end along each axis.
+ :param kernel_shape: The pooling window shape.
+ :param exclude_pad: Whether or not to include zero padding in average computations.
+ :param rounding_type: Determines used rounding schema when computing output shape. Acceptable
+ values are: ['floor', 'ceil', 'ceil_torch']. Defaults to 'floor'.
+ :param auto_pad: Determines how the padding is calculated. Acceptable values:
+ [None, 'same_upper', 'same_lower', 'valid']. Defaults to None.
+ :param name: Optional name for the new output node.
+
+ :return: New node with AvgPool operation applied on its data.
+
+ """
+def convert_promote_types(*args, **kwargs) -> openvino._pyopenvino.Node:
+ """
+ Return a node performing conversion to common type based on promotion rules.
+
+ :param left_node: input node with type to be promoted to common one.
+ :param right_node: input node with type to be promoted to common one.
+ :param promote_unsafe: Bool attribute whether to allow promotions that might result in bit-widening, precision loss and undefined behaviors.
+ :param pytorch_scalar_promotion: Bool attribute whether to promote scalar input to type provided by non-scalar input when number format is matching.
+ :param u64_integer_promotion_target: Element type attribute to select promotion result when inputs are u64 and signed integer.
+ :param name: Optional name for the new output node.
+
+ :return: The new node performing ConvertPromoteTypes operation.
+
+ """
+def inverse(*args, **kwargs) -> openvino._pyopenvino.Node:
+ """
+ Return a node with inverse matrices of the input.
+
+ :param data: Tensor with matrices to invert. Last two dimensions must be of the same size.
+ :param adjoint: Whether to return adjoint instead of inverse matrices. Defaults to false.
+ :param name: Optional name for the new output node.
+
+ :return: The new node performing Inverse operation.
+
+ """
+def max_pool(*args, **kwargs) -> openvino._pyopenvino.Node:
+ """
+ Perform max pooling operation and return both values and indices of the selected elements.
+
+ :param data: The node providing input data.
+ :param strides: The distance (in pixels) to slide the filter on the feature map
+ over the axes.
+ :param dilations: The dilation of filter elements(distance between elements).
+ :param pads_begin: The number of pixels to add at the beginning along each axis.
+ :param pads_end: The number of pixels to add at the end along each axis.
+ :param kernel_shape: The pooling operation kernel shape.
+ :param rounding_type: Determines used rounding schema when computing output shape.
+ Acceptable values are: ['floor', 'ceil', 'ceil_torch']. Defaults to 'floor'.
+ :param auto_pad: Determines how the padding is calculated. Acceptable values:
+ [None, 'same_upper', 'same_lower', 'valid']. Defaults to None.
+ :param index_element_type: The data type used for the indices output of this operator.
+ Defaults to i64.
+ :param axis: The first dimension in the data shape used to determine the maximum
+ returned index value. The value is the product of all dimensions
+ starting at the provided axis. Defaults to 0.
+ :param name: The optional name for the created output node.
+
+ :return: The new node performing max pooling operation.
+
+ """
+NodeInput: typing._UnionGenericAlias # value = typing.Union[openvino._pyopenvino.Node, int, float, numpy.ndarray]
+TensorShape: typing._GenericAlias # value = typing.List[int]
+_get_node_factory_opset14: functools.partial # value = functools.partial(<function _get_node_factory at memory_address>, 'opset14')
diff --git a/src/bindings/python/src/openvino/opset15/__init__.pyi b/src/bindings/python/src/openvino/opset15/__init__.pyi
new file mode 100644
index 00000000000..327d5362d8b
--- /dev/null
+++ b/src/bindings/python/src/openvino/opset15/__init__.pyi
@@ -0,0 +1,202 @@
+# type: ignore
+from __future__ import annotations
+from . import ops
+from openvino.opset10.ops import is_finite
+from openvino.opset10.ops import is_inf
+from openvino.opset10.ops import is_nan
+from openvino.opset10.ops import unique
+from openvino.opset11.ops import interpolate
+from openvino.opset11.ops import topk
+from openvino.opset12.ops import group_normalization
+from openvino.opset12.ops import pad
+from openvino.opset12.ops import scatter_elements_update
+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.opset13.ops import fake_convert
+from openvino.opset13.ops import fake_quantize
+from openvino.opset13.ops import multinomial
+from openvino.opset13.ops import nms_rotated
+from openvino.opset13.ops import result
+from openvino.opset13.ops import scaled_dot_product_attention
+from openvino.opset14.ops import avg_pool
+from openvino.opset14.ops import convert_promote_types
+from openvino.opset14.ops import inverse
+from openvino.opset14.ops import max_pool
+from openvino.opset15.ops import bitwise_left_shift
+from openvino.opset15.ops import bitwise_right_shift
+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 roi_align_rotated
+from openvino.opset15.ops import scatter_nd_update
+from openvino.opset15.ops import search_sorted
+from openvino.opset15.ops import slice_scatter
+from openvino.opset15.ops import squeeze
+from openvino.opset15.ops import stft
+from openvino.opset15.ops import string_tensor_pack
+from openvino.opset15.ops import string_tensor_unpack
+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 binary_convolution
+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 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_psroi_pooling
+from openvino.opset1.ops import depth_to_space
+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 floor
+from openvino.opset1.ops import floor_mod
+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 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 matmul
+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 normalize_l2
+from openvino.opset1.ops import not_equal
+from openvino.opset1.ops import one_hot
+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_clustered
+from openvino.opset1.ops import psroi_pooling
+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 reverse_sequence
+from openvino.opset1.ops import select
+from openvino.opset1.ops import selu
+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 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 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 tile
+from openvino.opset1.ops import transpose
+from openvino.opset1.ops import unsqueeze
+from openvino.opset1.ops import variadic_split
+from openvino.opset2.ops import batch_to_space
+from openvino.opset2.ops import reorg_yolo
+from openvino.opset2.ops import roi_pooling
+from openvino.opset2.ops import space_to_batch
+from openvino.opset3.ops import broadcast
+from openvino.opset3.ops import bucketize
+from openvino.opset3.ops import cum_sum
+from openvino.opset3.ops import cum_sum as cumsum
+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.opset3.ops import gru_cell
+from openvino.opset3.ops import non_zero
+from openvino.opset3.ops import rnn_cell
+from openvino.opset3.ops import scatter_update
+from openvino.opset3.ops import shape_of
+from openvino.opset3.ops import shuffle_channels
+from openvino.opset4.ops import acosh
+from openvino.opset4.ops import asinh
+from openvino.opset4.ops import atanh
+from openvino.opset4.ops import ctc_loss
+from openvino.opset4.ops import hswish
+from openvino.opset4.ops import lstm_cell
+from openvino.opset4.ops import mish
+from openvino.opset4.ops import proposal
+from openvino.opset4.ops import range
+from openvino.opset4.ops import reduce_l1
+from openvino.opset4.ops import reduce_l2
+from openvino.opset4.ops import softplus
+from openvino.opset4.ops import swish
+from openvino.opset5.ops import batch_norm_inference
+from openvino.opset5.ops import gru_sequence
+from openvino.opset5.ops import hsigmoid
+from openvino.opset5.ops import log_softmax
+from openvino.opset5.ops import lstm_sequence
+from openvino.opset5.ops import rnn_sequence
+from openvino.opset5.ops import round
+from openvino.opset6.ops import ctc_greedy_decoder_seq_len
+from openvino.opset6.ops import gather_elements
+from openvino.opset6.ops import mvn
+from openvino.opset7.ops import dft
+from openvino.opset7.ops import einsum
+from openvino.opset7.ops import gelu
+from openvino.opset7.ops import idft
+from openvino.opset7.ops import roll
+from openvino.opset8.ops import adaptive_avg_pool
+from openvino.opset8.ops import adaptive_max_pool
+from openvino.opset8.ops import deformable_convolution
+from openvino.opset8.ops import detection_output
+from openvino.opset8.ops import gather
+from openvino.opset8.ops import gather_nd
+from openvino.opset8.ops import i420_to_bgr
+from openvino.opset8.ops import i420_to_rgb
+from openvino.opset8.ops import matrix_nms
+from openvino.opset8.ops import nv12_to_bgr
+from openvino.opset8.ops import nv12_to_rgb
+from openvino.opset8.ops import prior_box
+from openvino.opset8.ops import random_uniform
+from openvino.opset8.ops import slice
+from openvino.opset8.ops import softmax
+from openvino.opset9.ops import eye
+from openvino.opset9.ops import generate_proposals
+from openvino.opset9.ops import grid_sample
+from openvino.opset9.ops import irdft
+from openvino.opset9.ops import multiclass_nms
+from openvino.opset9.ops import non_max_suppression
+from openvino.opset9.ops import rdft
+from openvino.opset9.ops import roi_align
+from openvino.opset9.ops import softsign
+from openvino._pyopenvino.op import assign
+from openvino._pyopenvino.op import if_op
+from openvino._pyopenvino.op import loop
+from openvino._pyopenvino.op import tensor_iterator
+import openvino.utils.decorators
+__all__ = ['abs', 'absolute', 'acos', 'acosh', 'adaptive_avg_pool', 'adaptive_max_pool', 'add', 'asin', 'asinh', 'assign', 'atan', 'atanh', 'avg_pool', 'batch_norm_inference', 'batch_to_space', 'binary_convolution', 'bitwise_and', 'bitwise_left_shift', 'bitwise_not', 'bitwise_or', 'bitwise_right_shift', 'bitwise_xor', 'broadcast', 'bucketize', 'ceil', 'ceiling', 'clamp', 'col2im', 'concat', 'constant', 'convert', 'convert_like', 'convert_promote_types', 'convolution', 'convolution_backprop_data', 'cos', 'cosh', 'ctc_greedy_decoder', 'ctc_greedy_decoder_seq_len', 'ctc_loss', 'cum_sum', 'cumsum', 'deformable_convolution', 'deformable_psroi_pooling', 'depth_to_space', 'detection_output', 'dft', 'divide', 'einsum', 'elu', 'embedding_bag_offsets', 'embedding_bag_offsets_sum', 'embedding_bag_packed', 'embedding_bag_packed_sum', 'embedding_segments_sum', 'equal', 'erf', 'exp', 'extract_image_patches', 'eye', 'fake_convert', 'fake_quantize', 'floor', 'floor_mod', 'gather', 'gather_elements', 'gather_nd', 'gather_tree', 'gelu', 'generate_proposals', 'greater', 'greater_equal', 'grid_sample', 'grn', 'group_convolution', 'group_convolution_backprop_data', 'group_normalization', 'gru_cell', 'gru_sequence', 'hard_sigmoid', 'hsigmoid', 'hswish', 'i420_to_bgr', 'i420_to_rgb', 'idft', 'if_op', 'interpolate', 'inverse', 'irdft', 'is_finite', 'is_inf', 'is_nan', 'less', 'less_equal', 'log', 'log_softmax', 'logical_and', 'logical_not', 'logical_or', 'logical_xor', 'loop', 'lrn', 'lstm_cell', 'lstm_sequence', 'matmul', 'matrix_nms', 'max_pool', 'maximum', 'minimum', 'mish', 'mod', 'multiclass_nms', 'multinomial', 'multiply', 'mvn', 'negative', 'nms_rotated', 'non_max_suppression', 'non_zero', 'normalize_l2', 'not_equal', 'nv12_to_bgr', 'nv12_to_rgb', 'one_hot', 'ops', 'pad', 'parameter', 'power', 'prelu', 'prior_box', 'prior_box_clustered', 'proposal', 'psroi_pooling', 'random_uniform', 'range', 'rdft', 'read_value', 'reduce_l1', 'reduce_l2', 'reduce_logical_and', 'reduce_logical_or', 'reduce_max', 'reduce_mean', 'reduce_min', 'reduce_prod', 'reduce_sum', 'region_yolo', 'relu', 'reorg_yolo', 'reshape', 'result', 'reverse_sequence', 'rnn_cell', 'rnn_sequence', 'roi_align', 'roi_align_rotated', 'roi_pooling', 'roll', 'round', 'scaled_dot_product_attention', 'scatter_elements_update', 'scatter_nd_update', 'scatter_update', 'search_sorted', 'select', 'selu', 'shape_of', 'shuffle_channels', 'sigmoid', 'sign', 'sin', 'sinh', 'slice', 'slice_scatter', 'softmax', 'softplus', 'softsign', 'space_to_batch', 'space_to_depth', 'split', 'sqrt', 'squared_difference', 'squeeze', 'stft', 'strided_slice', 'string_tensor_pack', 'string_tensor_unpack', 'subtract', 'swish', 'tan', 'tanh', 'tensor_iterator', 'tile', 'topk', 'transpose', 'unique', 'unsqueeze', 'variadic_split']
+constant: openvino.utils.decorators.MultiMethod # value = <openvino.utils.decorators.MultiMethod object>
+read_value: openvino.utils.decorators.MultiMethod # value = <openvino.utils.decorators.MultiMethod object>
diff --git a/src/bindings/python/src/openvino/opset15/ops.pyi b/src/bindings/python/src/openvino/opset15/ops.pyi
new file mode 100644
index 00000000000..ad8d30bc924
--- /dev/null
+++ b/src/bindings/python/src/openvino/opset15/ops.pyi
@@ -0,0 +1,207 @@
+# type: ignore
+"""
+Factory functions for ops added to openvino opset15.
+"""
+from functools import partial
+from __future__ import annotations
+from openvino.opset1.ops import convert_like
+from openvino._pyopenvino import Node
+from openvino._pyopenvino import Type
+from openvino.utils.decorators import binary_op
+from openvino.utils.decorators import nameable_op
+from openvino.utils.node_factory import _get_node_factory
+from openvino.utils.types import as_nodes
+import functools
+import numpy as np
+import openvino._pyopenvino
+import openvino.utils.decorators
+import typing
+__all__ = ['Node', 'NodeInput', 'Type', 'as_nodes', 'binary_op', 'bitwise_left_shift', 'bitwise_right_shift', 'col2im', 'constant', 'convert_like', 'embedding_bag_offsets', 'embedding_bag_packed', 'nameable_op', 'np', 'partial', 'roi_align_rotated', 'scatter_nd_update', 'search_sorted', 'slice_scatter', 'squeeze', 'stft', 'string_tensor_pack', 'string_tensor_unpack']
+def bitwise_left_shift(left, right, *args, **kwargs) -> openvino._pyopenvino.Node:
+ """
+ Return node which performs BitwiseLeftShift operation on input nodes element-wise.
+
+ :param arg0: Node with data to be shifted.
+ :param arg1: Node with number of shifts.
+ :param auto_broadcast: The type of broadcasting specifies rules used for auto-broadcasting of input tensors.
+ Defaults to “NUMPY”.
+
+ :return: The new node performing BitwiseLeftShift operation.
+
+ """
+def bitwise_right_shift(left, right, *args, **kwargs) -> openvino._pyopenvino.Node:
+ """
+ Return node which performs BitwiseRightShift operation on input nodes element-wise.
+
+ :param arg0: Tensor with data to be shifted.
+ :param arg1: Tensor with number of shifts.
+ :param auto_broadcast: The type of broadcasting specifies rules used for auto-broadcasting of input tensors.
+ Defaults to “NUMPY”.
+
+ :return: The new node performing BitwiseRightShift operation.
+
+ """
+def col2im(*args, **kwargs) -> openvino._pyopenvino.Node:
+ """
+ Perform data movement operation which combines sliding blocks into an image tensor.
+
+ :param data: The node providing input data.
+ :param output_size: Shape of the spatial dimensions of the output image.
+ :param kernel_size: Size of the sliding blocks.
+ :param strides: Stride on the sliding blocks in the input spatial dimensions. Defaults to [1, 1].
+ :param dilations: The dilation of filter elements (distance between elements). Defaults to [1, 1].
+ :param pads_begin: The number of pixels added at the beginning along each axis. Defaults to [0, 0].
+ :param pads_end: The number of pixels added at the end along each axis. Defaults to [0, 0].
+ :param name: The optional name for the created output node.
+
+ :return: The new node performing Col2Im operation.
+
+ """
+def embedding_bag_offsets(*args, **kwargs) -> openvino._pyopenvino.Node:
+ """
+ Return a node which performs sums or means of bags of embeddings without the intermediate embeddings.
+
+ :param emb_table: Tensor containing the embedding lookup table.
+ :param indices: 1D Tensor with indices.
+ :param offsets: 1D Tensor containing the starting index positions of each bag in indices.
+ :param per_sample_weights: Tensor with weights for each sample.
+ :param default_index: Scalar containing default index in embedding table to fill empty bags.
+ If unset or set to -1, empty bags will be filled with 0.
+ Reverse indexing using negative indices is not supported.
+ :param reduction: String to select algorithm used to perform reduction of elements in bag.
+ :param name: Optional name for output node.
+ :return: The new node performing EmbeddingBagOffsets operation.
+
+ """
+def embedding_bag_packed(*args, **kwargs) -> openvino._pyopenvino.Node:
+ """
+ Return a node which performs sums or means of "bags" of embeddings, without the intermediate embeddings.
+
+ :param emb_table: Tensor containing the embedding lookup table.
+ :param indices: 2D Tensor of shape [batch, indices_per_bag] with indices.
+ :param per_sample_weights: Tensor of weights to be multiplied with embedding table with same shape as indices.
+ :param reduction: Operator to perform reduction of elements in bag.
+ :param name: Optional name for output node.
+ :return: The new node performing EmbeddingBagPacked operation.
+
+ """
+def roi_align_rotated(*args, **kwargs) -> openvino._pyopenvino.Node:
+ """
+ Return a node which performs ROIAlignRotated operation.
+
+ :param data: Input data.
+ :param rois: RoIs (Regions of Interest) to pool over.
+ :param batch_indices: Tensor with each element denoting the index of
+ the corresponding image in the batch.
+ :param pooled_h: Height of the ROI output feature map.
+ :param pooled_w: Width of the ROI output feature map.
+ :param sampling_ratio: Number of bins over height and width to use to calculate
+ each output feature map element.
+ :param spatial_scale: Multiplicative spatial scale factor to translate ROI coordinates.
+ :param clockwise_mode: If true, rotation angle is interpreted as clockwise,
+ otherwise as counterclockwise
+ :param name: The optional name for the output node
+
+ :return: The new node which performs ROIAlignRotated
+
+ """
+def scatter_nd_update(*args, **kwargs) -> openvino._pyopenvino.Node:
+ """
+ Return a node which performs ScatterNDUpdate.
+
+ :param data: Node input representing the tensor to be updated.
+ :param indices: Node input representing the indices at which updates will be applied.
+ :param updates: Node input representing the updates to be applied.
+ :param reduction: The type of operation to perform on the inputs. One of "none", "sum",
+ "sub", "prod", "min", "max".
+ :param name: Optional name for the output node.
+ :return: New node performing the ScatterNDUpdate.
+
+ """
+def search_sorted(*args, **kwargs) -> openvino._pyopenvino.Node:
+ """
+ Return a node which generates SearchSorted operation.
+
+ :param sorted_sequence: The node providing sorted sequence to search in.
+ :param values: The node providing searched values.
+ :param right_mode: If set to False, return the first suitable index that is found for given value.
+ If set to True, return the last such index. Defaults to False.
+ :param name: The optional name for the created output node.
+ :return: The new node performing SearchSorted operation.
+
+ """
+def slice_scatter(*args, **kwargs) -> openvino._pyopenvino.Node:
+ """
+ Return a node which generates SliceScatter operation.
+
+ :param data: The node providing input data.
+ :param updates: The node providing updates data.
+ :param start: The node providing start indices (inclusively).
+ :param stop: The node providing stop indices (exclusively).
+ :param step: The node providing step values.
+ :param axes: The optional node providing axes to slice, default [0, 1, ..., len(start)-1].
+ :param name: The optional name for the created output node.
+ :return: The new node performing SliceScatter operation.
+
+ """
+def squeeze(*args, **kwargs) -> openvino._pyopenvino.Node:
+ """
+ Perform squeeze operation on input tensor.
+
+ :param data: The node with data tensor.
+ :param axes: Optional list of integers, indicating the dimensions to squeeze.
+ Negative indices are supported. One of: input node or array.
+ :param allow_axis_skip: If true, shape inference results in a dynamic rank, when
+ selected axis has value 1 in its dynamic range. Used only if axes input
+ is given. Defaults to false.
+ :param name: Optional new name for output node.
+ :return: The new node performing a squeeze operation on input tensor.
+
+ Remove single-dimensional entries from the shape of a tensor.
+ Takes an optional parameter `axes` with a list of axes to squeeze.
+ If `axes` is not provided, all the single dimensions will be removed from the shape.
+
+ For example:
+
+ Inputs: tensor with shape [1, 2, 1, 3, 1, 1], axes=[2, 4]
+
+ Result: tensor with shape [1, 2, 3, 1]
+
+ """
+def stft(*args, **kwargs) -> openvino._pyopenvino.Node:
+ """
+ Return a node which generates STFT operation.
+
+ :param data: The node providing input data.
+ :param window: The node providing window data.
+ :param frame_size: The node with scalar value representing the size of Fourier Transform.
+ :param frame_step: The distance (number of samples) between successive window frames.
+ :param transpose_frames: Flag to set output shape layout. If true the `frames` dimension is at out_shape[2],
+ otherwise it is at out_shape[1].
+ :param name: The optional name for the created output node.
+ :return: The new node performing STFT operation.
+
+ """
+def string_tensor_pack(*args, **kwargs) -> openvino._pyopenvino.Node:
+ """
+ Perform an operation which packs a concatenated batch of strings into a batched string tensor.
+
+ :param begins: ND tensor of non-negative integer numbers containing indices of each string's beginnings.
+ :param ends: ND tensor of non-negative integer numbers containing indices of each string's endings.
+ :param symbols: 1D tensor of concatenated strings data encoded in utf-8 bytes.
+
+ :return: The new node performing StringTensorPack operation.
+
+ """
+def string_tensor_unpack(*args, **kwargs) -> openvino._pyopenvino.Node:
+ """
+ Perform an operation which unpacks a batch of strings into three tensors.
+
+ :param data: The node providing input data.
+
+ :return: The new node performing StringTensorUnpack operation.
+
+ """
+NodeInput: typing._UnionGenericAlias # value = typing.Union[openvino._pyopenvino.Node, int, float, numpy.ndarray]
+_get_node_factory_opset15: functools.partial # value = functools.partial(<function _get_node_factory at memory_address>, 'opset15')
+constant: openvino.utils.decorators.MultiMethod # value = <openvino.utils.decorators.MultiMethod object>
diff --git a/src/bindings/python/src/openvino/opset16/__init__.pyi b/src/bindings/python/src/openvino/opset16/__init__.pyi
new file mode 100644
index 00000000000..116a6525804
--- /dev/null
+++ b/src/bindings/python/src/openvino/opset16/__init__.pyi
@@ -0,0 +1,7 @@
+# type: ignore
+from __future__ import annotations
+from . import ops
+from openvino.opset16.ops import identity
+from openvino.opset16.ops import istft
+from openvino.opset16.ops import segment_max
+__all__ = ['identity', 'istft', 'ops', 'segment_max']
diff --git a/src/bindings/python/src/openvino/opset16/ops.pyi b/src/bindings/python/src/openvino/opset16/ops.pyi
new file mode 100644
index 00000000000..12fbfbf270b
--- /dev/null
+++ b/src/bindings/python/src/openvino/opset16/ops.pyi
@@ -0,0 +1,53 @@
+# type: ignore
+"""
+Factory functions for ops added to openvino opset16.
+"""
+from functools import partial
+from __future__ import annotations
+from openvino._pyopenvino import Node
+from openvino.utils.decorators import nameable_op
+from openvino.utils.node_factory import _get_node_factory
+from openvino.utils.types import as_nodes
+import functools
+import openvino._pyopenvino
+import typing
+__all__ = ['Node', 'NodeInput', 'as_nodes', 'identity', 'istft', 'nameable_op', 'partial', 'segment_max']
+def identity(*args, **kwargs) -> openvino._pyopenvino.Node:
+ """
+ Identity operation is used as a placeholder. It creates a copy of the input to forward to the output.
+
+ :param data: Tensor with data.
+
+ :return: The new node performing Identity operation.
+
+ """
+def istft(*args, **kwargs) -> openvino._pyopenvino.Node:
+ """
+ Return a node which generates ISTFT operation.
+
+ :param data: The node providing input data.
+ :param window: The node providing window data.
+ :param frame_size: The node with scalar value representing the size of Fourier Transform.
+ :param frame_step: The distance (number of samples) between successive window frames.
+ :param center: Flag signaling if the signal input has been padded before STFT.
+ :param normalized: Flag signaling if the STFT result has been normalized.
+ :param signal_length: The optional node with length of the original signal.
+ :param name: The optional name for the created output node.
+ :return: The new node performing ISTFT operation.
+
+ """
+def segment_max(*args, **kwargs) -> openvino._pyopenvino.Node:
+ """
+ The SegmentMax operation finds the maximum value in each specified segment of the input tensor.
+
+ :param data: ND tensor of type T, the numerical data on which SegmentMax operation will be performed.
+ :param segment_ids: 1D Tensor of sorted non-negative numbers, representing the segments.
+ :param num_segments: An optional scalar value representing the segments count. If not provided, it is inferred from segment_ids.
+ :param fill_mode: Responsible for the value assigned to segments which are empty. Can be "ZERO" or "LOWEST".
+ :param name: Optional name for the node.
+
+ :return: The new node performing SegmentMax operation.
+
+ """
+NodeInput: typing._UnionGenericAlias # value = typing.Union[openvino._pyopenvino.Node, int, float, numpy.ndarray]
+_get_node_factory_opset16: functools.partial # value = functools.partial(<function _get_node_factory at memory_address>, 'opset16')
diff --git a/src/bindings/python/src/openvino/opset2/__init__.pyi b/src/bindings/python/src/openvino/opset2/__init__.pyi
new file mode 100644
index 00000000000..4a3692bb87e
--- /dev/null
+++ b/src/bindings/python/src/openvino/opset2/__init__.pyi
@@ -0,0 +1,117 @@
+# type: ignore
+from __future__ import annotations
+from . import ops
+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 maximum
+from openvino.opset1.ops import max_pool
+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 proposal
+from openvino.opset1.ops import psroi_pooling
+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 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
+from openvino.opset2.ops import batch_to_space
+from openvino.opset2.ops import gelu
+from openvino.opset2.ops import mvn
+from openvino.opset2.ops import reorg_yolo
+from openvino.opset2.ops import roi_pooling
+from openvino.opset2.ops import space_to_batch
+from openvino._pyopenvino.op import tensor_iterator
+__all__ = ['abs', 'absolute', 'acos', 'add', 'asin', 'atan', 'avg_pool', 'batch_norm_inference', 'batch_to_space', 'binary_convolution', 'broadcast', 'ceil', 'ceiling', 'clamp', 'concat', 'constant', 'convert', 'convert_like', 'convolution', 'convolution_backprop_data', 'cos', 'cosh', 'ctc_greedy_decoder', 'deformable_convolution', 'deformable_psroi_pooling', 'depth_to_space', 'detection_output', 'divide', 'elu', 'equal', 'erf', 'exp', 'fake_quantize', 'floor', 'floor_mod', 'gather', 'gather_tree', 'gelu', 'greater', 'greater_equal', 'grn', 'group_convolution', 'group_convolution_backprop_data', 'hard_sigmoid', 'interpolate', 'less', 'less_equal', 'log', 'logical_and', 'logical_not', 'logical_or', 'logical_xor', 'lrn', 'lstm_cell', 'matmul', 'max_pool', 'maximum', 'minimum', 'mod', 'multiply', 'mvn', 'negative', 'non_max_suppression', 'normalize_l2', 'not_equal', 'one_hot', 'ops', 'pad', 'parameter', 'power', 'prelu', 'prior_box', 'prior_box_clustered', 'proposal', 'psroi_pooling', 'range', 'reduce_logical_and', 'reduce_logical_or', 'reduce_max', 'reduce_mean', 'reduce_min', 'reduce_prod', 'reduce_sum', 'region_yolo', 'relu', 'reorg_yolo', 'reshape', 'result', 'reverse_sequence', 'roi_pooling', 'select', 'selu', 'shape_of', 'sigmoid', 'sign', 'sin', 'sinh', 'softmax', 'space_to_batch', 'space_to_depth', 'split', 'sqrt', 'squared_difference', 'squeeze', 'strided_slice', 'subtract', 'tan', 'tanh', 'tensor_iterator', 'tile', 'topk', 'transpose', 'unsqueeze', 'variadic_split']
diff --git a/src/bindings/python/src/openvino/opset2/ops.pyi b/src/bindings/python/src/openvino/opset2/ops.pyi
new file mode 100644
index 00000000000..85c07315da5
--- /dev/null
+++ b/src/bindings/python/src/openvino/opset2/ops.pyi
@@ -0,0 +1,123 @@
+# type: ignore
+"""
+Factory functions for all openvino ops.
+"""
+from functools import partial
+from __future__ import annotations
+from openvino._pyopenvino import Node
+from openvino._pyopenvino import Shape
+from openvino._pyopenvino.op import Constant
+from openvino._pyopenvino.op import Parameter
+from openvino.utils.decorators import binary_op
+from openvino.utils.decorators import nameable_op
+from openvino.utils.decorators import unary_op
+from openvino.utils.input_validation import assert_list_of_ints
+from openvino.utils.input_validation import check_valid_attributes
+from openvino.utils.input_validation import is_non_negative_value
+from openvino.utils.input_validation import is_positive_value
+from openvino.utils.node_factory import _get_node_factory
+from openvino.utils.node_factory import NodeFactory
+from openvino.utils.types import as_node
+from openvino.utils.types import as_nodes
+from openvino.utils.types import get_dtype
+from openvino.utils.types import get_element_type
+from openvino.utils.types import get_element_type_str
+from openvino.utils.types import make_constant_node
+import functools
+import numpy as np
+import openvino._pyopenvino
+import typing
+import warnings as warnings
+__all__ = ['Constant', 'Node', 'NodeFactory', 'NodeInput', 'NumericData', 'NumericType', 'Parameter', 'ScalarData', 'Shape', 'TensorShape', 'as_node', 'as_nodes', 'assert_list_of_ints', 'batch_to_space', 'binary_op', 'check_valid_attributes', 'gelu', 'get_dtype', 'get_element_type', 'get_element_type_str', 'is_non_negative_value', 'is_positive_value', 'make_constant_node', 'mvn', 'nameable_op', 'np', 'partial', 'reorg_yolo', 'roi_pooling', 'space_to_batch', 'unary_op', 'warnings']
+def batch_to_space(*args, **kwargs) -> openvino._pyopenvino.Node:
+ """
+ Perform BatchToSpace operation on the input tensor.
+
+ BatchToSpace permutes data from the batch dimension of the data tensor into spatial dimensions.
+
+ :param data: Node producing the data tensor.
+ :param block_shape: The sizes of the block of values to be moved.
+ :param crops_begin: Specifies the amount to crop from the beginning along each axis of `data`.
+ :param crops_end: Specifies the amount to crop from the end along each axis of `data`.
+ :param name: Optional output node name.
+ :return: The new node performing a BatchToSpace operation.
+
+ """
+def gelu(input_value, *args, **kwargs) -> openvino._pyopenvino.Node:
+ """
+ Perform Gaussian Error Linear Unit operation element-wise on data from input node.
+
+ Computes GELU function:
+
+ \\f[ f(x) = 0.5\\cdot x\\cdot(1 + erf( \\dfrac{x}{\\sqrt{2}}) \\f]
+
+ For more information refer to [Gaussian Error Linear Unit (GELU)](https://arxiv.org/pdf/1606.08415.pdf>)
+
+ :param node: Input tensor. One of: input node, array or scalar.
+ :param name: Optional output node name.
+ :return: The new node performing a GELU operation on its input data element-wise.
+
+ """
+def mvn(*args, **kwargs) -> openvino._pyopenvino.Node:
+ """
+ Perform Mean Variance Normalization operation on data from input node.
+
+ Computes MVN on the input tensor `data` (called `X`) using formula:
+
+ \\f[ Y = \\dfrac{X-EX}{\\sqrt{E(X-EX)^2}} \\f]
+
+ :param data: The node with data tensor.
+ :param across_channels: Denotes if mean values are shared across channels.
+ :param normalize_variance: Denotes whether to perform variance normalization.
+ :param eps: The number added to the variance to avoid division by zero
+ when normalizing the value. Scalar value.
+ :param name: Optional output node name.
+ :return: The new node performing a MVN operation on input tensor.
+
+ """
+def reorg_yolo(*args, **kwargs) -> openvino._pyopenvino.Node:
+ """
+ Return a node which produces the ReorgYolo operation.
+
+ :param input: Input data.
+ :param stride: Stride to reorganize input by.
+ :param name: Optional name for output node.
+ :return: ReorgYolo node.
+
+ """
+def roi_pooling(*args, **kwargs) -> openvino._pyopenvino.Node:
+ """
+ Return a node which produces an ROIPooling operation.
+
+ :param input: Input feature map `{N, C, ...}`.
+ :param coords: Coordinates of bounding boxes.
+ :param output_roi: Height/Width of ROI output features (shape).
+ :param spatial_scale: Ratio of input feature map over input image size (float).
+ :param method: Method of pooling - string: "max" or "bilinear". Default: "max"
+ :param output_size: (DEPRECATED!) Height/Width of ROI output features (shape).
+ Will override `output_roi` if used and change behavior of the operator.
+ :return: ROIPooling node.
+
+ """
+def space_to_batch(*args, **kwargs) -> openvino._pyopenvino.Node:
+ """
+ Perform SpaceToBatch operation on the input tensor.
+
+ SpaceToBatch permutes data tensor blocks of spatial data into batch dimension.
+ The operator returns a copy of the input tensor where values from spatial blocks dimensions
+ are moved in the batch dimension
+
+ :param data: Node producing the data tensor.
+ :param block_shape: The sizes of the block of values to be moved.
+ :param pads_begin: Specifies the padding for the beginning along each axis of `data`.
+ :param pads_end: Specifies the padding for the ending along each axis of `data`.
+ :param name: Optional output node name.
+ :return: The new node performing a SpaceToBatch operation.
+
+ """
+NodeInput: typing._UnionGenericAlias # value = typing.Union[openvino._pyopenvino.Node, int, float, numpy.ndarray]
+NumericData: typing._UnionGenericAlias # value = typing.Union[int, float, numpy.ndarray]
+NumericType: typing._UnionGenericAlias # value = typing.Union[type, numpy.dtype]
+ScalarData: typing._UnionGenericAlias # value = typing.Union[int, float]
+TensorShape: typing._GenericAlias # value = typing.List[int]
+_get_node_factory_opset2: functools.partial # value = functools.partial(<function _get_node_factory at memory_address>, 'opset2')
diff --git a/src/bindings/python/src/openvino/opset3/__init__.pyi b/src/bindings/python/src/openvino/opset3/__init__.pyi
new file mode 100644
index 00000000000..ab4af4ef2af
--- /dev/null
+++ b/src/bindings/python/src/openvino/opset3/__init__.pyi
@@ -0,0 +1,133 @@
+# type: ignore
+from __future__ import annotations
+from . import ops
+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 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 maximum
+from openvino.opset1.ops import max_pool
+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 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 proposal
+from openvino.opset1.ops import psroi_pooling
+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 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 tile
+from openvino.opset1.ops import transpose
+from openvino.opset1.ops import unsqueeze
+from openvino.opset1.ops import variadic_split
+from openvino.opset2.ops import batch_to_space
+from openvino.opset2.ops import gelu
+from openvino.opset2.ops import mvn
+from openvino.opset2.ops import reorg_yolo
+from openvino.opset2.ops import roi_pooling
+from openvino.opset2.ops import space_to_batch
+from openvino.opset3.ops import assign
+from openvino.opset3.ops import broadcast
+from openvino.opset3.ops import bucketize
+from openvino.opset3.ops import cum_sum
+from openvino.opset3.ops import cum_sum as cumsum
+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.opset3.ops import gru_cell
+from openvino.opset3.ops import non_max_suppression
+from openvino.opset3.ops import non_zero
+from openvino.opset3.ops import read_value
+from openvino.opset3.ops import rnn_cell
+from openvino.opset3.ops import roi_align
+from openvino.opset3.ops import scatter_elements_update
+from openvino.opset3.ops import scatter_update
+from openvino.opset3.ops import shape_of
+from openvino.opset3.ops import shuffle_channels
+from openvino.opset3.ops import topk
+from openvino._pyopenvino.op import tensor_iterator
+__all__ = ['abs', 'absolute', 'acos', 'add', 'asin', 'assign', 'atan', 'avg_pool', 'batch_norm_inference', 'batch_to_space', 'binary_convolution', 'broadcast', 'bucketize', 'ceil', 'ceiling', 'clamp', 'concat', 'constant', 'convert', 'convert_like', 'convolution', 'convolution_backprop_data', 'cos', 'cosh', 'ctc_greedy_decoder', 'cum_sum', 'cumsum', 'deformable_convolution', 'deformable_psroi_pooling', 'depth_to_space', 'detection_output', 'divide', 'elu', 'embedding_bag_offsets_sum', 'embedding_bag_packed_sum', 'embedding_segments_sum', 'equal', 'erf', 'exp', 'extract_image_patches', 'fake_quantize', 'floor', 'floor_mod', 'gather', 'gather_tree', 'gelu', 'greater', 'greater_equal', 'grn', 'group_convolution', 'group_convolution_backprop_data', 'gru_cell', 'hard_sigmoid', 'interpolate', 'less', 'less_equal', 'log', 'logical_and', 'logical_not', 'logical_or', 'logical_xor', 'lrn', 'lstm_cell', 'matmul', 'max_pool', 'maximum', 'minimum', 'mod', 'multiply', 'mvn', 'negative', 'non_max_suppression', 'non_zero', 'normalize_l2', 'not_equal', 'one_hot', 'ops', 'pad', 'parameter', 'power', 'prelu', 'prior_box', 'prior_box_clustered', 'proposal', 'psroi_pooling', 'range', 'read_value', 'reduce_logical_and', 'reduce_logical_or', 'reduce_max', 'reduce_mean', 'reduce_min', 'reduce_prod', 'reduce_sum', 'region_yolo', 'relu', 'reorg_yolo', 'reshape', 'result', 'reverse_sequence', 'rnn_cell', 'roi_align', 'roi_pooling', 'scatter_elements_update', 'scatter_update', 'select', 'selu', 'shape_of', 'shuffle_channels', 'sigmoid', 'sign', 'sin', 'sinh', 'softmax', 'space_to_batch', 'space_to_depth', 'split', 'sqrt', 'squared_difference', 'squeeze', 'strided_slice', 'subtract', 'tan', 'tanh', 'tensor_iterator', 'tile', 'topk', 'transpose', 'unsqueeze', 'variadic_split']
diff --git a/src/bindings/python/src/openvino/opset3/ops.pyi b/src/bindings/python/src/openvino/opset3/ops.pyi
new file mode 100644
index 00000000000..1a8e264802e
--- /dev/null
+++ b/src/bindings/python/src/openvino/opset3/ops.pyi
@@ -0,0 +1,364 @@
+# type: ignore
+"""
+Factory functions for all openvino ops.
+"""
+from functools import partial
+from __future__ import annotations
+from openvino._pyopenvino import Node
+from openvino._pyopenvino import Shape
+from openvino._pyopenvino.op import Constant
+from openvino._pyopenvino.op import Parameter
+from openvino.utils.decorators import binary_op
+from openvino.utils.decorators import nameable_op
+from openvino.utils.decorators import unary_op
+from openvino.utils.input_validation import assert_list_of_ints
+from openvino.utils.input_validation import check_valid_attributes
+from openvino.utils.input_validation import is_non_negative_value
+from openvino.utils.input_validation import is_positive_value
+from openvino.utils.node_factory import _get_node_factory
+from openvino.utils.node_factory import NodeFactory
+from openvino.utils.types import as_node
+from openvino.utils.types import as_nodes
+from openvino.utils.types import get_dtype
+from openvino.utils.types import get_element_type
+from openvino.utils.types import get_element_type_str
+from openvino.utils.types import make_constant_node
+import functools
+import numpy as np
+import openvino._pyopenvino
+import typing
+__all__ = ['Constant', 'Node', 'NodeFactory', 'NodeInput', 'NumericData', 'NumericType', 'Parameter', 'ScalarData', 'Shape', 'TensorShape', 'as_node', 'as_nodes', 'assert_list_of_ints', 'assign', 'binary_op', 'broadcast', 'bucketize', 'check_valid_attributes', 'cum_sum', 'embedding_bag_offsets_sum', 'embedding_bag_packed_sum', 'embedding_segments_sum', 'extract_image_patches', 'get_dtype', 'get_element_type', 'get_element_type_str', 'gru_cell', 'is_non_negative_value', 'is_positive_value', 'make_constant_node', 'nameable_op', 'non_max_suppression', 'non_zero', 'np', 'partial', 'read_value', 'rnn_cell', 'roi_align', 'scatter_elements_update', 'scatter_update', 'shape_of', 'shuffle_channels', 'topk', 'unary_op']
+def assign(*args, **kwargs) -> openvino._pyopenvino.Node:
+ """
+ Return a node which produces the Assign operation.
+
+ :param new_value: Node producing a value to be assigned to a variable.
+ :param variable_id: Id of a variable to be updated.
+ :param name: Optional name for output node.
+ :return: Assign node
+
+ """
+def broadcast(*args, **kwargs) -> openvino._pyopenvino.Node:
+ """
+ Create a node which broadcasts the input node's values along specified axes to a desired shape.
+
+ :param data: The node with input tensor data.
+ :param target_shape: The node with a new shape we want to broadcast tensor to.
+ :param axes_mapping: The node with a axis positions (0-based) in the result
+ that are being broadcast.
+ :param broadcast_spec: The type of broadcasting that specifies mapping of input tensor axes
+ to output shape axes. Range of values: NUMPY, EXPLICIT, BIDIRECTIONAL.
+ :param name: Optional new name for output node.
+ :return: New node with broadcast shape.
+
+ """
+def bucketize(*args, **kwargs) -> openvino._pyopenvino.Node:
+ """
+ Return a node which produces the Bucketize operation.
+
+ :param data: Input data to bucketize
+ :param buckets: 1-D of sorted unique boundaries for buckets
+ :param output_type: Output tensor type, "i64" or "i32", defaults to i64
+ :param with_right_bound: indicates whether bucket includes the right or left
+ edge of interval. default true = includes right edge
+ :param name: Optional name for output node.
+ :return: Bucketize node
+
+ """
+def cum_sum(*args, **kwargs) -> openvino._pyopenvino.Node:
+ """
+ Construct a cumulative summation operation.
+
+ :param arg: The tensor to be summed.
+ :param axis: zero dimension tensor specifying axis position along which sum will be performed.
+ :param exclusive: if set to true, the top element is not included
+ :param reverse: if set to true, will perform the sums in reverse direction
+ :return: New node performing the operation
+
+ """
+def embedding_bag_offsets_sum(*args, **kwargs) -> openvino._pyopenvino.Node:
+ """
+ Return a node which performs sums of bags of embeddings without the intermediate embeddings.
+
+ :param emb_table: Tensor containing the embedding lookup table.
+ :param indices: Tensor with indices.
+ :param offsets: Tensor containing the starting index positions of each bag in indices.
+ :param per_sample_weights: Tensor with weights for each sample.
+ :param default_index: Scalar containing default index in embedding table to fill empty bags.
+ :param name: Optional name for output node.
+ :return: The new node which performs EmbeddingBagOffsetsSum
+
+ """
+def embedding_bag_packed_sum(*args, **kwargs) -> openvino._pyopenvino.Node:
+ """
+ Return an EmbeddingBagPackedSum node.
+
+ EmbeddingSegmentsSum constructs an output tensor by replacing every index in a given
+ input tensor with a row (from the weights matrix) at that index
+
+ :param emb_table: Tensor containing the embedding lookup table.
+ :param indices: Tensor with indices.
+ :param per_sample_weights: Weights to be multiplied with embedding table.
+ :param name: Optional name for output node.
+ :return: EmbeddingBagPackedSum node
+
+ """
+def embedding_segments_sum(*args, **kwargs) -> openvino._pyopenvino.Node:
+ """
+ Return an EmbeddingSegmentsSum node.
+
+ EmbeddingSegmentsSum constructs an output tensor by replacing every index in a given
+ input tensor with a row (from the weights matrix) at that index
+
+ :param emb_table: Tensor containing the embedding lookup table.
+ :param indices: Tensor with indices.
+ :param segment_ids: Tensor with indices into the output Tensor
+ :param num_segments: Tensor with number of segments.
+ :param default_index: Scalar containing default index in embedding table to fill empty bags.
+ :param per_sample_weights: Weights to be multiplied with embedding table.
+ :param name: Optional name for output node.
+ :return: EmbeddingSegmentsSum node
+
+ """
+def extract_image_patches(*args, **kwargs) -> openvino._pyopenvino.Node:
+ """
+ Return a node which produces the ExtractImagePatches operation.
+
+ :param image: 4-D Input data to extract image patches.
+ :param sizes: Patch size in the format of [size_rows, size_cols].
+ :param strides: Patch movement stride in the format of [stride_rows, stride_cols]
+ :param rates: Element seleciton rate for creating a patch.
+ :param auto_pad: Padding type.
+ :param name: Optional name for output node.
+ :return: ExtractImagePatches node
+
+ """
+def gru_cell(*args, **kwargs) -> openvino._pyopenvino.Node:
+ """
+ Perform GRUCell operation on the tensor from input node.
+
+ GRUCell represents a single GRU Cell that computes the output
+ using the formula described in the paper: https://arxiv.org/abs/1406.1078
+
+ Note this class represents only single *cell* and not whole *layer*.
+
+ :param X: The input tensor with shape: [batch_size, input_size].
+ :param initial_hidden_state: The hidden state tensor at current time step with shape:
+ [batch_size, hidden_size].
+ :param W: The weights for matrix multiplication, gate order: zrh.
+ Shape: [3*hidden_size, input_size].
+ :param R: The recurrence weights for matrix multiplication.
+ Shape: [3*hidden_size, hidden_size].
+ :param B: The sum of biases (weight and recurrence).
+ For linear_before_reset set True the shape is [4*hidden_size].
+ Otherwise the shape is [3*hidden_size].
+ :param hidden_size: The number of hidden units for recurrent cell.
+ Specifies hidden state size.
+ :param activations: The vector of activation functions used inside recurrent cell.
+ :param activation_alpha: The vector of alpha parameters for activation functions in
+ order respective to activation list.
+ :param activation_beta: The vector of beta parameters for activation functions in order
+ respective to activation list.
+ :param clip: The value defining clipping range [-clip, clip] on input of
+ activation functions.
+ :param linear_before_reset: Flag denotes if the layer behaves according to the modification
+ of GRUCell described in the formula in the ONNX documentation.
+ :param name: Optional output node name.
+ :return: The new node performing a GRUCell operation on tensor from input node.
+
+ """
+def non_max_suppression(*args, **kwargs) -> openvino._pyopenvino.Node:
+ """
+ Return a node which performs NonMaxSuppression.
+
+ :param boxes: Tensor with box coordinates.
+ :param scores: Tensor with box scores.
+ :param max_output_boxes_per_class: Tensor Specifying maximum number of boxes
+ to be selected per class.
+ :param iou_threshold: Tensor specifying intersection over union threshold
+ :param score_threshold: Tensor specifying minimum score to consider box for the processing.
+ :param box_encoding: Format of boxes data encoding.
+ :param sort_result_descending: Flag that specifies whenever it is necessary to sort selected
+ boxes across batches or not.
+ :param output_type: Output element type.
+ :return: The new node which performs NonMaxSuppression
+
+ """
+def non_zero(*args, **kwargs) -> openvino._pyopenvino.Node:
+ """
+ Return the indices of the elements that are non-zero.
+
+ :param data: Input data.
+ :param output_type: Output tensor type.
+
+ :return: The new node which performs NonZero
+
+ """
+def read_value(*args, **kwargs) -> openvino._pyopenvino.Node:
+ """
+ Return a node which produces the Assign operation.
+
+ :param init_value: Node producing a value to be returned instead of an unassigned variable.
+ :param variable_id: Id of a variable to be read.
+ :param name: Optional name for output node.
+ :return: ReadValue node
+
+ """
+def rnn_cell(*args, **kwargs) -> openvino._pyopenvino.Node:
+ """
+ Perform RNNCell operation on tensor from input node.
+
+ It follows notation and equations defined as in ONNX standard:
+ https://github.com/onnx/onnx/blob/master/docs/Operators.md#RNN
+
+ Note this class represents only single *cell* and not whole RNN *layer*.
+
+ :param X: The input tensor with shape: [batch_size, input_size].
+ :param initial_hidden_state: The hidden state tensor at current time step with shape:
+ [batch_size, hidden_size].
+ :param W: The weight tensor with shape: [hidden_size, input_size].
+ :param R: The recurrence weight tensor with shape: [hidden_size,
+ hidden_size].
+ :param B: The sum of biases (weight and recurrence) with shape: [hidden_size].
+ :param hidden_size: The number of hidden units for recurrent cell.
+ Specifies hidden state size.
+ :param activations: The vector of activation functions used inside recurrent cell.
+ :param activation_alpha: The vector of alpha parameters for activation functions in
+ order respective to activation list.
+ :param activation_beta: The vector of beta parameters for activation functions in order
+ respective to activation list.
+ :param clip: The value defining clipping range [-clip, clip] on input of
+ activation functions.
+ :param name: Optional output node name.
+ :return: The new node performing a RNNCell operation on tensor from input node.
+
+ """
+def roi_align(*args, **kwargs) -> openvino._pyopenvino.Node:
+ """
+ Return a node which performs ROIAlign.
+
+ :param data: Input data.
+ :param rois: RoIs (Regions of Interest) to pool over.
+ :param batch_indices: Tensor with each element denoting the index of
+ the corresponding image in the batch.
+ :param pooled_h: Height of the ROI output feature map.
+ :param pooled_w: Width of the ROI output feature map.
+ :param sampling_ratio: Number of bins over height and width to use to calculate
+ each output feature map element.
+ :param spatial_scale: Multiplicative spatial scale factor to translate ROI coordinates.
+ :param mode: Method to perform pooling to produce output feature map elements.
+
+ :return: The new node which performs ROIAlign
+
+ """
+def scatter_elements_update(*args, **kwargs) -> openvino._pyopenvino.Node:
+ """
+ Return a node which produces a ScatterElementsUpdate operation.
+
+ :param data: The input tensor to be updated.
+ :param indices: The tensor with indexes which will be updated.
+ :param updates: The tensor with update values.
+ :param axis: The axis for scatter.
+ :return: ScatterElementsUpdate node
+
+ ScatterElementsUpdate creates a copy of the first input tensor with updated elements
+ specified with second and third input tensors.
+
+ For each entry in `updates`, the target index in `data` is obtained by combining
+ the corresponding entry in `indices` with the index of the entry itself: the
+ index-value for dimension equal to `axis` is obtained from the value of the
+ corresponding entry in `indices` and the index-value for dimension not equal
+ to `axis` is obtained from the index of the entry itself.
+
+
+ """
+def scatter_update(*args, **kwargs) -> openvino._pyopenvino.Node:
+ """
+ Return a node which produces a ScatterUpdate operation.
+
+ ScatterUpdate sets new values to slices from data addressed by indices.
+
+ :param data: The input tensor to be updated.
+ :param indices: The tensor with indexes which will be updated.
+ :param updates: The tensor with update values.
+ :param axis: The axis at which elements will be updated.
+ :return: ScatterUpdate node
+
+ """
+def shape_of(*args, **kwargs) -> openvino._pyopenvino.Node:
+ """
+ Return a node which produces a tensor containing the shape of its input data.
+
+ :param data: The tensor containing the input data.
+ :param output_type: Output element type.
+ :return: ShapeOf node
+
+ """
+def shuffle_channels(*args, **kwargs) -> openvino._pyopenvino.Node:
+ """
+ Perform permutation on data in the channel dimension of the input tensor.
+
+ :param data: The node with input tensor.
+ :param axis: Channel dimension index in the data tensor.
+ A negative value means that the index should be calculated
+ from the back of the input data shape.
+ :param group: The channel dimension specified by the axis parameter
+ should be split into this number of groups.
+ :param name: Optional output node name.
+ :return: The new node performing a permutation on data in the channel dimension
+ of the input tensor.
+
+ The operation is the equivalent with the following transformation of the input tensor
+ `data` of shape [N, C, H, W]:
+
+ `data_reshaped` = reshape(`data`, [N, group, C / group, H * W])
+
+ `data_transposed` = transpose(`data_reshaped`, [0, 2, 1, 3])
+
+ `output` = reshape(`data_transposed`, [N, C, H, W])
+
+ For example:
+
+ .. code-block:: python
+
+ Inputs: tensor of shape [1, 6, 2, 2]
+
+ data = [[[[ 0., 1.], [ 2., 3.]],
+ [[ 4., 5.], [ 6., 7.]],
+ [[ 8., 9.], [10., 11.]],
+ [[12., 13.], [14., 15.]],
+ [[16., 17.], [18., 19.]],
+ [[20., 21.], [22., 23.]]]]
+
+ axis = 1
+ groups = 3
+
+ Output: tensor of shape [1, 6, 2, 2]
+
+ output = [[[[ 0., 1.], [ 2., 3.]],
+ [[ 8., 9.], [10., 11.]],
+ [[16., 17.], [18., 19.]],
+ [[ 4., 5.], [ 6., 7.]],
+ [[12., 13.], [14., 15.]],
+ [[20., 21.], [22., 23.]]]]
+
+ """
+def topk(*args, **kwargs) -> openvino._pyopenvino.Node:
+ """
+ Return a node which performs TopK.
+
+ :param data: Input data.
+ :param k: K.
+ :param axis: TopK Axis.
+ :param mode: Compute TopK largest ('max') or smallest ('min')
+ :param sort: Order of output elements (sort by: 'none', 'index' or 'value')
+ :param index_element_type: Type of output tensor with indices.
+ :return: The new node which performs TopK (both indices and values)
+
+ """
+NodeInput: typing._UnionGenericAlias # value = typing.Union[openvino._pyopenvino.Node, int, float, numpy.ndarray]
+NumericData: typing._UnionGenericAlias # value = typing.Union[int, float, numpy.ndarray]
+NumericType: typing._UnionGenericAlias # value = typing.Union[type, numpy.dtype]
+ScalarData: typing._UnionGenericAlias # value = typing.Union[int, float]
+TensorShape: typing._GenericAlias # value = typing.List[int]
+_get_node_factory_opset3: functools.partial # value = functools.partial(<function _get_node_factory at memory_address>, 'opset3')
diff --git a/src/bindings/python/src/openvino/opset4/__init__.pyi b/src/bindings/python/src/openvino/opset4/__init__.pyi
new file mode 100644
index 00000000000..b3e89a0c02e
--- /dev/null
+++ b/src/bindings/python/src/openvino/opset4/__init__.pyi
@@ -0,0 +1,144 @@
+# type: ignore
+from __future__ import annotations
+from . import ops
+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 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 matmul
+from openvino.opset1.ops import maximum
+from openvino.opset1.ops import max_pool
+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 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 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 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 tile
+from openvino.opset1.ops import transpose
+from openvino.opset1.ops import unsqueeze
+from openvino.opset1.ops import variadic_split
+from openvino.opset2.ops import batch_to_space
+from openvino.opset2.ops import gelu
+from openvino.opset2.ops import mvn
+from openvino.opset2.ops import reorg_yolo
+from openvino.opset2.ops import roi_pooling
+from openvino.opset2.ops import space_to_batch
+from openvino.opset3.ops import assign
+from openvino.opset3.ops import broadcast
+from openvino.opset3.ops import bucketize
+from openvino.opset3.ops import cum_sum
+from openvino.opset3.ops import cum_sum as cumsum
+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.opset3.ops import gru_cell
+from openvino.opset3.ops import non_zero
+from openvino.opset3.ops import read_value
+from openvino.opset3.ops import rnn_cell
+from openvino.opset3.ops import roi_align
+from openvino.opset3.ops import scatter_elements_update
+from openvino.opset3.ops import scatter_update
+from openvino.opset3.ops import shape_of
+from openvino.opset3.ops import shuffle_channels
+from openvino.opset3.ops import topk
+from openvino.opset4.ops import acosh
+from openvino.opset4.ops import asinh
+from openvino.opset4.ops import atanh
+from openvino.opset4.ops import ctc_loss
+from openvino.opset4.ops import hswish
+from openvino.opset4.ops import lstm_cell
+from openvino.opset4.ops import mish
+from openvino.opset4.ops import non_max_suppression
+from openvino.opset4.ops import proposal
+from openvino.opset4.ops import reduce_l1
+from openvino.opset4.ops import reduce_l2
+from openvino.opset4.ops import scatter_nd_update
+from openvino.opset4.ops import softplus
+from openvino.opset4.ops import swish
+from openvino._pyopenvino.op import tensor_iterator
+__all__ = ['abs', 'absolute', 'acos', 'acosh', 'add', 'asin', 'asinh', 'assign', 'atan', 'atanh', 'avg_pool', 'batch_norm_inference', 'batch_to_space', 'binary_convolution', 'broadcast', 'bucketize', 'ceil', 'ceiling', 'clamp', 'concat', 'constant', 'convert', 'convert_like', 'convolution', 'convolution_backprop_data', 'cos', 'cosh', 'ctc_greedy_decoder', 'ctc_loss', 'cum_sum', 'cumsum', 'deformable_convolution', 'deformable_psroi_pooling', 'depth_to_space', 'detection_output', 'divide', 'elu', 'embedding_bag_offsets_sum', 'embedding_bag_packed_sum', 'embedding_segments_sum', 'equal', 'erf', 'exp', 'extract_image_patches', 'fake_quantize', 'floor', 'floor_mod', 'gather', 'gather_tree', 'gelu', 'greater', 'greater_equal', 'grn', 'group_convolution', 'group_convolution_backprop_data', 'gru_cell', 'hard_sigmoid', 'hswish', 'interpolate', 'less', 'less_equal', 'log', 'logical_and', 'logical_not', 'logical_or', 'logical_xor', 'lrn', 'lstm_cell', 'matmul', 'max_pool', 'maximum', 'minimum', 'mish', 'mod', 'multiply', 'mvn', 'negative', 'non_max_suppression', 'non_zero', 'normalize_l2', 'not_equal', 'one_hot', 'ops', 'pad', 'parameter', 'power', 'prelu', 'prior_box', 'prior_box_clustered', 'proposal', 'psroi_pooling', 'range', 'read_value', 'reduce_l1', 'reduce_l2', 'reduce_logical_and', 'reduce_logical_or', 'reduce_max', 'reduce_mean', 'reduce_min', 'reduce_prod', 'reduce_sum', 'region_yolo', 'relu', 'reorg_yolo', 'reshape', 'result', 'reverse_sequence', 'rnn_cell', 'roi_align', 'roi_pooling', 'scatter_elements_update', 'scatter_nd_update', 'scatter_update', 'select', 'selu', 'shape_of', 'shuffle_channels', 'sigmoid', 'sign', 'sin', 'sinh', 'softmax', 'softplus', 'space_to_batch', 'space_to_depth', 'split', 'sqrt', 'squared_difference', 'squeeze', 'strided_slice', 'subtract', 'swish', 'tan', 'tanh', 'tensor_iterator', 'tile', 'topk', 'transpose', 'unsqueeze', 'variadic_split']
diff --git a/src/bindings/python/src/openvino/opset4/ops.pyi b/src/bindings/python/src/openvino/opset4/ops.pyi
new file mode 100644
index 00000000000..7edf5e2106f
--- /dev/null
+++ b/src/bindings/python/src/openvino/opset4/ops.pyi
@@ -0,0 +1,286 @@
+# type: ignore
+"""
+Factory functions for all openvino ops.
+"""
+from functools import partial
+from __future__ import annotations
+from openvino._pyopenvino import Node
+from openvino._pyopenvino import Shape
+from openvino._pyopenvino.op import Constant
+from openvino._pyopenvino.op import Parameter
+from openvino.utils.decorators import binary_op
+from openvino.utils.decorators import nameable_op
+from openvino.utils.decorators import unary_op
+from openvino.utils.input_validation import assert_list_of_ints
+from openvino.utils.input_validation import check_valid_attributes
+from openvino.utils.input_validation import is_non_negative_value
+from openvino.utils.input_validation import is_positive_value
+from openvino.utils.node_factory import _get_node_factory
+from openvino.utils.node_factory import NodeFactory
+from openvino.utils.types import as_node
+from openvino.utils.types import as_nodes
+from openvino.utils.types import get_dtype
+from openvino.utils.types import get_element_type
+from openvino.utils.types import get_element_type_str
+from openvino.utils.types import make_constant_node
+import functools
+import numpy as np
+import openvino._pyopenvino
+import typing
+__all__ = ['Constant', 'Node', 'NodeFactory', 'NodeInput', 'NumericData', 'NumericType', 'Parameter', 'ScalarData', 'Shape', 'TensorShape', 'acosh', 'as_node', 'as_nodes', 'asinh', 'assert_list_of_ints', 'atanh', 'binary_op', 'check_valid_attributes', 'ctc_loss', 'get_dtype', 'get_element_type', 'get_element_type_str', 'hswish', 'is_non_negative_value', 'is_positive_value', 'lstm_cell', 'make_constant_node', 'mish', 'nameable_op', 'non_max_suppression', 'np', 'partial', 'proposal', 'range', 'reduce_l1', 'reduce_l2', 'scatter_nd_update', 'softplus', 'swish', 'unary_op']
+def acosh(*args, **kwargs) -> openvino._pyopenvino.Node:
+ """
+ Apply hyperbolic inverse cosine function on the input node element-wise.
+
+ :param node: One of: input node, array or scalar.
+ :param name: Optional new name for output node.
+ :return: New node with arccosh operation applied on it.
+
+ """
+def asinh(*args, **kwargs) -> openvino._pyopenvino.Node:
+ """
+ Apply hyperbolic inverse sinus function on the input node element-wise.
+
+ :param node: One of: input node, array or scalar.
+ :param name: Optional new name for output node.
+ :return: New node with arcsinh operation applied on it.
+
+ """
+def atanh(*args, **kwargs) -> openvino._pyopenvino.Node:
+ """
+ Apply hyperbolic inverse tangent function on the input node element-wise.
+
+ :param node: One of: input node, array or scalar.
+ :param name: Optional new name for output node.
+ :return: New node with arctanh operation applied on it.
+
+ """
+def ctc_loss(*args, **kwargs) -> openvino._pyopenvino.Node:
+ """
+ Return a node which performs CTCLoss.
+
+ :param logits: 3-D tensor of logits.
+ :param logit_length: 1-D tensor of lengths for each object from a batch.
+ :param labels: 2-D tensor of labels for which likelihood is estimated using logits.
+ :param label_length: 1-D tensor of length for each label sequence.
+ :param blank_index: Scalar used to mark a blank index.
+ :param preprocess_collapse_repeated: Flag for preprocessing labels before loss calculation.
+ :param ctc_merge_repeated: Flag for merging repeated characters in a potential alignment.
+ :param unique: Flag to find unique elements in a target.
+ :return: The new node which performs CTCLoss
+
+ """
+def hswish(*args, **kwargs) -> openvino._pyopenvino.Node:
+ """
+ Return a node which performs HSwish (hard version of Swish).
+
+ :param data: Tensor with input data floating point type.
+ :return: The new node which performs HSwish
+
+ """
+def lstm_cell(*args, **kwargs) -> openvino._pyopenvino.Node:
+ """
+ Return a node which performs LSTMCell operation.
+
+ :param X: The input tensor with shape: [batch_size, input_size].
+ :param initial_hidden_state: The hidden state tensor with shape: [batch_size, hidden_size].
+ :param initial_cell_state: The cell state tensor with shape: [batch_size, hidden_size].
+ :param W: The weight tensor with shape: [4*hidden_size, input_size].
+ :param R: The recurrence weight tensor with shape: [4*hidden_size, hidden_size].
+ :param B: The bias tensor for gates with shape: [4*hidden_size].
+ :param hidden_size: Specifies hidden state size.
+ :param activations: The list of three activation functions for gates.
+ :param activations_alpha: The list of alpha parameters for activation functions.
+ :param activations_beta: The list of beta parameters for activation functions.
+ :param clip: Specifies bound values [-C, C] for tensor clipping performed before activations.
+ :param name: An optional name of the output node.
+
+ :return: The new node represents LSTMCell. Node outputs count: 2.
+
+ """
+def mish(*args, **kwargs) -> openvino._pyopenvino.Node:
+ """
+ Return a node which performs Mish.
+
+ :param data: Tensor with input data floating point type.
+ :return: The new node which performs Mish
+
+ """
+def non_max_suppression(*args, **kwargs) -> openvino._pyopenvino.Node:
+ """
+ Return a node which performs NonMaxSuppression.
+
+ :param boxes: Tensor with box coordinates.
+ :param scores: Tensor with box scores.
+ :param max_output_boxes_per_class: Tensor Specifying maximum number of boxes
+ to be selected per class.
+ :param iou_threshold: Tensor specifying intersection over union threshold
+ :param score_threshold: Tensor specifying minimum score to consider box for the processing.
+ :param box_encoding: Format of boxes data encoding.
+ :param sort_result_descending: Flag that specifies whenever it is necessary to sort selected
+ boxes across batches or not.
+ :param output_type: Output element type.
+ :return: The new node which performs NonMaxSuppression
+
+ """
+def proposal(*args, **kwargs) -> openvino._pyopenvino.Node:
+ """
+ Filter bounding boxes and outputs only those with the highest prediction confidence.
+
+ :param class_probs: 4D input floating point tensor with class prediction scores.
+ :param bbox_deltas: 4D input floating point tensor with corrected predictions of bounding boxes
+ :param image_shape: The 1D input tensor with 3 or 4 elements describing image shape.
+ :param attrs: The dictionary containing key, value pairs for attributes.
+ :param name: Optional name for the output node.
+
+ * base_size The size of the anchor to which scale and ratio attributes are applied.
+ Range of values: a positive unsigned integer number
+ Default value: None
+ Required: yes
+ * pre_nms_topn The number of bounding boxes before the NMS operation.
+ Range of values: a positive unsigned integer number
+ Default value: None
+ Required: yes
+ * post_nms_topn The number of bounding boxes after the NMS operation.
+ Range of values: a positive unsigned integer number
+ Default value: None
+ Required: yes
+ * nms_thresh The minimum value of the proposal to be taken into consideration.
+ Range of values: a positive floating-point number
+ Default value: None
+ Required: yes
+ * feat_stride The step size to slide over boxes (in pixels).
+ Range of values: a positive unsigned integer
+ Default value: None
+ Required: yes
+ * min_size The minimum size of box to be taken into consideration.
+ Range of values: a positive unsigned integer number
+ Default value: None
+ Required: yes
+ * ratio The ratios for anchor generation.
+ Range of values: a list of floating-point numbers
+ Default value: None
+ Required: yes
+ * scale The scales for anchor generation.
+ Range of values: a list of floating-point numbers
+ Default value: None
+ Required: yes
+ * clip_before_nms The flag that specifies whether to perform clip bounding boxes before
+ non-maximum suppression or not.
+ Range of values: True or False
+ Default value: True
+ Required: no
+ * clip_after_nms The flag that specifies whether to perform clip bounding boxes after
+ non-maximum suppression or not.
+ Range of values: True or False
+ Default value: False
+ Required: no
+ * normalize The flag that specifies whether to perform normalization of output boxes to
+ [0,1] interval or not.
+ Range of values: True or False
+ Default value: False
+ Required: no
+ * box_size_scale Specifies the scale factor applied to logits of box sizes before decoding.
+ Range of values: a positive floating-point number
+ Default value: 1.0
+ Required: no
+ * box_coordinate_scale Specifies the scale factor applied to logits of box coordinates
+ before decoding.
+ Range of values: a positive floating-point number
+ Default value: 1.0
+ Required: no
+ * framework Specifies how the box coordinates are calculated.
+ Range of values: "" (empty string) - calculate box coordinates like in Caffe*
+ tensorflow - calculate box coordinates like in the TensorFlow*
+ Object Detection API models
+
+ Default value: "" (empty string)
+ Required: no
+
+ Example of attribute dictionary:
+
+ .. code-block:: python
+
+ # just required ones
+ attrs = {
+ 'base_size': 85,
+ 'pre_nms_topn': 10,
+ 'post_nms_topn': 20,
+ 'nms_thresh': 0.34,
+ 'feat_stride': 16,
+ 'min_size': 32,
+ 'ratio': [0.1, 1.5, 2.0, 2.5],
+ 'scale': [2, 3, 3, 4],
+ }
+
+ Optional attributes which are absent from dictionary will be set with corresponding default.
+ :return: Node representing Proposal operation.
+
+ """
+def range(*args, **kwargs) -> openvino._pyopenvino.Node:
+ """
+ Return a node which produces the Range operation.
+
+ :param start: The start value of the generated range.
+ :param stop: The stop value of the generated range.
+ :param step: The step value for the generated range.
+ :param output_type: The output tensor type.
+ :param name: Optional name for output node.
+ :return: Range node
+
+ """
+def reduce_l1(*args, **kwargs) -> openvino._pyopenvino.Node:
+ """
+ L1-reduction operation on input tensor, eliminating the specified reduction axes.
+
+ :param node: The tensor we want to mean-reduce.
+ :param reduction_axes: The axes to eliminate through mean operation.
+ :param keep_dims: If set to True it holds axes that are used for reduction
+ :param name: Optional name for output node.
+ :return: The new node performing mean-reduction operation.
+
+ """
+def reduce_l2(*args, **kwargs) -> openvino._pyopenvino.Node:
+ """
+ L2-reduction operation on input tensor, eliminating the specified reduction axes.
+
+ :param node: The tensor we want to mean-reduce.
+ :param reduction_axes: The axes to eliminate through mean operation.
+ :param keep_dims: If set to True it holds axes that are used for reduction
+ :param name: Optional name for output node.
+ :return: The new node performing mean-reduction operation.
+
+ """
+def scatter_nd_update(*args, **kwargs) -> openvino._pyopenvino.Node:
+ """
+ Return a node which performs ScatterNDUpdate.
+
+ :param data: Node input representing the tensor to be updated.
+ :param indices: Node input representing the indices at which updates will be applied.
+ :param updates: Node input representing the updates to be applied.
+ :param name: Optional name for the output node.
+ :return: New node performing the ScatterNDUpdate.
+
+ """
+def softplus(*args, **kwargs) -> openvino._pyopenvino.Node:
+ """
+ Apply SoftPlus operation on each element of input tensor.
+
+ :param data: The tensor providing input data.
+ :return: The new node with SoftPlus operation applied on each element.
+
+ """
+def swish(*args, **kwargs) -> openvino._pyopenvino.Node:
+ """
+ Return a node which performing Swish activation function Swish(x, beta=1.0) = x * sigmoid(x * beta)).
+
+ :param data: Tensor with input data floating point type.
+ :return: The new node which performs Swish
+
+ """
+NodeInput: typing._UnionGenericAlias # value = typing.Union[openvino._pyopenvino.Node, int, float, numpy.ndarray]
+NumericData: typing._UnionGenericAlias # value = typing.Union[int, float, numpy.ndarray]
+NumericType: typing._UnionGenericAlias # value = typing.Union[type, numpy.dtype]
+ScalarData: typing._UnionGenericAlias # value = typing.Union[int, float]
+TensorShape: typing._GenericAlias # value = typing.List[int]
+_get_node_factory_opset4: functools.partial # value = functools.partial(<function _get_node_factory at memory_address>, 'opset4')
diff --git a/src/bindings/python/src/openvino/opset5/__init__.pyi b/src/bindings/python/src/openvino/opset5/__init__.pyi
new file mode 100644
index 00000000000..945ac14ac38
--- /dev/null
+++ b/src/bindings/python/src/openvino/opset5/__init__.pyi
@@ -0,0 +1,152 @@
+# type: ignore
+from __future__ import annotations
+from . import ops
+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 binary_convolution
+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 matmul
+from openvino.opset1.ops import maximum
+from openvino.opset1.ops import max_pool
+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 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 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 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 tile
+from openvino.opset1.ops import transpose
+from openvino.opset1.ops import unsqueeze
+from openvino.opset1.ops import variadic_split
+from openvino.opset2.ops import batch_to_space
+from openvino.opset2.ops import gelu
+from openvino.opset2.ops import mvn
+from openvino.opset2.ops import reorg_yolo
+from openvino.opset2.ops import roi_pooling
+from openvino.opset2.ops import space_to_batch
+from openvino.opset3.ops import assign
+from openvino.opset3.ops import broadcast
+from openvino.opset3.ops import bucketize
+from openvino.opset3.ops import cum_sum
+from openvino.opset3.ops import cum_sum as cumsum
+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.opset3.ops import gru_cell
+from openvino.opset3.ops import non_zero
+from openvino.opset3.ops import read_value
+from openvino.opset3.ops import rnn_cell
+from openvino.opset3.ops import roi_align
+from openvino.opset3.ops import scatter_elements_update
+from openvino.opset3.ops import scatter_update
+from openvino.opset3.ops import shape_of
+from openvino.opset3.ops import shuffle_channels
+from openvino.opset3.ops import topk
+from openvino.opset4.ops import acosh
+from openvino.opset4.ops import asinh
+from openvino.opset4.ops import atanh
+from openvino.opset4.ops import ctc_loss
+from openvino.opset4.ops import hswish
+from openvino.opset4.ops import lstm_cell
+from openvino.opset4.ops import mish
+from openvino.opset4.ops import proposal
+from openvino.opset4.ops import reduce_l1
+from openvino.opset4.ops import reduce_l2
+from openvino.opset4.ops import scatter_nd_update
+from openvino.opset4.ops import softplus
+from openvino.opset4.ops import swish
+from openvino.opset5.ops import batch_norm_inference
+from openvino.opset5.ops import gather_nd
+from openvino.opset5.ops import gru_sequence
+from openvino.opset5.ops import hsigmoid
+from openvino.opset5.ops import log_softmax
+from openvino.opset5.ops import lstm_sequence
+from openvino.opset5.ops import non_max_suppression
+from openvino.opset5.ops import rnn_sequence
+from openvino.opset5.ops import round
+from openvino._pyopenvino.op import loop
+from openvino._pyopenvino.op import tensor_iterator
+__all__ = ['abs', 'absolute', 'acos', 'acosh', 'add', 'asin', 'asinh', 'assign', 'atan', 'atanh', 'avg_pool', 'batch_norm_inference', 'batch_to_space', 'binary_convolution', 'broadcast', 'bucketize', 'ceil', 'ceiling', 'clamp', 'concat', 'constant', 'convert', 'convert_like', 'convolution', 'convolution_backprop_data', 'cos', 'cosh', 'ctc_greedy_decoder', 'ctc_loss', 'cum_sum', 'cumsum', 'deformable_convolution', 'deformable_psroi_pooling', 'depth_to_space', 'detection_output', 'divide', 'elu', 'embedding_bag_offsets_sum', 'embedding_bag_packed_sum', 'embedding_segments_sum', 'equal', 'erf', 'exp', 'extract_image_patches', 'fake_quantize', 'floor', 'floor_mod', 'gather', 'gather_nd', 'gather_tree', 'gelu', 'greater', 'greater_equal', 'grn', 'group_convolution', 'group_convolution_backprop_data', 'gru_cell', 'gru_sequence', 'hard_sigmoid', 'hsigmoid', 'hswish', 'interpolate', 'less', 'less_equal', 'log', 'log_softmax', 'logical_and', 'logical_not', 'logical_or', 'logical_xor', 'loop', 'lrn', 'lstm_cell', 'lstm_sequence', 'matmul', 'max_pool', 'maximum', 'minimum', 'mish', 'mod', 'multiply', 'mvn', 'negative', 'non_max_suppression', 'non_zero', 'normalize_l2', 'not_equal', 'one_hot', 'ops', 'pad', 'parameter', 'power', 'prelu', 'prior_box', 'prior_box_clustered', 'proposal', 'psroi_pooling', 'range', 'read_value', 'reduce_l1', 'reduce_l2', 'reduce_logical_and', 'reduce_logical_or', 'reduce_max', 'reduce_mean', 'reduce_min', 'reduce_prod', 'reduce_sum', 'region_yolo', 'relu', 'reorg_yolo', 'reshape', 'result', 'reverse_sequence', 'rnn_cell', 'rnn_sequence', 'roi_align', 'roi_pooling', 'round', 'scatter_elements_update', 'scatter_nd_update', 'scatter_update', 'select', 'selu', 'shape_of', 'shuffle_channels', 'sigmoid', 'sign', 'sin', 'sinh', 'softmax', 'softplus', 'space_to_batch', 'space_to_depth', 'split', 'sqrt', 'squared_difference', 'squeeze', 'strided_slice', 'subtract', 'swish', 'tan', 'tanh', 'tensor_iterator', 'tile', 'topk', 'transpose', 'unsqueeze', 'variadic_split']
diff --git a/src/bindings/python/src/openvino/opset5/ops.pyi b/src/bindings/python/src/openvino/opset5/ops.pyi
new file mode 100644
index 00000000000..0ddff482cea
--- /dev/null
+++ b/src/bindings/python/src/openvino/opset5/ops.pyi
@@ -0,0 +1,194 @@
+# type: ignore
+"""
+Factory functions for all openvino ops.
+"""
+from functools import partial
+from __future__ import annotations
+from openvino._pyopenvino import Node
+from openvino._pyopenvino import Shape
+from openvino._pyopenvino.op import Constant
+from openvino._pyopenvino.op import loop
+from openvino._pyopenvino.op import Parameter
+from openvino.utils.decorators import binary_op
+from openvino.utils.decorators import nameable_op
+from openvino.utils.decorators import unary_op
+from openvino.utils.input_validation import assert_list_of_ints
+from openvino.utils.input_validation import check_valid_attributes
+from openvino.utils.input_validation import is_non_negative_value
+from openvino.utils.input_validation import is_positive_value
+from openvino.utils.node_factory import _get_node_factory
+from openvino.utils.node_factory import NodeFactory
+from openvino.utils.types import as_node
+from openvino.utils.types import as_nodes
+from openvino.utils.types import get_dtype
+from openvino.utils.types import get_element_type
+from openvino.utils.types import get_element_type_str
+from openvino.utils.types import make_constant_node
+import functools
+import numpy as np
+import openvino._pyopenvino
+import typing
+__all__ = ['Constant', 'Node', 'NodeFactory', 'NodeInput', 'NumericData', 'NumericType', 'Parameter', 'ScalarData', 'Shape', 'TensorShape', 'as_node', 'as_nodes', 'assert_list_of_ints', 'batch_norm_inference', 'binary_op', 'check_valid_attributes', 'gather_nd', 'get_dtype', 'get_element_type', 'get_element_type_str', 'gru_sequence', 'hsigmoid', 'is_non_negative_value', 'is_positive_value', 'log_softmax', 'loop', 'lstm_sequence', 'make_constant_node', 'nameable_op', 'non_max_suppression', 'np', 'partial', 'rnn_sequence', 'round', 'unary_op']
+def batch_norm_inference(*args, **kwargs) -> openvino._pyopenvino.Node:
+ """
+ Perform layer normalizes a input tensor by mean and variance with appling scale and offset.
+
+ :param data: The input tensor with data for normalization.
+ :param gamma: The scalar scaling for normalized value.
+ :param beta: The bias added to the scaled normalized value.
+ :param mean: The value for mean normalization.
+ :param variance: The value for variance normalization.
+ :param epsilon: The number to be added to the variance to avoid division
+ by zero when normalizing a value.
+ :param name: The optional name of the output node.
+ :return: The new node which performs BatchNormInference.
+
+ """
+def gather_nd(*args, **kwargs) -> openvino._pyopenvino.Node:
+ """
+ Return a node which performs GatherND.
+
+ :param data: N-D tensor with data for gathering
+ :param indices: K-D tensor of tuples with indices by which data is gathered
+ :param batch_dims: Scalar value of batch dimensions
+ :return: The new node which performs GatherND
+
+ """
+def gru_sequence(*args, **kwargs) -> openvino._pyopenvino.Node:
+ """
+ Return a node which performs GRUSequence operation.
+
+ :param inputs: The input tensor. Shape: [batch_size, seq_length, input_size].
+ :param initial_hidden_state: The hidden state tensor.
+ Shape: [batch_size, num_directions, hidden_size].
+ :param sequence_lengths: Specifies real sequence lengths for each batch element.
+ Shape: [batch_size]. Integer type.
+ :param weights_w: Tensor with weights for matrix multiplication operation with input portion of data.
+ Shape: [num_directions, 3*hidden_size, input_size].
+ :param weights_r: The tensor with weights for matrix multiplication operation with hidden state.
+ Shape: [num_directions, 3*hidden_size, hidden_size].
+ :param biases: The sum of biases (weight and recurrence).
+ For linear_before_reset set True the shape is [num_directions, 4*hidden_size].
+ Otherwise the shape is [num_directions, 3*hidden_size].
+ :param hidden_size: Specifies hidden state size.
+ :param direction: Specifies if the RNN is forward, reverse, or bidirectional.
+ :param activations: The list of three activation functions for gates.
+ :param activations_alpha: The list of alpha parameters for activation functions.
+ :param activations_beta: The list of beta parameters for activation functions.
+ :param clip: Specifies bound values [-C, C] for tensor clipping performed before activations.
+ :param linear_before_reset: Flag denotes if the layer behaves according to the modification
+ of GRU described in the formula in the ONNX documentation.
+ :param name: An optional name of the output node.
+
+ :return: The new node represents GRUSequence. Node outputs count: 2.
+
+ """
+def hsigmoid(data: typing.Union[openvino._pyopenvino.Node, int, float, numpy.ndarray], name: typing.Optional[str] = None) -> openvino._pyopenvino.Node:
+ """
+ Return a node which performs HSigmoid.
+
+ :param data: Tensor with input data floating point type.
+ :return: The new node which performs HSigmoid
+
+ """
+def log_softmax(*args, **kwargs) -> openvino._pyopenvino.Node:
+ """
+ Apply LogSoftmax operation on each element of input tensor.
+
+ :param data: The tensor providing input data.
+ :param axis: An axis along which LogSoftmax should be calculated
+ :return: The new node with LogSoftmax operation applied on each element.
+
+ """
+def lstm_sequence(*args, **kwargs) -> openvino._pyopenvino.Node:
+ """
+ Return a node which performs LSTMSequence operation.
+
+ :param X: The input tensor. Shape: [batch_size, seq_length, input_size].
+ :param initial_hidden_state: The hidden state tensor.
+ Shape: [batch_size, num_directions, hidden_size].
+ :param initial_cell_state: The cell state tensor.
+ Shape: [batch_size, num_directions, hidden_size].
+ :param sequence_lengths: Specifies real sequence lengths for each batch element.
+ Shape: [batch_size]. Integer type.
+ :param W: Tensor with weights for matrix multiplication operation with input portion of data.
+ Expected format: fico
+ Shape: [num_directions, 4*hidden_size, input_size].
+ :param R: The tensor with weights for matrix multiplication operation with hidden state.
+ Expected format: fico
+ Shape: [num_directions, 4*hidden_size, hidden_size].
+ :param B: The sum of biases (weight and recurrence). Expected format: fico
+ Shape: [num_directions, 4*hidden_size].
+ :param hidden_size: Specifies hidden state size.
+ :param direction: Specifies if the RNN is forward, reverse, or bidirectional.
+ :param activations: The list of three activation functions for gates.
+ :param activations_alpha: The list of alpha parameters for activation functions.
+ :param activations_beta: The list of beta parameters for activation functions.
+ :param clip: Specifies bound values [-C, C] for tensor clipping performed before activations.
+ :param name: An optional name of the output node.
+
+ :return: The new node represents LSTMSequence. Node outputs count: 3.
+
+ """
+def non_max_suppression(*args, **kwargs) -> openvino._pyopenvino.Node:
+ """
+ Return a node which performs NonMaxSuppression.
+
+ :param boxes: Tensor with box coordinates.
+ :param scores: Tensor with box scores.
+ :param max_output_boxes_per_class: Tensor Specifying maximum number of boxes
+ to be selected per class.
+ :param iou_threshold: Tensor specifying intersection over union threshold
+ :param score_threshold: Tensor specifying minimum score to consider box for the processing.
+ :param soft_nms_sigma: Tensor specifying the sigma parameter for Soft-NMS.
+ :param box_encoding: Format of boxes data encoding.
+ :param sort_result_descending: Flag that specifies whenever it is necessary to sort selected
+ boxes across batches or not.
+ :param output_type: Output element type.
+ :return: The new node which performs NonMaxSuppression
+
+ """
+def rnn_sequence(*args, **kwargs) -> openvino._pyopenvino.Node:
+ """
+ Return a node which performs RNNSequence operation.
+
+ :param X: The input tensor. Shape: [batch_size, seq_length, input_size].
+ :param initial_hidden_state: The hidden state tensor.
+ Shape: [batch_size, num_directions, hidden_size].
+ :param sequence_lengths: Specifies real sequence lengths for each batch element.
+ Shape: [batch_size]. Integer type.
+ :param W: Tensor with weights for matrix multiplication operation with input portion of data.
+ Shape: [num_directions, hidden_size, input_size].
+ :param R: The tensor with weights for matrix multiplication operation with hidden state.
+ Shape: [num_directions, hidden_size, hidden_size].
+ :param B: The sum of biases (weight and recurrence).
+ Shape: [num_directions, hidden_size].
+ :param hidden_size: Specifies hidden state size.
+ :param direction: Specifies if the RNN is forward, reverse, or bidirectional.
+ :param activations: The list of three activation functions for gates.
+ :param activations_alpha: The list of alpha parameters for activation functions.
+ :param activations_beta: The list of beta parameters for activation functions.
+ :param clip: Specifies bound values [-C, C] for tensor clipping performed before activations.
+ :param name: An optional name of the output node.
+
+ :return: The new node represents RNNSequence. Node outputs count: 2.
+
+ """
+def round(*args, **kwargs) -> openvino._pyopenvino.Node:
+ """
+ Apply Round operation on each element of input tensor.
+
+ :param data: The tensor providing input data.
+ :param mode: Rule to round halfway cases. If set to 'half_to_even' then halfs round to the nearest even
+ integer or rounding in such a way that the result heads away from zero if `mode` attribute is
+ 'half_away_from_zero`.
+ :param name: An optional name of the output node.
+ :return: The new node with Round operation applied on each element.
+
+ """
+NodeInput: typing._UnionGenericAlias # value = typing.Union[openvino._pyopenvino.Node, int, float, numpy.ndarray]
+NumericData: typing._UnionGenericAlias # value = typing.Union[int, float, numpy.ndarray]
+NumericType: typing._UnionGenericAlias # value = typing.Union[type, numpy.dtype]
+ScalarData: typing._UnionGenericAlias # value = typing.Union[int, float]
+TensorShape: typing._GenericAlias # value = typing.List[int]
+_get_node_factory_opset5: functools.partial # value = functools.partial(<function _get_node_factory at memory_address>, 'opset5')
diff --git a/src/bindings/python/src/openvino/opset6/__init__.pyi b/src/bindings/python/src/openvino/opset6/__init__.pyi
new file mode 100644
index 00000000000..96b31c08dc7
--- /dev/null
+++ b/src/bindings/python/src/openvino/opset6/__init__.pyi
@@ -0,0 +1,155 @@
+# type: ignore
+from __future__ import annotations
+from . import ops
+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 binary_convolution
+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 matmul
+from openvino.opset1.ops import maximum
+from openvino.opset1.ops import max_pool
+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 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 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 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 tile
+from openvino.opset1.ops import transpose
+from openvino.opset1.ops import unsqueeze
+from openvino.opset1.ops import variadic_split
+from openvino.opset2.ops import batch_to_space
+from openvino.opset2.ops import gelu
+from openvino.opset2.ops import reorg_yolo
+from openvino.opset2.ops import roi_pooling
+from openvino.opset2.ops import space_to_batch
+from openvino.opset3.ops import broadcast
+from openvino.opset3.ops import bucketize
+from openvino.opset3.ops import cum_sum
+from openvino.opset3.ops import cum_sum as cumsum
+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.opset3.ops import gru_cell
+from openvino.opset3.ops import non_zero
+from openvino.opset3.ops import rnn_cell
+from openvino.opset3.ops import roi_align
+from openvino.opset3.ops import scatter_elements_update
+from openvino.opset3.ops import scatter_update
+from openvino.opset3.ops import shape_of
+from openvino.opset3.ops import shuffle_channels
+from openvino.opset3.ops import topk
+from openvino.opset4.ops import acosh
+from openvino.opset4.ops import asinh
+from openvino.opset4.ops import atanh
+from openvino.opset4.ops import ctc_loss
+from openvino.opset4.ops import hswish
+from openvino.opset4.ops import lstm_cell
+from openvino.opset4.ops import mish
+from openvino.opset4.ops import proposal
+from openvino.opset4.ops import reduce_l1
+from openvino.opset4.ops import reduce_l2
+from openvino.opset4.ops import scatter_nd_update
+from openvino.opset4.ops import softplus
+from openvino.opset4.ops import swish
+from openvino.opset5.ops import batch_norm_inference
+from openvino.opset5.ops import gather_nd
+from openvino.opset5.ops import gru_sequence
+from openvino.opset5.ops import hsigmoid
+from openvino.opset5.ops import log_softmax
+from openvino.opset5.ops import lstm_sequence
+from openvino.opset5.ops import non_max_suppression
+from openvino.opset5.ops import rnn_sequence
+from openvino.opset5.ops import round
+from openvino.opset6.ops import ctc_greedy_decoder_seq_len
+from openvino.opset6.ops import gather_elements
+from openvino.opset6.ops import mvn
+from openvino._pyopenvino.op import assign
+from openvino._pyopenvino.op import loop
+from openvino._pyopenvino.op import tensor_iterator
+import openvino.utils.decorators
+__all__ = ['abs', 'absolute', 'acos', 'acosh', 'add', 'asin', 'asinh', 'assign', 'atan', 'atanh', 'avg_pool', 'batch_norm_inference', 'batch_to_space', 'binary_convolution', 'broadcast', 'bucketize', 'ceil', 'ceiling', 'clamp', 'concat', 'constant', 'convert', 'convert_like', 'convolution', 'convolution_backprop_data', 'cos', 'cosh', 'ctc_greedy_decoder', 'ctc_greedy_decoder_seq_len', 'ctc_loss', 'cum_sum', 'cumsum', 'deformable_convolution', 'deformable_psroi_pooling', 'depth_to_space', 'detection_output', 'divide', 'elu', 'embedding_bag_offsets_sum', 'embedding_bag_packed_sum', 'embedding_segments_sum', 'equal', 'erf', 'exp', 'extract_image_patches', 'fake_quantize', 'floor', 'floor_mod', 'gather', 'gather_elements', 'gather_nd', 'gather_tree', 'gelu', 'greater', 'greater_equal', 'grn', 'group_convolution', 'group_convolution_backprop_data', 'gru_cell', 'gru_sequence', 'hard_sigmoid', 'hsigmoid', 'hswish', 'interpolate', 'less', 'less_equal', 'log', 'log_softmax', 'logical_and', 'logical_not', 'logical_or', 'logical_xor', 'loop', 'lrn', 'lstm_cell', 'lstm_sequence', 'matmul', 'max_pool', 'maximum', 'minimum', 'mish', 'mod', 'multiply', 'mvn', 'negative', 'non_max_suppression', 'non_zero', 'normalize_l2', 'not_equal', 'one_hot', 'ops', 'pad', 'parameter', 'power', 'prelu', 'prior_box', 'prior_box_clustered', 'proposal', 'psroi_pooling', 'range', 'read_value', 'reduce_l1', 'reduce_l2', 'reduce_logical_and', 'reduce_logical_or', 'reduce_max', 'reduce_mean', 'reduce_min', 'reduce_prod', 'reduce_sum', 'region_yolo', 'relu', 'reorg_yolo', 'reshape', 'result', 'reverse_sequence', 'rnn_cell', 'rnn_sequence', 'roi_align', 'roi_pooling', 'round', 'scatter_elements_update', 'scatter_nd_update', 'scatter_update', 'select', 'selu', 'shape_of', 'shuffle_channels', 'sigmoid', 'sign', 'sin', 'sinh', 'softmax', 'softplus', 'space_to_batch', 'space_to_depth', 'split', 'sqrt', 'squared_difference', 'squeeze', 'strided_slice', 'subtract', 'swish', 'tan', 'tanh', 'tensor_iterator', 'tile', 'topk', 'transpose', 'unsqueeze', 'variadic_split']
+read_value: openvino.utils.decorators.MultiMethod # value = <openvino.utils.decorators.MultiMethod object>
diff --git a/src/bindings/python/src/openvino/opset6/ops.pyi b/src/bindings/python/src/openvino/opset6/ops.pyi
new file mode 100644
index 00000000000..27ab8dcb1e1
--- /dev/null
+++ b/src/bindings/python/src/openvino/opset6/ops.pyi
@@ -0,0 +1,67 @@
+# type: ignore
+from functools import partial
+from functools import singledispatch
+from __future__ import annotations
+from openvino._pyopenvino import Node
+from openvino._pyopenvino import Output
+from openvino._pyopenvino import PartialShape
+from openvino._pyopenvino import Shape
+from openvino._pyopenvino import Type
+from openvino._pyopenvino.op import assign
+from openvino._pyopenvino.op import Constant
+from openvino._pyopenvino.op import Parameter
+from openvino._pyopenvino.op import read_value as _read_value
+from openvino._pyopenvino.op.util import Variable
+from openvino._pyopenvino.op.util import VariableInfo
+from openvino.utils.decorators import nameable_op
+from openvino.utils.decorators import overloading
+from openvino.utils.node_factory import _get_node_factory
+from openvino.utils.types import as_node
+from openvino.utils.types import as_nodes
+from openvino.utils.types import get_element_type
+import functools
+import numpy as np
+import openvino._pyopenvino
+import openvino.utils.decorators
+import typing
+__all__ = ['Constant', 'Node', 'NodeInput', 'NumericType', 'Output', 'Parameter', 'PartialShape', 'Shape', 'TensorShape', 'Type', 'Variable', 'VariableInfo', 'as_node', 'as_nodes', 'assign', 'ctc_greedy_decoder_seq_len', 'gather_elements', 'get_element_type', 'mvn', 'nameable_op', 'np', 'overloading', 'partial', 'read_value', 'singledispatch']
+def ctc_greedy_decoder_seq_len(*args, **kwargs) -> openvino._pyopenvino.Node:
+ """
+ Return a node which performs CTCGreedyDecoderSeqLen.
+
+ :param data: The input 3D tensor. Shape: [batch_size, seq_length, num_classes]
+ :param sequence_length: Input 1D tensor with sequence length. Shape: [batch_size]
+ :param blank_index: Scalar or 1D tensor with specifies the class index to use for the blank class.
+ Optional parameter. Default value is num_classes-1.
+ :return: The new node which performs CTCGreedyDecoderSeqLen.
+
+ """
+def gather_elements(*args, **kwargs) -> openvino._pyopenvino.Node:
+ """
+ Return a node which performs GatherElements.
+
+ :param data: N-D tensor with data for gathering
+ :param indices: N-D tensor with indices by which data is gathered
+ :param axis: axis along which elements are gathered
+ :return: The new node which performs GatherElements
+
+ """
+def mvn(*args, **kwargs) -> openvino._pyopenvino.Node:
+ """
+ Return a node which performs MeanVarianceNormalization (MVN).
+
+ :param data: The node with data tensor.
+ :param axes: The node with axes to reduce on.
+ :param normalize_variance: Denotes whether to perform variance normalization.
+ :param eps: The number added to the variance to avoid division by zero
+ when normalizing the value. Scalar value.
+ :param eps_mode: how eps is applied (`inside_sqrt` or `outside_sqrt`)
+ :param name: Optional output node name.
+ :return: The new node performing a MVN operation on input tensor.
+
+ """
+NodeInput: typing._UnionGenericAlias # value = typing.Union[openvino._pyopenvino.Node, int, float, numpy.ndarray]
+NumericType: typing._UnionGenericAlias # value = typing.Union[type, numpy.dtype]
+TensorShape: typing._GenericAlias # value = typing.List[int]
+_get_node_factory_opset6: functools.partial # value = functools.partial(<function _get_node_factory at memory_address>, 'opset6')
+read_value: openvino.utils.decorators.MultiMethod # value = <openvino.utils.decorators.MultiMethod object>
diff --git a/src/bindings/python/src/openvino/opset7/__init__.pyi b/src/bindings/python/src/openvino/opset7/__init__.pyi
new file mode 100644
index 00000000000..7c91253af44
--- /dev/null
+++ b/src/bindings/python/src/openvino/opset7/__init__.pyi
@@ -0,0 +1,159 @@
+# type: ignore
+from __future__ import annotations
+from . import ops
+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 binary_convolution
+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_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 matmul
+from openvino.opset1.ops import maximum
+from openvino.opset1.ops import max_pool
+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 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 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 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 tile
+from openvino.opset1.ops import transpose
+from openvino.opset1.ops import unsqueeze
+from openvino.opset1.ops import variadic_split
+from openvino.opset2.ops import batch_to_space
+from openvino.opset2.ops import reorg_yolo
+from openvino.opset2.ops import roi_pooling
+from openvino.opset2.ops import space_to_batch
+from openvino.opset3.ops import broadcast
+from openvino.opset3.ops import bucketize
+from openvino.opset3.ops import cum_sum
+from openvino.opset3.ops import cum_sum as cumsum
+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.opset3.ops import gru_cell
+from openvino.opset3.ops import non_zero
+from openvino.opset3.ops import rnn_cell
+from openvino.opset3.ops import roi_align
+from openvino.opset3.ops import scatter_elements_update
+from openvino.opset3.ops import scatter_update
+from openvino.opset3.ops import shape_of
+from openvino.opset3.ops import shuffle_channels
+from openvino.opset3.ops import topk
+from openvino.opset4.ops import acosh
+from openvino.opset4.ops import asinh
+from openvino.opset4.ops import atanh
+from openvino.opset4.ops import ctc_loss
+from openvino.opset4.ops import hswish
+from openvino.opset4.ops import lstm_cell
+from openvino.opset4.ops import mish
+from openvino.opset4.ops import proposal
+from openvino.opset4.ops import reduce_l1
+from openvino.opset4.ops import reduce_l2
+from openvino.opset4.ops import scatter_nd_update
+from openvino.opset4.ops import softplus
+from openvino.opset4.ops import swish
+from openvino.opset5.ops import batch_norm_inference
+from openvino.opset5.ops import gather_nd
+from openvino.opset5.ops import gru_sequence
+from openvino.opset5.ops import hsigmoid
+from openvino.opset5.ops import log_softmax
+from openvino.opset5.ops import lstm_sequence
+from openvino.opset5.ops import non_max_suppression
+from openvino.opset5.ops import rnn_sequence
+from openvino.opset5.ops import round
+from openvino.opset6.ops import ctc_greedy_decoder_seq_len
+from openvino.opset6.ops import gather_elements
+from openvino.opset6.ops import mvn
+from openvino.opset7.ops import dft
+from openvino.opset7.ops import einsum
+from openvino.opset7.ops import gather
+from openvino.opset7.ops import gelu
+from openvino.opset7.ops import idft
+from openvino.opset7.ops import roll
+from openvino._pyopenvino.op import assign
+from openvino._pyopenvino.op import loop
+from openvino._pyopenvino.op import tensor_iterator
+import openvino.utils.decorators
+__all__ = ['abs', 'absolute', 'acos', 'acosh', 'add', 'asin', 'asinh', 'assign', 'atan', 'atanh', 'avg_pool', 'batch_norm_inference', 'batch_to_space', 'binary_convolution', 'broadcast', 'bucketize', 'ceil', 'ceiling', 'clamp', 'concat', 'constant', 'convert', 'convert_like', 'convolution', 'convolution_backprop_data', 'cos', 'cosh', 'ctc_greedy_decoder', 'ctc_greedy_decoder_seq_len', 'ctc_loss', 'cum_sum', 'cumsum', 'deformable_convolution', 'deformable_psroi_pooling', 'depth_to_space', 'detection_output', 'dft', 'divide', 'einsum', 'elu', 'embedding_bag_offsets_sum', 'embedding_bag_packed_sum', 'embedding_segments_sum', 'equal', 'erf', 'exp', 'extract_image_patches', 'fake_quantize', 'floor', 'floor_mod', 'gather', 'gather_elements', 'gather_nd', 'gather_tree', 'gelu', 'greater', 'greater_equal', 'grn', 'group_convolution', 'group_convolution_backprop_data', 'gru_cell', 'gru_sequence', 'hard_sigmoid', 'hsigmoid', 'hswish', 'idft', 'interpolate', 'less', 'less_equal', 'log', 'log_softmax', 'logical_and', 'logical_not', 'logical_or', 'logical_xor', 'loop', 'lrn', 'lstm_cell', 'lstm_sequence', 'matmul', 'max_pool', 'maximum', 'minimum', 'mish', 'mod', 'multiply', 'mvn', 'negative', 'non_max_suppression', 'non_zero', 'normalize_l2', 'not_equal', 'one_hot', 'ops', 'pad', 'parameter', 'power', 'prelu', 'prior_box', 'prior_box_clustered', 'proposal', 'psroi_pooling', 'range', 'read_value', 'reduce_l1', 'reduce_l2', 'reduce_logical_and', 'reduce_logical_or', 'reduce_max', 'reduce_mean', 'reduce_min', 'reduce_prod', 'reduce_sum', 'region_yolo', 'relu', 'reorg_yolo', 'reshape', 'result', 'reverse_sequence', 'rnn_cell', 'rnn_sequence', 'roi_align', 'roi_pooling', 'roll', 'round', 'scatter_elements_update', 'scatter_nd_update', 'scatter_update', 'select', 'selu', 'shape_of', 'shuffle_channels', 'sigmoid', 'sign', 'sin', 'sinh', 'softmax', 'softplus', 'space_to_batch', 'space_to_depth', 'split', 'sqrt', 'squared_difference', 'squeeze', 'strided_slice', 'subtract', 'swish', 'tan', 'tanh', 'tensor_iterator', 'tile', 'topk', 'transpose', 'unsqueeze', 'variadic_split']
+read_value: openvino.utils.decorators.MultiMethod # value = <openvino.utils.decorators.MultiMethod object>
diff --git a/src/bindings/python/src/openvino/opset7/ops.pyi b/src/bindings/python/src/openvino/opset7/ops.pyi
new file mode 100644
index 00000000000..43fe74c93e1
--- /dev/null
+++ b/src/bindings/python/src/openvino/opset7/ops.pyi
@@ -0,0 +1,101 @@
+# type: ignore
+"""
+Factory functions for all openvino ops.
+"""
+from functools import partial
+from __future__ import annotations
+from openvino._pyopenvino import Node
+from openvino._pyopenvino import Shape
+from openvino._pyopenvino.op import Constant
+from openvino._pyopenvino.op import Parameter
+from openvino.utils.decorators import binary_op
+from openvino.utils.decorators import nameable_op
+from openvino.utils.decorators import unary_op
+from openvino.utils.input_validation import assert_list_of_ints
+from openvino.utils.input_validation import check_valid_attributes
+from openvino.utils.input_validation import is_non_negative_value
+from openvino.utils.input_validation import is_positive_value
+from openvino.utils.node_factory import _get_node_factory
+from openvino.utils.node_factory import NodeFactory
+from openvino.utils.types import as_node
+from openvino.utils.types import as_nodes
+from openvino.utils.types import get_dtype
+from openvino.utils.types import get_element_type
+from openvino.utils.types import get_element_type_str
+from openvino.utils.types import make_constant_node
+import functools
+import numpy as np
+import openvino._pyopenvino
+import typing
+__all__ = ['Constant', 'Node', 'NodeFactory', 'NodeInput', 'NumericData', 'NumericType', 'Parameter', 'ScalarData', 'Shape', 'TensorShape', 'as_node', 'as_nodes', 'assert_list_of_ints', 'binary_op', 'check_valid_attributes', 'dft', 'einsum', 'gather', 'gelu', 'get_dtype', 'get_element_type', 'get_element_type_str', 'idft', 'is_non_negative_value', 'is_positive_value', 'make_constant_node', 'nameable_op', 'np', 'partial', 'roll', 'unary_op']
+def dft(data: typing.Union[openvino._pyopenvino.Node, int, float, numpy.ndarray], axes: typing.Union[openvino._pyopenvino.Node, int, float, numpy.ndarray], signal_size: typing.Union[openvino._pyopenvino.Node, int, float, numpy.ndarray, NoneType] = None, name: typing.Optional[str] = None) -> openvino._pyopenvino.Node:
+ """
+ Return a node which performs DFT operation.
+
+ :param data: Tensor with transformed data.
+ :param axes: Tensor with axes to transform.
+ :param signal_size: Tensor specifying signal size with respect to axes from the input 'axes'.
+ :param name: Optional output node name.
+ :return: The new node which performs DFT operation on the input data tensor.
+
+ """
+def einsum(*args, **kwargs) -> openvino._pyopenvino.Node:
+ """
+ Return a node which performs Einsum operation.
+
+ :param inputs: The list of input nodes
+ :param equation: Einsum equation
+ :param name: Optional output node name.
+ :return: The new node performing Einsum operation on the inputs
+
+ """
+def gather(*args, **kwargs) -> openvino._pyopenvino.Node:
+ """
+ Return a node which performs Gather.
+
+ :param data: N-D tensor with data for gathering
+ :param indices: N-D tensor with indices by which data is gathered
+ :param axis: axis along which elements are gathered
+ :param batch_dims: number of batch dimensions
+ :param name: Optional output node name.
+ :return: The new node which performs Gather
+
+ """
+def gelu(*args, **kwargs) -> openvino._pyopenvino.Node:
+ """
+ Return a node which performs Gelu activation function.
+
+ :param data: The node with data tensor.
+ :param approximation_mode: defines which approximation to use ('tanh' or 'erf')
+ :param name: Optional output node name.
+ :return: The new node performing a Gelu activation with the input tensor.
+
+ """
+def idft(*args, **kwargs) -> openvino._pyopenvino.Node:
+ """
+ Return a node which performs IDFT operation.
+
+ :param data: Tensor with transformed data.
+ :param axes: Tensor with axes to transform.
+ :param signal_size: Tensor specifying signal size with respect to axes from the input 'axes'.
+ :param name: Optional output node name.
+ :return: The new node which performs IDFT operation on the input data tensor.
+
+ """
+def roll(*args, **kwargs) -> openvino._pyopenvino.Node:
+ """
+ Return a node which performs Roll operation.
+
+ :param data: The node with data tensor.
+ :param shift: The node with the tensor with numbers of places by which elements are shifted.
+ :param axes: The node with the tensor with axes along which elements are shifted.
+ :param name: Optional output node name.
+ :return: The new node performing a Roll operation on the input tensor.
+
+ """
+NodeInput: typing._UnionGenericAlias # value = typing.Union[openvino._pyopenvino.Node, int, float, numpy.ndarray]
+NumericData: typing._UnionGenericAlias # value = typing.Union[int, float, numpy.ndarray]
+NumericType: typing._UnionGenericAlias # value = typing.Union[type, numpy.dtype]
+ScalarData: typing._UnionGenericAlias # value = typing.Union[int, float]
+TensorShape: typing._GenericAlias # value = typing.List[int]
+_get_node_factory_opset7: functools.partial # value = functools.partial(<function _get_node_factory at memory_address>, 'opset7')
diff --git a/src/bindings/python/src/openvino/opset8/__init__.pyi b/src/bindings/python/src/openvino/opset8/__init__.pyi
new file mode 100644
index 00000000000..2ae1c0d8ea4
--- /dev/null
+++ b/src/bindings/python/src/openvino/opset8/__init__.pyi
@@ -0,0 +1,170 @@
+# type: ignore
+from __future__ import annotations
+from . import ops
+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 binary_convolution
+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_psroi_pooling
+from openvino.opset1.ops import depth_to_space
+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_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 matmul
+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 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_clustered
+from openvino.opset1.ops import psroi_pooling
+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 sigmoid
+from openvino.opset1.ops import sign
+from openvino.opset1.ops import sin
+from openvino.opset1.ops import sinh
+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 tile
+from openvino.opset1.ops import transpose
+from openvino.opset1.ops import unsqueeze
+from openvino.opset1.ops import variadic_split
+from openvino.opset2.ops import batch_to_space
+from openvino.opset2.ops import reorg_yolo
+from openvino.opset2.ops import roi_pooling
+from openvino.opset2.ops import space_to_batch
+from openvino.opset3.ops import broadcast
+from openvino.opset3.ops import bucketize
+from openvino.opset3.ops import cum_sum
+from openvino.opset3.ops import cum_sum as cumsum
+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.opset3.ops import gru_cell
+from openvino.opset3.ops import non_zero
+from openvino.opset3.ops import rnn_cell
+from openvino.opset3.ops import roi_align
+from openvino.opset3.ops import scatter_elements_update
+from openvino.opset3.ops import scatter_update
+from openvino.opset3.ops import shape_of
+from openvino.opset3.ops import shuffle_channels
+from openvino.opset3.ops import topk
+from openvino.opset4.ops import acosh
+from openvino.opset4.ops import asinh
+from openvino.opset4.ops import atanh
+from openvino.opset4.ops import ctc_loss
+from openvino.opset4.ops import hswish
+from openvino.opset4.ops import lstm_cell
+from openvino.opset4.ops import mish
+from openvino.opset4.ops import proposal
+from openvino.opset4.ops import reduce_l1
+from openvino.opset4.ops import reduce_l2
+from openvino.opset4.ops import scatter_nd_update
+from openvino.opset4.ops import softplus
+from openvino.opset4.ops import swish
+from openvino.opset5.ops import batch_norm_inference
+from openvino.opset5.ops import gru_sequence
+from openvino.opset5.ops import hsigmoid
+from openvino.opset5.ops import log_softmax
+from openvino.opset5.ops import lstm_sequence
+from openvino.opset5.ops import non_max_suppression
+from openvino.opset5.ops import rnn_sequence
+from openvino.opset5.ops import round
+from openvino.opset6.ops import ctc_greedy_decoder_seq_len
+from openvino.opset6.ops import gather_elements
+from openvino.opset6.ops import mvn
+from openvino.opset7.ops import dft
+from openvino.opset7.ops import einsum
+from openvino.opset7.ops import gelu
+from openvino.opset7.ops import idft
+from openvino.opset7.ops import roll
+from openvino.opset8.ops import adaptive_avg_pool
+from openvino.opset8.ops import adaptive_max_pool
+from openvino.opset8.ops import deformable_convolution
+from openvino.opset8.ops import detection_output
+from openvino.opset8.ops import gather
+from openvino.opset8.ops import gather_nd
+from openvino.opset8.ops import i420_to_bgr
+from openvino.opset8.ops import i420_to_rgb
+from openvino.opset8.ops import matrix_nms
+from openvino.opset8.ops import max_pool
+from openvino.opset8.ops import multiclass_nms
+from openvino.opset8.ops import nv12_to_bgr
+from openvino.opset8.ops import nv12_to_rgb
+from openvino.opset8.ops import prior_box
+from openvino.opset8.ops import random_uniform
+from openvino.opset8.ops import slice
+from openvino.opset8.ops import softmax
+from openvino._pyopenvino.op import assign
+from openvino._pyopenvino.op import if_op
+from openvino._pyopenvino.op import loop
+from openvino._pyopenvino.op import tensor_iterator
+import openvino.utils.decorators
+__all__ = ['abs', 'absolute', 'acos', 'acosh', 'adaptive_avg_pool', 'adaptive_max_pool', 'add', 'asin', 'asinh', 'assign', 'atan', 'atanh', 'avg_pool', 'batch_norm_inference', 'batch_to_space', 'binary_convolution', 'broadcast', 'bucketize', 'ceil', 'ceiling', 'clamp', 'concat', 'constant', 'convert', 'convert_like', 'convolution', 'convolution_backprop_data', 'cos', 'cosh', 'ctc_greedy_decoder', 'ctc_greedy_decoder_seq_len', 'ctc_loss', 'cum_sum', 'cumsum', 'deformable_convolution', 'deformable_psroi_pooling', 'depth_to_space', 'detection_output', 'dft', 'divide', 'einsum', 'elu', 'embedding_bag_offsets_sum', 'embedding_bag_packed_sum', 'embedding_segments_sum', 'equal', 'erf', 'exp', 'extract_image_patches', 'fake_quantize', 'floor', 'floor_mod', 'gather', 'gather_elements', 'gather_nd', 'gather_tree', 'gelu', 'greater', 'greater_equal', 'grn', 'group_convolution', 'group_convolution_backprop_data', 'gru_cell', 'gru_sequence', 'hard_sigmoid', 'hsigmoid', 'hswish', 'i420_to_bgr', 'i420_to_rgb', 'idft', 'if_op', 'interpolate', 'less', 'less_equal', 'log', 'log_softmax', 'logical_and', 'logical_not', 'logical_or', 'logical_xor', 'loop', 'lrn', 'lstm_cell', 'lstm_sequence', 'matmul', 'matrix_nms', 'max_pool', 'maximum', 'minimum', 'mish', 'mod', 'multiclass_nms', 'multiply', 'mvn', 'negative', 'non_max_suppression', 'non_zero', 'normalize_l2', 'not_equal', 'nv12_to_bgr', 'nv12_to_rgb', 'one_hot', 'ops', 'pad', 'parameter', 'power', 'prelu', 'prior_box', 'prior_box_clustered', 'proposal', 'psroi_pooling', 'random_uniform', 'range', 'read_value', 'reduce_l1', 'reduce_l2', 'reduce_logical_and', 'reduce_logical_or', 'reduce_max', 'reduce_mean', 'reduce_min', 'reduce_prod', 'reduce_sum', 'region_yolo', 'relu', 'reorg_yolo', 'reshape', 'result', 'reverse_sequence', 'rnn_cell', 'rnn_sequence', 'roi_align', 'roi_pooling', 'roll', 'round', 'scatter_elements_update', 'scatter_nd_update', 'scatter_update', 'select', 'selu', 'shape_of', 'shuffle_channels', 'sigmoid', 'sign', 'sin', 'sinh', 'slice', 'softmax', 'softplus', 'space_to_batch', 'space_to_depth', 'split', 'sqrt', 'squared_difference', 'squeeze', 'strided_slice', 'subtract', 'swish', 'tan', 'tanh', 'tensor_iterator', 'tile', 'topk', 'transpose', 'unsqueeze', 'variadic_split']
+read_value: openvino.utils.decorators.MultiMethod # value = <openvino.utils.decorators.MultiMethod object>
diff --git a/src/bindings/python/src/openvino/opset8/ops.pyi b/src/bindings/python/src/openvino/opset8/ops.pyi
new file mode 100644
index 00000000000..4d951d6f9ca
--- /dev/null
+++ b/src/bindings/python/src/openvino/opset8/ops.pyi
@@ -0,0 +1,453 @@
+# type: ignore
+"""
+Factory functions for all openvino ops.
+"""
+from functools import partial
+from __future__ import annotations
+from openvino.exceptions import UserInputError
+from openvino._pyopenvino import Node
+from openvino._pyopenvino.op import Constant
+from openvino._pyopenvino.op import if_op
+from openvino._pyopenvino.op import Parameter
+from openvino.utils.decorators import nameable_op
+from openvino.utils.input_validation import check_valid_attributes
+from openvino.utils.input_validation import is_non_negative_value
+from openvino.utils.input_validation import is_positive_value
+from openvino.utils.node_factory import _get_node_factory
+from openvino.utils.types import as_node
+from openvino.utils.types import as_nodes
+import functools
+import numpy as np
+import openvino._pyopenvino
+import typing
+__all__ = ['Constant', 'Node', 'NodeInput', 'Parameter', 'TensorShape', 'UserInputError', 'adaptive_avg_pool', 'adaptive_max_pool', 'as_node', 'as_nodes', 'check_valid_attributes', 'deformable_convolution', 'detection_output', 'gather', 'gather_nd', 'i420_to_bgr', 'i420_to_rgb', 'if_op', 'is_non_negative_value', 'is_positive_value', 'matrix_nms', 'max_pool', 'multiclass_nms', 'nameable_op', 'np', 'nv12_to_bgr', 'nv12_to_rgb', 'partial', 'prior_box', 'random_uniform', 'slice', 'softmax']
+def adaptive_avg_pool(*args, **kwargs) -> openvino._pyopenvino.Node:
+ """
+ Return a node which performs AdaptiveAvgPool operation.
+
+ :param data: The list of input nodes
+ :param output_shape: the shape of spatial dimentions after operation
+ :param name: Optional output node name.
+ :return: The new node performing AdaptiveAvgPool operation on the data
+
+ """
+def adaptive_max_pool(*args, **kwargs) -> openvino._pyopenvino.Node:
+ """
+ Return a node which performs AdaptiveMaxPool operation.
+
+ :param data: The list of input nodes
+ :param output_shape: the shape of spatial dimentions after operation
+ :param index_element_type: Type of indices output.
+ :param name: Optional output node name.
+ :return: The new node performing AdaptiveMaxPool operation on the data
+
+ """
+def deformable_convolution(*args, **kwargs) -> openvino._pyopenvino.Node:
+ """
+ Return a node which performs deformable convolution operation.
+
+ :param data: The node providing data batch tensor.
+ :param offsets: The node providing offset tensor.
+ :param filters: The node providing filters tensor.
+ :param strides: The distance (in pixels) to slide the filter on the feature map over the axes.
+ :param pads_begin: The number of pixels to add to the beginning along each axis.
+ :param pads_end: The number of pixels to add to the end along each axis.
+ :param dilations: The distance in width and height between elements (weights) in the filter.
+ :param mask: The node providing modulation scalar (mask) tensor.
+ :param auto_pad: The type of padding. Range of values: explicit, same_upper, same_lower, valid.
+ :param group: The number of groups which both output and input should be split into.
+ :param deformable_group: The number of groups which deformable values and output should be split
+ into along the channel axis.
+ :param bilinear_interpolation_pad: The flag that determines the mode of bilinear interpolation
+ execution.
+ :param name: The optional new name for output node.
+ :return: New node performing deformable convolution operation.
+
+ """
+def detection_output(*args, **kwargs) -> openvino._pyopenvino.Node:
+ """
+ Generate the detection output using information on location and confidence predictions.
+
+ :param box_logits: The 2D input tensor with box logits.
+ :param class_preds: The 2D input tensor with class predictions.
+ :param proposals: The 3D input tensor with proposals.
+ :param attrs: The dictionary containing key, value pairs for attributes.
+ :param aux_class_preds: The 2D input tensor with additional class predictions information.
+ :param aux_box_preds: The 2D input tensor with additional box predictions information.
+ :param name: Optional name for the output node.
+ :return: Node representing DetectionOutput operation.
+ Available attributes are:
+
+ * background_label_id The background label id.
+ Range of values: integer value
+ Default value: 0
+ Required: no
+ * top_k Maximum number of results to be kept per batch after NMS step.
+ Range of values: integer value
+ Default value: -1
+ Required: no
+ * variance_encoded_in_target The flag that denotes if variance is encoded in target.
+ Range of values: {False, True}
+ Default value: False
+ Required: no
+ * keep_top_k Maximum number of bounding boxes per batch to be kept after NMS step.
+ Range of values: integer values
+ Default value: None
+ Required: yes
+ * code_type The type of coding method for bounding boxes.
+ Range of values: {'caffe.PriorBoxParameter.CENTER_SIZE',
+ 'caffe.PriorBoxParameter.CORNER'}
+
+ Default value: 'caffe.PriorBoxParameter.CORNER'
+ Required: no
+ * share_location The flag that denotes if bounding boxes are shared among different
+ classes.
+ Range of values: {True, False}
+ Default value: True
+ Required: no
+ * nms_threshold The threshold to be used in the NMS stage.
+ Range of values: floating point value
+ Default value: None
+ Required: yes
+ * confidence_threshold Specifies the minimum confidence threshold for detection boxes to be
+ considered.
+ Range of values: floating point value
+ Default value: 0
+ Required: no
+ * clip_after_nms The flag that denotes whether to perform clip bounding boxes after
+ non-maximum suppression or not.
+ Range of values: {True, False}
+ Default value: False
+ Required: no
+ * clip_before_nms The flag that denotes whether to perform clip bounding boxes before
+ non-maximum suppression or not.
+ Range of values: {True, False}
+ Default value: False
+ Required: no
+ * decrease_label_id The flag that denotes how to perform NMS.
+ Range of values: False - perform NMS like in Caffe*.
+ True - perform NMS like in MxNet*.
+
+ Default value: False
+ Required: no
+ * normalized The flag that denotes whether input tensors with boxes are normalized.
+ Range of values: {True, False}
+ Default value: False
+ Required: no
+ * input_height The input image height.
+ Range of values: positive integer number
+ Default value: 1
+ Required: no
+ * input_width The input image width.
+ Range of values: positive integer number
+ Default value: 1
+ Required: no
+ * objectness_score The threshold to sort out confidence predictions.
+ Range of values: non-negative float number
+ Default value: 0
+ Required: no
+
+ Example of attribute dictionary:
+
+ .. code-block:: python
+
+ # just required ones
+ attrs = {
+ 'keep_top_k': [1, 2, 3],
+ 'nms_threshold': 0.645,
+ }
+ attrs = {
+ 'keep_top_k': [1, 2, 3],
+ 'nms_threshold': 0.645,
+ 'normalized': True,
+ 'clip_before_nms': True,
+ 'input_height': [32],
+ 'input_width': [32],
+ }
+
+ Optional attributes which are absent from dictionary will be set with corresponding default.
+
+ """
+def gather(*args, **kwargs) -> openvino._pyopenvino.Node:
+ """
+ Return a node which performs Gather with support of negative indices.
+
+ :param data: N-D tensor with data for gathering
+ :param indices: N-D tensor with indices by which data is gathered. Negative indices
+ indicate reverse indexing from the end
+ :param axis: axis along which elements are gathered
+ :param batch_dims: number of batch dimensions
+ :param name: Optional output node name.
+ :return: The new node which performs Gather
+
+ """
+def gather_nd(*args, **kwargs) -> openvino._pyopenvino.Node:
+ """
+ Return a node which performs GatherND.
+
+ :param data: N-D tensor with data for gathering
+ :param indices: K-D tensor of tuples with indices by which data is gathered
+ :param batch_dims: Scalar value of batch dimensions
+ :return: The new node which performs GatherND
+
+ """
+def i420_to_bgr(*args, **kwargs) -> openvino._pyopenvino.Node:
+ """
+ Return a node which performs I420toBGR operation.
+
+ :param arg: The node providing single or Y plane data.
+ :param arg_u: The node providing U plane data. Required for separate planes.
+ :param arg_v: The node providing V plane data. Required for separate planes.
+ :param name: The optional name for the created output node.
+ :return: The new node performing I420toBGR operation.
+
+ """
+def i420_to_rgb(*args, **kwargs) -> openvino._pyopenvino.Node:
+ """
+ Return a node which performs I420toRGB operation.
+
+ :param arg: The node providing single or Y plane data.
+ :param arg_u: The node providing U plane data. Required for separate planes.
+ :param arg_v: The node providing V plane data. Required for separate planes.
+ :param name: The optional name for the created output node.
+ :return: The new node performing I420toRGB operation.
+
+ """
+def matrix_nms(*args, **kwargs) -> openvino._pyopenvino.Node:
+ """
+ Return a node which performs MatrixNms.
+
+ :param boxes: Tensor with box coordinates.
+ :param scores: Tensor with box scores.
+ :param sort_result_type: Specifies order of output elements, possible values:
+ 'class': sort selected boxes by class id (ascending)
+ 'score': sort selected boxes by score (descending)
+ 'none': do not guarantee the order.
+ :param sort_result_across_batch: Specifies whenever it is necessary to sort selected boxes
+ across batches or not
+ :param output_type: Specifies the output tensor type, possible values:
+ 'i64', 'i32'
+ :param score_threshold: Specifies minimum score to consider box for the processing
+ :param nms_top_k: Specifies maximum number of boxes to be selected per class, -1 meaning
+ to keep all boxes
+ :param keep_top_k: Specifies maximum number of boxes to be selected per batch element, -1
+ meaning to keep all boxes
+ :param background_class: Specifies the background class id, -1 meaning to keep all classes
+ :param decay_function: Specifies decay function used to decay scores, possible values:
+ 'gaussian', 'linear'
+ :param gaussian_sigma: Specifies gaussian_sigma parameter for gaussian decay_function
+ :param post_threshold: Specifies threshold to filter out boxes with low confidence score
+ after decaying
+ :param normalized: Specifies whether boxes are normalized or not
+ :param name: Optional output node name.
+ :return: The new node which performs MatrixNms
+
+ """
+def max_pool(*args, **kwargs) -> openvino._pyopenvino.Node:
+ """
+ Perform max pooling operation and return both values and indices of the selected elements.
+
+ :param data: The node providing input data.
+ :param strides: The distance (in pixels) to slide the filter on the feature map
+ over the axes.
+ :param dilations: The dilation of filter elements(distance between elements).
+ :param pads_begin: The number of pixels to add at the beginning along each axis.
+ :param pads_end: The number of pixels to add at the end along each axis.
+ :param kernel_shape: The pooling operation kernel shape.
+ :param rounding_type: Determines used rounding schema when computing output shape.
+ Acceptable values are: ['floor', 'ceil']. Defaults to 'floor'.
+ :param auto_pad: Determines how the padding is calculated. Acceptable values:
+ [None, 'same_upper', 'same_lower', 'valid']. Defaults to None.
+ :param index_element_type: The data type used for the indices output of this operator.
+ Defaults to i64.
+ :param axis: The first dimension in the data shape used to determine the maximum
+ returned index value. The value is the product of all dimensions
+ starting at the provided axis. Defaults to 0.
+ :param name: The optional name for the created output node.
+
+ :return: The new node performing max pooling operation.
+
+ """
+def multiclass_nms(*args, **kwargs) -> openvino._pyopenvino.Node:
+ """
+ Return a node which performs MulticlassNms.
+
+ :param boxes: Tensor with box coordinates.
+ :param scores: Tensor with box scores.
+ :param sort_result_type: Specifies order of output elements, possible values:
+ 'class': sort selected boxes by class id (ascending)
+ 'score': sort selected boxes by score (descending)
+ 'none': do not guarantee the order.
+ :param sort_result_across_batch: Specifies whenever it is necessary to sort selected boxes
+ across batches or not
+ :param output_type: Specifies the output tensor type, possible values:
+ 'i64', 'i32'
+ :param iou_threshold: Specifies intersection over union threshold
+ :param score_threshold: Specifies minimum score to consider box for the processing
+ :param nms_top_k: Specifies maximum number of boxes to be selected per class, -1 meaning
+ to keep all boxes
+ :param keep_top_k: Specifies maximum number of boxes to be selected per batch element, -1
+ meaning to keep all boxes
+ :param background_class: Specifies the background class id, -1 meaning to keep all classes
+ :param nms_eta: Specifies eta parameter for adpative NMS, in close range [0, 1.0]
+ :param normalized: Specifies whether boxes are normalized or not
+ :param name: Optional output node name.
+ :return: The new node which performs MuticlassNms
+
+ """
+def nv12_to_bgr(*args, **kwargs) -> openvino._pyopenvino.Node:
+ """
+ Return a node which performs NV12toBGR operation.
+
+ :param arg: The node providing single or Y plane data.
+ :param arg_uv: The node providing UV plane data. Required for separate planes.
+ :param name: The optional name for the created output node.
+ :return: The new node performing NV12toBGR operation.
+
+ """
+def nv12_to_rgb(*args, **kwargs) -> openvino._pyopenvino.Node:
+ """
+ Return a node which performs NV12toRGB operation.
+
+ :param arg: The node providing single or Y plane data.
+ :param arg_uv: The node providing UV plane data. Required for separate planes.
+ :param name: The optional name for the created output node.
+ :return: The new node performing NV12toRGB operation.
+
+ """
+def prior_box(*args, **kwargs) -> openvino._pyopenvino.Node:
+ """
+ Generate prior boxes of specified sizes and aspect ratios across all dimensions.
+
+ :param layer_shape: Shape of layer for which prior boxes are computed.
+ :param image_shape: Shape of image to which prior boxes are scaled.
+ :param attrs: The dictionary containing key, value pairs for attributes.
+ :param name: Optional name for the output node.
+ :return: Node representing prior box operation.
+
+ Available attributes are:
+ * min_size The minimum box size (in pixels).
+ Range of values: positive floating point numbers
+ Default value: []
+ Required: no
+
+ * max_size The maximum box size (in pixels).
+ Range of values: positive floating point numbers
+ Default value: []
+ Required: no
+ * aspect_ratio Aspect ratios of prior boxes.
+ Range of values: set of positive floating point numbers
+ Default value: []
+ Required: no
+ * flip The flag that denotes that each aspect_ratio is duplicated and flipped.
+ Range of values: {True, False}
+ Default value: False
+ Required: no
+ * clip The flag that denotes if each value in the output tensor should be clipped
+ to [0,1] interval.
+ Range of values: {True, False}
+ Default value: False
+ Required: no
+ * step The distance between box centers.
+ Range of values: floating point non-negative number
+ Default value: 0
+ Required: no
+ * offset This is a shift of box respectively to top left corner.
+ Range of values: floating point non-negative number
+ Default value: None
+ Required: yes
+ * variance The variance denotes a variance of adjusting bounding boxes. The attribute
+ could contain 0, 1 or 4 elements.
+ Range of values: floating point positive numbers
+ Default value: []
+ Required: no
+ * scale_all_sizes The flag that denotes type of inference.
+ Range of values: False - max_size is ignored
+ True - max_size is used
+
+ Default value: True
+ Required: no
+ * fixed_ratio This is an aspect ratio of a box.
+ Range of values: a list of positive floating-point numbers
+ Default value: None
+ Required: no
+ * fixed_size This is an initial box size (in pixels).
+ Range of values: a list of positive floating-point numbers
+ Default value: None
+ Required: no
+ * density This is the square root of the number of boxes of each type.
+ Range of values: a list of positive floating-point numbers
+ Default value: None
+ Required: no
+ * min_max_aspect_ratios_order The flag that denotes the order of output prior box.
+ Range of values: False - the output prior box is in order of
+ [min, aspect_ratios, max]
+
+ True - the output prior box is in order of
+ [min, max, aspect_ratios]
+
+ Default value: True
+ Required: no
+
+ Example of attribute dictionary:
+
+ .. code-block:: python
+
+ # just required ones
+ attrs = {
+ 'offset': 85,
+ }
+ attrs = {
+ 'offset': 85,
+ 'flip': True,
+ 'clip': True,
+ 'fixed_size': [32, 64, 128]
+ }
+
+ Optional attributes which are absent from dictionary will be set with corresponding default.
+
+ """
+def random_uniform(*args, **kwargs) -> openvino._pyopenvino.Node:
+ """
+ Return a node which generates sequence of random values from uniform distribution.
+
+ :param output_shape: Tensor with shape of the output tensor.
+ :param min_val: Tensor with the lower bound on the range of random values to generate.
+ :param max_val: Tensor with the upper bound on the range of random values to generate.
+ :param output_type: Specifies the output tensor type, possible values:
+ 'i64', 'i32', 'f64', 'f32', 'f16', 'bf16'.
+ :param global_seed: Specifies global seed value. Required to be a positive integer or 0.
+ :param op_seed: Specifies operational seed value. Required to be a positive integer or 0.
+ :param alignment: Specifies alignment of the randomly generated numbers to a given framework.
+ Possible values: 'tensorflow', 'pytorch'. Default is 'tensorflow'.
+ :param name: Optional output node name.
+
+ :return: The new node which performs generation of random values from uniform distribution.
+
+ """
+def slice(*args, **kwargs) -> openvino._pyopenvino.Node:
+ """
+ Return a node which generates Slice operation.
+
+ :param data: The node providing input data.
+ :param start: The node providing start indices (inclusively).
+ :param stop: The node providing stop indices (exclusively).
+ :param step: The node providing step values.
+ :param axes: The optional node providing axes to slice, default [0, 1, ..., len(start)-1].
+ :param name: The optional name for the created output node.
+ :return: The new node performing Slice operation.
+
+ """
+def softmax(*args, **kwargs) -> openvino._pyopenvino.Node:
+ """
+ Apply softmax operation on each element of input tensor.
+
+ :param data: The tensor providing input data.
+ :param axis: An axis along which Softmax should be calculated. Can be positive or negative.
+ :param name: Optional name for the node.
+ :return: The new node with softmax operation applied on each element.
+
+ """
+NodeInput: typing._UnionGenericAlias # value = typing.Union[openvino._pyopenvino.Node, int, float, numpy.ndarray]
+TensorShape: typing._GenericAlias # value = typing.List[int]
+_get_node_factory_opset8: functools.partial # value = functools.partial(<function _get_node_factory at memory_address>, 'opset8')
diff --git a/src/bindings/python/src/openvino/opset9/__init__.pyi b/src/bindings/python/src/openvino/opset9/__init__.pyi
new file mode 100644
index 00000000000..0a86825a751
--- /dev/null
+++ b/src/bindings/python/src/openvino/opset9/__init__.pyi
@@ -0,0 +1,176 @@
+# type: ignore
+from __future__ import annotations
+from . import ops
+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 binary_convolution
+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_psroi_pooling
+from openvino.opset1.ops import depth_to_space
+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_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 matmul
+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 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_clustered
+from openvino.opset1.ops import psroi_pooling
+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 sigmoid
+from openvino.opset1.ops import sign
+from openvino.opset1.ops import sin
+from openvino.opset1.ops import sinh
+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 tile
+from openvino.opset1.ops import transpose
+from openvino.opset1.ops import unsqueeze
+from openvino.opset1.ops import variadic_split
+from openvino.opset2.ops import batch_to_space
+from openvino.opset2.ops import reorg_yolo
+from openvino.opset2.ops import roi_pooling
+from openvino.opset2.ops import space_to_batch
+from openvino.opset3.ops import broadcast
+from openvino.opset3.ops import bucketize
+from openvino.opset3.ops import cum_sum
+from openvino.opset3.ops import cum_sum as cumsum
+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.opset3.ops import gru_cell
+from openvino.opset3.ops import non_zero
+from openvino.opset3.ops import rnn_cell
+from openvino.opset3.ops import scatter_elements_update
+from openvino.opset3.ops import scatter_update
+from openvino.opset3.ops import shape_of
+from openvino.opset3.ops import shuffle_channels
+from openvino.opset3.ops import topk
+from openvino.opset4.ops import acosh
+from openvino.opset4.ops import asinh
+from openvino.opset4.ops import atanh
+from openvino.opset4.ops import ctc_loss
+from openvino.opset4.ops import hswish
+from openvino.opset4.ops import lstm_cell
+from openvino.opset4.ops import mish
+from openvino.opset4.ops import proposal
+from openvino.opset4.ops import reduce_l1
+from openvino.opset4.ops import reduce_l2
+from openvino.opset4.ops import scatter_nd_update
+from openvino.opset4.ops import softplus
+from openvino.opset4.ops import swish
+from openvino.opset5.ops import batch_norm_inference
+from openvino.opset5.ops import gru_sequence
+from openvino.opset5.ops import hsigmoid
+from openvino.opset5.ops import log_softmax
+from openvino.opset5.ops import lstm_sequence
+from openvino.opset5.ops import rnn_sequence
+from openvino.opset5.ops import round
+from openvino.opset6.ops import ctc_greedy_decoder_seq_len
+from openvino.opset6.ops import gather_elements
+from openvino.opset6.ops import mvn
+from openvino.opset7.ops import dft
+from openvino.opset7.ops import einsum
+from openvino.opset7.ops import gelu
+from openvino.opset7.ops import idft
+from openvino.opset7.ops import roll
+from openvino.opset8.ops import adaptive_avg_pool
+from openvino.opset8.ops import adaptive_max_pool
+from openvino.opset8.ops import deformable_convolution
+from openvino.opset8.ops import detection_output
+from openvino.opset8.ops import gather
+from openvino.opset8.ops import gather_nd
+from openvino.opset8.ops import i420_to_bgr
+from openvino.opset8.ops import i420_to_rgb
+from openvino.opset8.ops import matrix_nms
+from openvino.opset8.ops import max_pool
+from openvino.opset8.ops import nv12_to_bgr
+from openvino.opset8.ops import nv12_to_rgb
+from openvino.opset8.ops import prior_box
+from openvino.opset8.ops import random_uniform
+from openvino.opset8.ops import slice
+from openvino.opset8.ops import softmax
+from openvino.opset9.ops import eye
+from openvino.opset9.ops import generate_proposals
+from openvino.opset9.ops import grid_sample
+from openvino.opset9.ops import irdft
+from openvino.opset9.ops import multiclass_nms
+from openvino.opset9.ops import non_max_suppression
+from openvino.opset9.ops import rdft
+from openvino.opset9.ops import roi_align
+from openvino.opset9.ops import softsign
+from openvino._pyopenvino.op import assign
+from openvino._pyopenvino.op import if_op
+from openvino._pyopenvino.op import loop
+from openvino._pyopenvino.op import tensor_iterator
+import openvino.utils.decorators
+__all__ = ['abs', 'absolute', 'acos', 'acosh', 'adaptive_avg_pool', 'adaptive_max_pool', 'add', 'asin', 'asinh', 'assign', 'atan', 'atanh', 'avg_pool', 'batch_norm_inference', 'batch_to_space', 'binary_convolution', 'broadcast', 'bucketize', 'ceil', 'ceiling', 'clamp', 'concat', 'constant', 'convert', 'convert_like', 'convolution', 'convolution_backprop_data', 'cos', 'cosh', 'ctc_greedy_decoder', 'ctc_greedy_decoder_seq_len', 'ctc_loss', 'cum_sum', 'cumsum', 'deformable_convolution', 'deformable_psroi_pooling', 'depth_to_space', 'detection_output', 'dft', 'divide', 'einsum', 'elu', 'embedding_bag_offsets_sum', 'embedding_bag_packed_sum', 'embedding_segments_sum', 'equal', 'erf', 'exp', 'extract_image_patches', 'eye', 'fake_quantize', 'floor', 'floor_mod', 'gather', 'gather_elements', 'gather_nd', 'gather_tree', 'gelu', 'generate_proposals', 'greater', 'greater_equal', 'grid_sample', 'grn', 'group_convolution', 'group_convolution_backprop_data', 'gru_cell', 'gru_sequence', 'hard_sigmoid', 'hsigmoid', 'hswish', 'i420_to_bgr', 'i420_to_rgb', 'idft', 'if_op', 'interpolate', 'irdft', 'less', 'less_equal', 'log', 'log_softmax', 'logical_and', 'logical_not', 'logical_or', 'logical_xor', 'loop', 'lrn', 'lstm_cell', 'lstm_sequence', 'matmul', 'matrix_nms', 'max_pool', 'maximum', 'minimum', 'mish', 'mod', 'multiclass_nms', 'multiply', 'mvn', 'negative', 'non_max_suppression', 'non_zero', 'normalize_l2', 'not_equal', 'nv12_to_bgr', 'nv12_to_rgb', 'one_hot', 'ops', 'pad', 'parameter', 'power', 'prelu', 'prior_box', 'prior_box_clustered', 'proposal', 'psroi_pooling', 'random_uniform', 'range', 'rdft', 'read_value', 'reduce_l1', 'reduce_l2', 'reduce_logical_and', 'reduce_logical_or', 'reduce_max', 'reduce_mean', 'reduce_min', 'reduce_prod', 'reduce_sum', 'region_yolo', 'relu', 'reorg_yolo', 'reshape', 'result', 'reverse_sequence', 'rnn_cell', 'rnn_sequence', 'roi_align', 'roi_pooling', 'roll', 'round', 'scatter_elements_update', 'scatter_nd_update', 'scatter_update', 'select', 'selu', 'shape_of', 'shuffle_channels', 'sigmoid', 'sign', 'sin', 'sinh', 'slice', 'softmax', 'softplus', 'softsign', 'space_to_batch', 'space_to_depth', 'split', 'sqrt', 'squared_difference', 'squeeze', 'strided_slice', 'subtract', 'swish', 'tan', 'tanh', 'tensor_iterator', 'tile', 'topk', 'transpose', 'unsqueeze', 'variadic_split']
+read_value: openvino.utils.decorators.MultiMethod # value = <openvino.utils.decorators.MultiMethod object>
diff --git a/src/bindings/python/src/openvino/opset9/ops.pyi b/src/bindings/python/src/openvino/opset9/ops.pyi
new file mode 100644
index 00000000000..f6013d4a778
--- /dev/null
+++ b/src/bindings/python/src/openvino/opset9/ops.pyi
@@ -0,0 +1,183 @@
+# type: ignore
+"""
+Factory functions for all openvino ops.
+"""
+from functools import partial
+from __future__ import annotations
+from openvino._pyopenvino import Node
+from openvino.utils.decorators import nameable_op
+from openvino.utils.node_factory import _get_node_factory
+from openvino.utils.types import as_node
+from openvino.utils.types import as_nodes
+from openvino.utils.types import make_constant_node
+import functools
+import numpy as np
+import openvino._pyopenvino
+import typing
+__all__ = ['Node', 'NodeInput', 'as_node', 'as_nodes', 'eye', 'generate_proposals', 'grid_sample', 'irdft', 'make_constant_node', 'multiclass_nms', 'nameable_op', 'non_max_suppression', 'np', 'partial', 'rdft', 'roi_align', 'softsign']
+def eye(*args, **kwargs) -> openvino._pyopenvino.Node:
+ """
+ Return a node which performs eye operation.
+
+ :param num_rows: The node providing row number tensor.
+ :param num_columns: The node providing column number tensor.
+ :param diagonal_index: The node providing the index of the diagonal to be populated.
+ :param output_type: Specifies the output tensor type, supports any numeric types.
+ :param batch_shape: The node providing the leading batch dimensions of output shape. Optionally.
+ :param name: The optional new name for output node.
+ :return: New node performing deformable convolution operation.
+
+ """
+def generate_proposals(*args, **kwargs) -> openvino._pyopenvino.Node:
+ """
+ Return a node which performs GenerateProposals operation.
+
+ :param im_info: Input with image info.
+ :param anchors: Input anchors.
+ :param deltas: Input deltas.
+ :param scores: Input scores.
+ :param min_size: Specifies minimum box width and height.
+ :param nms_threshold: Specifies threshold to be used in the NMS stage.
+ :param pre_nms_count: Specifies number of top-n proposals before NMS.
+ :param post_nms_count: Specifies number of top-n proposals after NMS.
+ :param normalized: Specifies whether proposal bboxes are normalized or not. Optional attribute, default value is `True`.
+ :param nms_eta: Specifies eta parameter for adaptive NMS., must be in range `[0.0, 1.0]`. Optional attribute, default value is `1.0`.
+ :param roi_num_type: Specifies the element type of the third output `rpnroisnum`. Optional attribute, range of values: `i64` (default) or `i32`.
+ :param name: The optional name for the output node.
+ :return: New node performing GenerateProposals operation.
+
+ """
+def grid_sample(data: typing.Union[openvino._pyopenvino.Node, int, float, numpy.ndarray], grid: typing.Union[openvino._pyopenvino.Node, int, float, numpy.ndarray], attributes: dict, name: typing.Optional[str] = None) -> openvino._pyopenvino.Node:
+ """
+ Return a node which performs GridSample operation.
+
+ :param data: The input image.
+ :param grid: Grid values (normalized input coordinates).
+ :param attributes: A dictionary containing GridSample's attributes.
+ :param name: Optional name of the node.
+
+ Available attributes:
+
+ * align_corners A flag which specifies whether to align the grid extrema values
+ with the borders or center points of the input tensor's border pixels.
+ Range of values: true, false
+ Default value: false
+ Required: no
+ * mode Specifies the type of interpolation.
+ Range of values: bilinear, bicubic, nearest
+ Default value: bilinear
+ Required: no
+ * padding_mode Specifies how the out-of-bounds coordinates should be handled.
+ Range of values: zeros, border, reflection
+ Default value: zeros
+ Required: no
+
+ :return: A new GridSample node.
+
+ """
+def irdft(*args, **kwargs) -> openvino._pyopenvino.Node:
+ """
+ Return a node which performs IRDFT operation.
+
+ :param data: Tensor with data.
+ :param axes: Tensor with axes to transform.
+ :param signal_size: Optional tensor specifying signal size with respect to axes from the input 'axes'.
+ :param name: Optional output node name.
+ :return: The new node which performs IRDFT operation on the input data tensor.
+
+ """
+def multiclass_nms(*args, **kwargs) -> openvino._pyopenvino.Node:
+ """
+ Return a node which performs MulticlassNms.
+
+ :param boxes: Tensor with box coordinates.
+ :param scores: Tensor with box scores.
+ :param roisnum: Tensor with roisnum. Specifies the number of rois in each image. Required when
+ 'scores' is a 2-dimensional tensor.
+ :param sort_result_type: Specifies order of output elements, possible values:
+ 'class': sort selected boxes by class id (ascending)
+ 'score': sort selected boxes by score (descending)
+ 'none': do not guarantee the order.
+ :param sort_result_across_batch: Specifies whenever it is necessary to sort selected boxes
+ across batches or not
+ :param output_type: Specifies the output tensor type, possible values:
+ 'i64', 'i32'
+ :param iou_threshold: Specifies intersection over union threshold
+ :param score_threshold: Specifies minimum score to consider box for the processing
+ :param nms_top_k: Specifies maximum number of boxes to be selected per class, -1 meaning
+ to keep all boxes
+ :param keep_top_k: Specifies maximum number of boxes to be selected per batch element, -1
+ meaning to keep all boxes
+ :param background_class: Specifies the background class id, -1 meaning to keep all classes
+ :param nms_eta: Specifies eta parameter for adpative NMS, in close range [0, 1.0]
+ :param normalized: Specifies whether boxes are normalized or not
+ :param name: The optional name for the output node
+ :return: The new node which performs MuticlassNms
+
+ """
+def non_max_suppression(*args, **kwargs) -> openvino._pyopenvino.Node:
+ """
+ Return a node which performs NonMaxSuppression.
+
+ :param boxes: Tensor with box coordinates.
+ :param scores: Tensor with box scores.
+ :param max_output_boxes_per_class: Tensor Specifying maximum number of boxes
+ to be selected per class.
+ :param iou_threshold: Tensor specifying intersection over union threshold
+ :param score_threshold: Tensor specifying minimum score to consider box for the processing.
+ :param soft_nms_sigma: Tensor specifying the sigma parameter for Soft-NMS.
+ :param box_encoding: Format of boxes data encoding.
+ :param sort_result_descending: Flag that specifies whenever it is necessary to sort selected
+ boxes across batches or not.
+ :param output_type: Output element type.
+ :return: The new node which performs NonMaxSuppression
+
+ """
+def rdft(*args, **kwargs) -> openvino._pyopenvino.Node:
+ """
+ Return a node which performs RDFT operation.
+
+ :param data: Tensor with data.
+ :param axes: Tensor with axes to transform.
+ :param signal_size: Optional tensor specifying signal size with respect to axes from the input 'axes'.
+ :param name: Optional output node name.
+ :return: The new node which performs RDFT operation on the input data tensor.
+
+ """
+def roi_align(data: typing.Union[openvino._pyopenvino.Node, int, float, numpy.ndarray], rois: typing.Union[openvino._pyopenvino.Node, int, float, numpy.ndarray], batch_indices: typing.Union[openvino._pyopenvino.Node, int, float, numpy.ndarray], pooled_h: int, pooled_w: int, sampling_ratio: int, spatial_scale: float, mode: str, aligned_mode: typing.Optional[str] = 'asymmetric', name: typing.Optional[str] = None) -> openvino._pyopenvino.Node:
+ """
+ Return a node which performs ROIAlign operation.
+
+ :param data: Input data.
+ :param rois: RoIs (Regions of Interest) to pool over.
+ :param batch_indices: Tensor with each element denoting the index of
+ the corresponding image in the batch.
+ :param pooled_h: Height of the ROI output feature map.
+ :param pooled_w: Width of the ROI output feature map.
+ :param sampling_ratio: Number of bins over height and width to use to calculate
+ each output feature map element.
+ :param spatial_scale: Multiplicative spatial scale factor to translate ROI coordinates.
+ :param mode: Method to perform pooling to produce output feature map elements. Avaiable modes are:
+ - 'max' - maximum pooling
+ - 'avg' - average pooling
+ :param aligned_mode: Specifies how to transform the coordinate in original tensor to the resized tensor.
+ Mode 'asymmetric' is the default value. Optional. Avaiable aligned modes are:
+ - 'asymmetric'
+ - 'half_pixel_for_nn'
+ - 'half_pixel'
+ :param name: The optional name for the output node
+
+ :return: The new node which performs ROIAlign
+
+ """
+def softsign(node: typing.Union[openvino._pyopenvino.Node, int, float, numpy.ndarray], name: typing.Optional[str] = None) -> openvino._pyopenvino.Node:
+ """
+ Apply SoftSign operation on the input node element-wise.
+
+ :param node: One of: input node, array or scalar.
+ :param name: The optional name for the output node.
+ :return: New node with SoftSign operation applied on each element of it.
+
+ """
+NodeInput: typing._UnionGenericAlias # value = typing.Union[openvino._pyopenvino.Node, int, float, numpy.ndarray]
+_get_node_factory_opset9: functools.partial # value = functools.partial(<function _get_node_factory at memory_address>, 'opset9')
diff --git a/src/bindings/python/src/openvino/package_utils.pyi b/src/bindings/python/src/openvino/package_utils.pyi
new file mode 100644
index 00000000000..efe9ff5791d
--- /dev/null
+++ b/src/bindings/python/src/openvino/package_utils.pyi
@@ -0,0 +1,52 @@
+# type: ignore
+from builtins import module as ModuleType
+from functools import wraps
+from __future__ import annotations
+from pathlib import Path
+from typing import Any
+import importlib as importlib
+import os as os
+import sys as sys
+import typing
+__all__ = ['Any', 'LazyLoader', 'ModuleType', 'Path', 'classproperty', 'deprecated', 'deprecatedclassproperty', 'get_cmake_path', 'importlib', 'os', 'sys', 'wraps']
+class LazyLoader:
+ """
+ A class to lazily load a module, importing it only when an attribute is accessed.
+ """
+ def __getattr__(self, item: str) -> typing.Any:
+ ...
+ def __init__(self, module_name: str):
+ ...
+ def __repr__(self) -> str:
+ ...
+ def _load_module(self) -> None:
+ ...
+class _ClassPropertyDescriptor:
+ def __get__(self, obj: typing.Any, cls: typing.Any = None) -> typing.Any:
+ ...
+ def __init__(self, fget: typing.Callable):
+ ...
+def _add_openvino_libs_to_search_path() -> None:
+ """
+ Add OpenVINO libraries to the DLL search path on Windows.
+ """
+def classproperty(func: typing.Any) -> _ClassPropertyDescriptor:
+ ...
+def deprecated(name: typing.Any = None, version: str = '', message: str = '', stacklevel: int = 2) -> typing.Callable[..., typing.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 deprecatedclassproperty(name: typing.Any = None, version: str = '', message: str = '', stacklevel: int = 2) -> typing.Callable[[typing.Any], openvino.package_utils._ClassPropertyDescriptor]:
+ ...
+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
+
+ """
diff --git a/src/bindings/python/src/openvino/preprocess.pyi b/src/bindings/python/src/openvino/preprocess.pyi
new file mode 100644
index 00000000000..ee905df57b2
--- /dev/null
+++ b/src/bindings/python/src/openvino/preprocess.pyi
@@ -0,0 +1,22 @@
+# type: ignore
+"""
+
+Package: openvino
+Low level wrappers for the PrePostProcessing C++ API.
+"""
+from __future__ import annotations
+from openvino._pyopenvino import get_version
+from openvino._pyopenvino.preprocess import ColorFormat
+from openvino._pyopenvino.preprocess import InputInfo
+from openvino._pyopenvino.preprocess import InputModelInfo
+from openvino._pyopenvino.preprocess import InputTensorInfo
+from openvino._pyopenvino.preprocess import OutputInfo
+from openvino._pyopenvino.preprocess import OutputModelInfo
+from openvino._pyopenvino.preprocess import OutputTensorInfo
+from openvino._pyopenvino.preprocess import PaddingMode
+from openvino._pyopenvino.preprocess import PostProcessSteps
+from openvino._pyopenvino.preprocess import PrePostProcessor
+from openvino._pyopenvino.preprocess import PreProcessSteps
+from openvino._pyopenvino.preprocess import ResizeAlgorithm
+__all__ = ['ColorFormat', 'InputInfo', 'InputModelInfo', 'InputTensorInfo', 'OutputInfo', 'OutputModelInfo', 'OutputTensorInfo', 'PaddingMode', 'PostProcessSteps', 'PrePostProcessor', 'PreProcessSteps', 'ResizeAlgorithm', 'get_version']
+__version__: str = 'version_string'
diff --git a/src/bindings/python/src/openvino/preprocess/torchvision/preprocess_converter.py b/src/bindings/python/src/openvino/preprocess/torchvision/preprocess_converter.py
index c44bc2035e5..0273c9d552f 100644
--- a/src/bindings/python/src/openvino/preprocess/torchvision/preprocess_converter.py
+++ b/src/bindings/python/src/openvino/preprocess/torchvision/preprocess_converter.py
@@ -5,20 +5,20 @@
from typing import Callable, Any, Union
import logging
-import openvino as ov
+from openvino import Model
class PreprocessConverter():
- def __init__(self, model: ov.Model):
+ def __init__(self, model: Model):
self._model = model
@staticmethod
- def from_torchvision(model: ov.Model, transform: Callable, input_example: Any,
- input_name: Union[str, None] = None) -> ov.Model:
+ def from_torchvision(model: Model, transform: Callable, input_example: Any,
+ input_name: Union[str, None] = None) -> Model:
"""Embed torchvision preprocessing in an OpenVINO model.
Arguments:
- model (ov.Model):
+ model (Model):
Result name
transform (Callable):
torchvision transform to convert
@@ -30,7 +30,7 @@ class PreprocessConverter():
Not needed if the model has one input.
Returns:
- ov.Mode: OpenVINO Model object with embedded preprocessing
+ Model: OpenVINO Model object with embedded preprocessing
Example:
>>> model = PreprocessorConvertor.from_torchvision(model, "input", transform, input_example)
"""
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 584dbf33ac9..44a80bd48b2 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 @@ from torchvision.transforms import InterpolationMode
import openvino as ov
import openvino.opset11 as ops
-from openvino import Layout, Type
+from openvino import Layout, Type, Output, Model
from openvino.utils.decorators import custom_preprocess_function
from openvino.preprocess import PrePostProcessor, ResizeAlgorithm, ColorFormat
@@ -166,7 +166,7 @@ class _(TransformConverterBase):
input_shape[layout.get_index_by_name("C")] = transform.num_output_channels
@custom_preprocess_function
- def broadcast_node(output: ov.Output) -> Callable:
+ def broadcast_node(output: Output) -> Callable: # type: ignore[name-defined]
return ops.broadcast(
data=output,
target_shape=input_shape,
@@ -222,7 +222,7 @@ class _(TransformConverterBase):
pads_end[layout.get_index_by_name("W")] = torch_padding[2]
@custom_preprocess_function
- def pad_node(output: ov.Output) -> Callable:
+ def pad_node(output: Output) -> Callable:
return ops.pad(
output,
pad_mode=pad_mode,
@@ -315,7 +315,7 @@ class _(TransformConverterBase):
meta["image_dimensions"] = (target_h, target_w)
-def _from_torchvision(model: ov.Model, transform: Callable, input_example: Any, input_name: Union[str, None] = None) -> ov.Model:
+def _from_torchvision(model: Model, transform: Callable, input_example: Any, input_name: Union[str, None] = None) -> Model:
if input_name is not None:
input_idx = next((i for i, p in enumerate(model.get_parameters()) if p.get_friendly_name() == input_name), None)
diff --git a/src/bindings/python/src/openvino/properties/__init__.pyi b/src/bindings/python/src/openvino/properties/__init__.pyi
new file mode 100644
index 00000000000..1a832c08427
--- /dev/null
+++ b/src/bindings/python/src/openvino/properties/__init__.pyi
@@ -0,0 +1,15 @@
+# type: ignore
+from __future__ import annotations
+from . import device
+from . import hint
+from . import intel_auto
+from . import intel_cpu
+from . import intel_gpu
+from . import log
+from . import _properties
+from . import streams
+from openvino.properties._properties import __make_properties
+from openvino._pyopenvino import properties as __properties
+from openvino._pyopenvino.properties import CacheMode
+from openvino._pyopenvino.properties import WorkloadType
+__all__ = ['CacheMode', 'WorkloadType', 'device', 'hint', 'intel_auto', 'intel_cpu', 'intel_gpu', 'log', 'streams']
diff --git a/src/bindings/python/src/openvino/properties/_properties.pyi b/src/bindings/python/src/openvino/properties/_properties.pyi
new file mode 100644
index 00000000000..47a889f0952
--- /dev/null
+++ b/src/bindings/python/src/openvino/properties/_properties.pyi
@@ -0,0 +1,33 @@
+# type: ignore
+from builtins import builtin_function_or_method as BuiltinFunctionType
+from builtins import module as ModuleType
+from __future__ import annotations
+from typing import Any
+import sys as sys
+import typing
+__all__ = ['Any', 'BuiltinFunctionType', 'ModuleType', 'Property', 'sys']
+class Property(str):
+ """
+ This class allows to make a string object callable. Call returns underlying string's data.
+ """
+ @classmethod
+ def __new__(cls, prop: typing.Callable[..., typing.Any]):
+ ...
+ def __call__(self, *args: typing.Any) -> typing.Callable[..., typing.Any]:
+ ...
+def __append_property_to_module(func: typing.Callable[..., typing.Any], target_module_name: str) -> None:
+ """
+ Modifies the target module's __getattr__ method to expose a python property wrapper by the function's name.
+
+ :param func: the function which will be transformed to behave as python property.
+ :param target_module_name: the name of the module to which properties are added.
+
+ """
+def __make_properties(source_module_of_properties: module, target_module_name: str) -> None:
+ """
+ Makes python properties in target module from functions found in the source module.
+
+ :param source_module_of_properties: the source module from which functions should be taken.
+ :param target_module_name: the name of the module to which properties are added.
+
+ """
diff --git a/src/bindings/python/src/openvino/properties/device.pyi b/src/bindings/python/src/openvino/properties/device.pyi
new file mode 100644
index 00000000000..97e403c1634
--- /dev/null
+++ b/src/bindings/python/src/openvino/properties/device.pyi
@@ -0,0 +1,7 @@
+# type: ignore
+from __future__ import annotations
+from openvino.properties._properties import __make_properties
+from openvino._pyopenvino.properties.device import Capability
+from openvino._pyopenvino.properties.device import Type
+from openvino._pyopenvino.properties import device as __device
+__all__ = ['Capability', 'Type']
diff --git a/src/bindings/python/src/openvino/properties/hint.pyi b/src/bindings/python/src/openvino/properties/hint.pyi
new file mode 100644
index 00000000000..901da24584d
--- /dev/null
+++ b/src/bindings/python/src/openvino/properties/hint.pyi
@@ -0,0 +1,10 @@
+# type: ignore
+from __future__ import annotations
+from openvino.properties._properties import __make_properties
+from openvino._pyopenvino.properties.hint import ExecutionMode
+from openvino._pyopenvino.properties.hint import ModelDistributionPolicy
+from openvino._pyopenvino.properties.hint import PerformanceMode
+from openvino._pyopenvino.properties.hint import Priority
+from openvino._pyopenvino.properties.hint import SchedulingCoreType
+from openvino._pyopenvino.properties import hint as __hint
+__all__ = ['ExecutionMode', 'ModelDistributionPolicy', 'PerformanceMode', 'Priority', 'SchedulingCoreType']
diff --git a/src/bindings/python/src/openvino/properties/intel_auto.pyi b/src/bindings/python/src/openvino/properties/intel_auto.pyi
new file mode 100644
index 00000000000..8f4af763938
--- /dev/null
+++ b/src/bindings/python/src/openvino/properties/intel_auto.pyi
@@ -0,0 +1,6 @@
+# type: ignore
+from __future__ import annotations
+from openvino.properties._properties import __make_properties
+from openvino._pyopenvino.properties import intel_auto as __intel_auto
+from openvino._pyopenvino.properties.intel_auto import SchedulePolicy
+__all__ = ['SchedulePolicy']
diff --git a/src/bindings/python/src/openvino/properties/intel_cpu.pyi b/src/bindings/python/src/openvino/properties/intel_cpu.pyi
new file mode 100644
index 00000000000..14bdf93960b
--- /dev/null
+++ b/src/bindings/python/src/openvino/properties/intel_cpu.pyi
@@ -0,0 +1,5 @@
+# type: ignore
+from __future__ import annotations
+from openvino.properties._properties import __make_properties
+from openvino._pyopenvino.properties import intel_cpu as __intel_cpu
+__all__ = list()
diff --git a/src/bindings/python/src/openvino/properties/intel_gpu.pyi b/src/bindings/python/src/openvino/properties/intel_gpu.pyi
new file mode 100644
index 00000000000..93253b9968f
--- /dev/null
+++ b/src/bindings/python/src/openvino/properties/intel_gpu.pyi
@@ -0,0 +1,7 @@
+# type: ignore
+from __future__ import annotations
+from openvino.properties._properties import __make_properties
+from openvino._pyopenvino.properties import intel_gpu as __intel_gpu
+from openvino._pyopenvino.properties.intel_gpu import CapabilityGPU
+from openvino._pyopenvino.properties.intel_gpu import MemoryType
+__all__ = ['CapabilityGPU', 'MemoryType']
diff --git a/src/bindings/python/src/openvino/properties/log.pyi b/src/bindings/python/src/openvino/properties/log.pyi
new file mode 100644
index 00000000000..95caa16ae90
--- /dev/null
+++ b/src/bindings/python/src/openvino/properties/log.pyi
@@ -0,0 +1,6 @@
+# type: ignore
+from __future__ import annotations
+from openvino.properties._properties import __make_properties
+from openvino._pyopenvino.properties import log as __log
+from openvino._pyopenvino.properties.log import Level
+__all__ = ['Level']
diff --git a/src/bindings/python/src/openvino/properties/streams.pyi b/src/bindings/python/src/openvino/properties/streams.pyi
new file mode 100644
index 00000000000..6079e8d225f
--- /dev/null
+++ b/src/bindings/python/src/openvino/properties/streams.pyi
@@ -0,0 +1,6 @@
+# type: ignore
+from __future__ import annotations
+from openvino.properties._properties import __make_properties
+from openvino._pyopenvino.properties import streams as __streams
+from openvino._pyopenvino.properties.streams import Num
+__all__ = ['Num']
diff --git a/src/bindings/python/src/openvino/tools/__init__.pyi b/src/bindings/python/src/openvino/tools/__init__.pyi
new file mode 100644
index 00000000000..de55f86490b
--- /dev/null
+++ b/src/bindings/python/src/openvino/tools/__init__.pyi
@@ -0,0 +1,4 @@
+# type: ignore
+from __future__ import annotations
+from . import ovc
+__all__ = ['ovc']
diff --git a/src/bindings/python/src/openvino/tools/ovc/__init__.pyi b/src/bindings/python/src/openvino/tools/ovc/__init__.pyi
new file mode 100644
index 00000000000..6572caca1d9
--- /dev/null
+++ b/src/bindings/python/src/openvino/tools/ovc/__init__.pyi
@@ -0,0 +1,26 @@
+# type: ignore
+from __future__ import annotations
+from . import cli_parser
+from . import convert
+from . import convert_impl
+from . import error
+from . import get_ov_update_message
+from . import help
+from importlib import metadata as importlib_metadata
+from . import logger
+from . import moc_frontend
+from . import telemetry_params
+from . import telemetry_utils
+from . import utils
+from . import version
+from openvino._pyopenvino import get_version as get_rt_version
+from openvino.tools.ovc.convert import convert_model
+from openvino.tools.ovc.telemetry_utils import init_ovc_telemetry
+from openvino.tools.ovc.telemetry_utils import is_keras3
+from openvino.tools.ovc.telemetry_utils import is_optimum
+from openvino.tools.ovc.telemetry_utils import is_torch_compile
+import openvino_telemetry.main
+import sys as sys
+__all__ = ['cli_parser', 'convert', 'convert_impl', 'convert_model', 'error', 'get_ov_update_message', 'get_rt_version', 'help', 'importlib_metadata', 'init_ovc_telemetry', 'is_keras3', 'is_optimum', 'is_torch_compile', 'logger', 'moc_frontend', 'optimum_version', 'sys', 'telemetry', 'telemetry_params', 'telemetry_utils', 'utils', 'version']
+optimum_version = None
+telemetry: openvino_telemetry.main.Telemetry # value = <openvino_telemetry.main.Telemetry object>
diff --git a/src/bindings/python/src/openvino/tools/ovc/cli_parser.pyi b/src/bindings/python/src/openvino/tools/ovc/cli_parser.pyi
new file mode 100644
index 00000000000..b766d706abd
--- /dev/null
+++ b/src/bindings/python/src/openvino/tools/ovc/cli_parser.pyi
@@ -0,0 +1,181 @@
+# type: ignore
+from collections import namedtuple
+from collections import OrderedDict
+from __future__ import annotations
+from openvino._pyopenvino import Dimension
+from openvino._pyopenvino import PartialShape
+from openvino._pyopenvino import Type
+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 is_shape_type
+from openvino.tools.ovc.moc_frontend.shape_utils import to_partial_shape
+from openvino.tools.ovc.moc_frontend.type_utils import is_type
+from openvino.tools.ovc.moc_frontend.type_utils import to_ov_type
+from openvino.tools.ovc.utils import get_mo_root_dir
+import argparse as argparse
+import inspect as inspect
+import openvino as openvino
+import os as os
+import pathlib as pathlib
+import re as re
+__all__ = ['CanonicalizePathCheckExistenceAction', 'Dimension', 'Error', 'Formatter', 'OrderedDict', 'ParamDescription', 'PartialShape', 'Type', 'add_args_by_description', 'argparse', 'canonicalize_and_check_paths', 'check_bool', 'depersonalize', 'get_absolute_path', 'get_all_cli_parser', 'get_available_front_ends', 'get_common_cli_options', 'get_common_cli_parser', 'get_convert_model_help_specifics', 'get_mo_convert_params', 'get_mo_root_dir', 'get_model_name', 'get_model_name_from_args', 'get_node_name_with_port_from_input_value', 'get_params_with_paths_list', 'get_shape_from_input_value', 'input_model_details', 'input_to_input_cut_info', 'inspect', 'is_shape_type', 'is_single_input', 'is_type', 'namedtuple', 'openvino', 'os', 'parse_input_value', 'parse_inputs', 'pathlib', 're', 'readable_dirs_or_files_or_empty', 'readable_file_or_dir_or_object', 'remove_shape_from_input_value', 'single_input_to_input_cut_info', 'split_inputs', 'to_ov_type', 'to_partial_shape']
+class CanonicalizePathCheckExistenceAction(argparse.Action):
+ """
+
+ Expand user home directory paths and convert relative-paths to absolute and check specified file or directory
+ existence.
+
+ """
+ @staticmethod
+ def check_value(values: typing.Union[str, typing.List[str], NoneType], param_name, try_mo_root = False, check_existence = True) -> typing.List[str]:
+ ...
+ def __call__(self, parser, namespace, values, option_string = None):
+ ...
+class Formatter(argparse.HelpFormatter):
+ def _format_usage(self, usage, actions, groups, prefix):
+ ...
+ def _get_default_metavar_for_optional(self, action):
+ ...
+def add_args_by_description(args_group, params_description):
+ ...
+def canonicalize_and_check_paths(values: typing.Union[str, typing.List[str], NoneType], param_name, try_mo_root = False, check_existence = True) -> typing.List[str]:
+ ...
+def check_bool(value):
+ ...
+def depersonalize(value: str, key: str):
+ ...
+def get_absolute_path(path_to_file: str) -> str:
+ """
+
+ Deduces absolute path of the file by a given path to the file
+ Args:
+ path_to_file: path to the file
+
+ Returns:
+ absolute path of the file
+
+ """
+def get_all_cli_parser():
+ """
+
+ Specifies cli arguments for Model Conversion
+
+ Returns
+ -------
+ ArgumentParser instance
+
+ """
+def get_available_front_ends(fem = None):
+ ...
+def get_common_cli_options(argv, is_python_api_used):
+ ...
+def get_common_cli_parser(parser: argparse.ArgumentParser = None):
+ ...
+def get_mo_convert_params():
+ ...
+def get_model_name(path_input_model: str) -> str:
+ """
+
+ Deduces model name by a given path to the input model
+ Args:
+ path_input_model: path to the input model
+
+ Returns:
+ name of the output IR
+
+ """
+def get_model_name_from_args(argv: argparse.Namespace):
+ ...
+def get_node_name_with_port_from_input_value(input_value: str):
+ """
+
+ Returns the node name (optionally with input/output port) from the input value
+ :param input_value: string passed as input to the "input" command line parameter
+ :return: the corresponding node name with input/output port
+
+ """
+def get_params_with_paths_list():
+ ...
+def get_shape_from_input_value(input_value: str):
+ """
+
+ Returns PartialShape corresponding to the shape specified in the input value string
+ :param input_value: string passed as input to the "input" command line parameter
+ :return: the corresponding shape and None if the shape is not specified in the input value
+
+ """
+def input_model_details(model):
+ ...
+def input_to_input_cut_info(input: [dict, tuple, list]):
+ """
+
+ Parses 'input' to list of InputCutInfo.
+ :param input: input cut parameters passed by user
+ :return: list of InputCutInfo with input cut parameters
+
+ """
+def is_single_input(input: [tuple, list]):
+ """
+
+ Checks if input has parameters for single input.
+ :param input: list or tuple of input parameters or input shape or input name.
+ :return: True if input has parameters for single input, otherwise False.
+
+ """
+def parse_input_value(input_value: str):
+ """
+
+ Parses a value of the "input" command line parameter and gets a node name, shape and value.
+ The node name includes a port if it is specified.
+ Shape and value is equal to None if they are not specified.
+ Parameters
+ ----------
+ input_value
+ string with a specified node name and shape.
+ E.g. 'node_name:0[4]'
+
+ Returns
+ -------
+ Node name, shape, value, data type
+ E.g. 'node_name:0', '4', [1.0 2.0 3.0 4.0], np.float32
+
+ """
+def parse_inputs(inputs: str):
+ ...
+def readable_dirs_or_files_or_empty(paths: [str, list, tuple]):
+ """
+
+ Checks that comma separated list of paths are readable directories, files or a provided path is empty.
+ :param paths: comma separated list of paths.
+ :return: comma separated list of paths.
+
+ """
+def readable_file_or_dir_or_object(path: str):
+ """
+
+ Check that specified path is a readable file or directory.
+ :param path: path to check
+ :return: path if the file/directory is readable
+
+ """
+def remove_shape_from_input_value(input_value: str):
+ """
+
+ Removes the shape specification from the input string. The shape specification is a string enclosed with square
+ brackets.
+ :param input_value: string passed as input to the "input" command line parameter
+ :return: string without shape specification
+
+ """
+def single_input_to_input_cut_info(input: [str, tuple, list, openvino._pyopenvino.PartialShape, openvino._pyopenvino.Type, type]):
+ """
+
+ Parses parameters of single input to InputCutInfo.
+ :param input: input cut parameters of single input
+ :return: InputCutInfo
+
+ """
+def split_inputs(input_str):
+ ...
+ParamDescription = ParamData
+_InputCutInfo = InputCutInfo
diff --git a/src/bindings/python/src/openvino/tools/ovc/convert.pyi b/src/bindings/python/src/openvino/tools/ovc/convert.pyi
new file mode 100644
index 00000000000..ffc66590723
--- /dev/null
+++ b/src/bindings/python/src/openvino/tools/ovc/convert.pyi
@@ -0,0 +1,92 @@
+# type: ignore
+from __future__ import annotations
+from openvino._ov_api import Model
+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
+from openvino.tools.ovc.logger import restore_logger_state
+from typing import Any
+import openvino._ov_api
+import pathlib as pathlib
+import typing
+__all__ = ['Any', 'Model', 'convert_model', 'get_all_cli_parser', 'get_logger_state', 'pathlib', 'restore_logger_state']
+def convert_model(input_model: [str, pathlib.Path, typing.Any, list], input: [list, dict, str] = None, output: [str, list] = None, example_input: typing.Any = None, extension: [str, pathlib.Path, list, typing.Any] = None, verbose: bool = False, share_weights: bool = True) -> openvino._ov_api.Model:
+ """
+
+ Converts the model from original framework to OpenVino Model.
+
+ Framework-agnostic parameters:
+ :param input_model:
+ Model object in original framework (PyTorch, TensorFlow) or path to model file.
+
+ Supported formats of input model:
+
+ PyTorch
+ torch.nn.Module
+ torch.jit.ScriptModule
+ torch.jit.ScriptFunction
+ torch.export.ExportedProgram
+
+ TF
+ tf.compat.v1.Graph
+ tf.compat.v1.GraphDef
+ tf.compat.v1.wrap_function
+ tf.compat.v1.session
+
+ TF2 / Keras
+ tf.keras.Model
+ tf.keras.layers.Layer
+ tf.function
+ tf.Module
+ tf.train.checkpoint
+
+ PaddlePaddle
+ paddle.hapi.model.Model
+ paddle.fluid.dygraph.layers.Layer
+ paddle.fluid.executor.Executor
+
+ :param input:
+ Information of model input required for model conversion.
+ Input can be set by a list of tuples or a dictionary. Each tuple can contain optionally input name (string),
+ input type (ov.Type, numpy.dtype) or input shape (ov.Shape, ov.PartialShape, list, tuple).
+ Example: input=("op_name", PartialShape([-1, 3, 100, 100]), ov.Type.f32).
+ Alternatively input can be set by a dictionary, where key - input name,
+ value - tuple with input parameters (shape or type).
+ Example 1: input={"op_name_1": ([1, 2, 3], ov.Type.f32), "op_name_2": ov.Type.i32}
+ Example 2: input=[("op_name_1", [1, 2, 3], ov.Type.f32), ("op_name_2", ov.Type.i32)]
+ Example 3: input=[([1, 2, 3], ov.Type.f32), ov.Type.i32]
+ The order of inputs in converted model will match the order of specified inputs.
+ If data type is not specified explicitly data type is taken from the original node data type.
+
+ :param output:
+ One or more comma-separated model outputs to be preserved in the converted model. Other outputs are removed.
+ If `output` parameter is not specified then all outputs from the original model are preserved.
+ Do not add :0 to the names for TensorFlow. The order of outputs in the converted model is the same as
+ the order of specified names. Example: output="out_1", or output=["out_1", "out_2"].
+ For PaddlePaddle model represented as a Python object, you can specify outputs as a PaddlePaddle Python
+ objects or a list of such objects.
+ :param example_input:
+ Sample of model input in original framework.
+ For PyTorch it can be torch.Tensor.
+ For Tensorflow it can be tf.Tensor or numpy.ndarray.
+ For PaddlePaddle it can be Paddle Variable.
+ :param extension:
+ Paths to libraries (.so or .dll) with extensions, comma-separated
+ list of paths, objects derived from BaseExtension class or lists of
+ objects.
+ :param verbose:
+ Print detailed information about conversion. The detailed information is logged via standard logging library.
+ The log level can be changed by setting the log level using logging library.
+ Example:
+ import logging
+ logging.getLogger().setLevel(logging.DEBUG)
+ :param share_weights:
+ Reuse weights allocated in the original model. If input model is in file,
+ then mmap is used to allocate weights directly from file. If input model is
+ runtime object, then original memory regions allocated in the original model
+ are reused for weights in the converted model.
+
+ Returns:
+ openvino.Model
+
+ """
diff --git a/src/bindings/python/src/openvino/tools/ovc/convert_impl.pyi b/src/bindings/python/src/openvino/tools/ovc/convert_impl.pyi
new file mode 100644
index 00000000000..81a25bc7acc
--- /dev/null
+++ b/src/bindings/python/src/openvino/tools/ovc/convert_impl.pyi
@@ -0,0 +1,97 @@
+# type: ignore
+from collections import OrderedDict
+from __future__ import annotations
+from openvino.frontend.frontend import FrontEndManager
+from openvino._pyopenvino import get_version as get_rt_version
+from openvino._pyopenvino import OpConversionFailure
+from openvino._pyopenvino import PartialShape
+from openvino._pyopenvino import TelemetryExtension
+from openvino_telemetry.backend import backend_ga4
+from openvino.tools.ovc.cli_parser import depersonalize
+from openvino.tools.ovc.cli_parser import get_available_front_ends
+from openvino.tools.ovc.cli_parser import get_common_cli_options
+from openvino.tools.ovc.cli_parser import get_mo_convert_params
+from openvino.tools.ovc.cli_parser import input_to_input_cut_info
+from openvino.tools.ovc.cli_parser import parse_inputs
+from openvino.tools.ovc.error import Error
+from openvino.tools.ovc.error import FrameworkError
+from openvino.tools.ovc.get_ov_update_message import get_compression_message
+from openvino.tools.ovc.help import get_convert_model_help_specifics
+from openvino.tools.ovc.logger import init_logger
+from openvino.tools.ovc.moc_frontend.check_config import any_extensions_used
+from openvino.tools.ovc.moc_frontend.jax_frontend_utils import get_jax_decoder
+from openvino.tools.ovc.moc_frontend.moc_emit_ir import moc_emit_ir
+from openvino.tools.ovc.moc_frontend.paddle_frontend_utils import paddle_frontend_converter
+from openvino.tools.ovc.moc_frontend.pipeline import moc_pipeline
+from openvino.tools.ovc.moc_frontend.pytorch_frontend_utils import extract_input_info_from_example
+from openvino.tools.ovc.moc_frontend.pytorch_frontend_utils import get_pytorch_decoder
+from openvino.tools.ovc.moc_frontend.pytorch_frontend_utils import get_pytorch_decoder_for_model_on_disk
+from openvino.tools.ovc.moc_frontend.type_utils import to_ov_type
+from openvino.tools.ovc.telemetry_utils import init_ovc_telemetry
+from openvino.tools.ovc.telemetry_utils import send_conversion_result
+from openvino.tools.ovc.telemetry_utils import send_params_info
+from openvino.tools.ovc.utils import check_values_equal
+from openvino.tools.ovc.version import VersionChecker
+from pathlib import Path
+import argparse as argparse
+import datetime as datetime
+import logging as log
+import openvino_telemetry as tm
+import os as os
+import sys as sys
+import traceback as traceback
+import tracemalloc as tracemalloc
+__all__ = ['Error', 'FrameworkError', 'FrontEndManager', 'OpConversionFailure', 'OrderedDict', 'PartialShape', 'Path', 'TelemetryExtension', 'VersionChecker', 'add_line_breaks', 'any_extensions_used', 'argparse', 'args_to_argv', 'arguments_post_parsing', 'backend_ga4', 'check_iterable', 'check_model_object', 'check_values_equal', 'datetime', 'depersonalize', 'driver', 'extract_input_info_from_example', 'filtered_extensions', 'get_available_front_ends', 'get_common_cli_options', 'get_compression_message', 'get_convert_model_help_specifics', 'get_jax_decoder', 'get_mo_convert_params', 'get_moc_frontends', 'get_non_default_params', 'get_pytorch_decoder', 'get_pytorch_decoder_for_model_on_disk', 'get_rt_version', 'init_logger', 'init_ovc_telemetry', 'input_model_is_object', 'input_to_input_cut_info', 'is_verbose', 'log', 'moc_emit_ir', 'moc_pipeline', 'normalize_inputs', 'os', 'pack_params_to_args_namespace', 'paddle_frontend_converter', 'parse_inputs', 'prepare_ir', 'print_argv', 'replace_ext', 'send_conversion_result', 'send_params_info', 'show_mo_convert_help', 'sys', 'tf_frontend_with_python_bindings_installed', 'tm', 'to_ov_type', 'traceback', 'tracemalloc']
+def _convert(cli_parser: argparse.ArgumentParser, args, python_api_used):
+ ...
+def add_line_breaks(text: str, char_num: int, line_break: str):
+ ...
+def args_to_argv(**kwargs):
+ ...
+def arguments_post_parsing(argv: argparse.Namespace):
+ ...
+def check_iterable(iterable: typing.Iterable, func: typing.Callable):
+ ...
+def check_model_object(argv):
+ ...
+def driver(argv: argparse.Namespace, non_default_params: dict):
+ ...
+def filtered_extensions(extensions):
+ ...
+def get_moc_frontends(argv: argparse.Namespace):
+ ...
+def get_non_default_params(argv, cli_parser):
+ ...
+def input_model_is_object(input_model):
+ ...
+def is_verbose(argv, args = None):
+ ...
+def normalize_inputs(argv: argparse.Namespace):
+ """
+
+ repacks params passed to convert_model and wraps resulting values into dictionaries or lists.
+ After working of this method following values are set in argv:
+
+ argv.input, argv.inputs_list - list of input names. Both values are used in some parts of MO.
+ Could be good to refactor it and use only one of these values.
+
+ argv.placeholder_shapes - dictionary where key is node name, value is PartialShape,
+ or list of PartialShape if node names were not set.
+
+ argv.placeholder_data_types - dictionary where key is node name, value is node np.type,
+ or list of np.types if node names were not set.
+
+ :param argv: OVC arguments
+
+ """
+def pack_params_to_args_namespace(args: dict, cli_parser: argparse.ArgumentParser, python_api_used):
+ ...
+def prepare_ir(argv: argparse.Namespace):
+ ...
+def print_argv(argv: argparse.Namespace):
+ ...
+def replace_ext(name: str, old: str, new: str):
+ ...
+def show_mo_convert_help():
+ ...
+tf_frontend_with_python_bindings_installed: bool = False
diff --git a/src/bindings/python/src/openvino/tools/ovc/error.pyi b/src/bindings/python/src/openvino/tools/ovc/error.pyi
new file mode 100644
index 00000000000..1560038fe00
--- /dev/null
+++ b/src/bindings/python/src/openvino/tools/ovc/error.pyi
@@ -0,0 +1,30 @@
+# type: ignore
+from __future__ import annotations
+import re as re
+__all__ = ['BasicError', 'Error', 'FrameworkError', 'InternalError', 'classify_error_type', 're']
+class BasicError(Exception):
+ """
+ Base class for all exceptions in Model Conversion API
+
+ It operates like Exception but when it is converted to str,
+ it formats string as args[0].format(*args[1:]), where
+ args are arguments provided when an exception instance is
+ created.
+
+ """
+ def __str__(self):
+ ...
+class Error(BasicError):
+ """
+ User-friendly error: raised when the error on the user side.
+ """
+class FrameworkError(BasicError):
+ """
+ User-friendly error: raised when the error on the framework side.
+ """
+class InternalError(BasicError):
+ """
+ Not user-friendly error: user cannot fix it and it points to the bug inside MO.
+ """
+def classify_error_type(e):
+ ...
diff --git a/src/bindings/python/src/openvino/tools/ovc/get_ov_update_message.pyi b/src/bindings/python/src/openvino/tools/ovc/get_ov_update_message.pyi
new file mode 100644
index 00000000000..1464d344346
--- /dev/null
+++ b/src/bindings/python/src/openvino/tools/ovc/get_ov_update_message.pyi
@@ -0,0 +1,7 @@
+# type: ignore
+from __future__ import annotations
+import datetime as datetime
+__all__ = ['datetime', 'get_compression_message', 'msg_fmt']
+def get_compression_message():
+ ...
+msg_fmt: str = 'Check for a new version of Intel(R) Distribution of OpenVINO(TM) toolkit here {0} or on https://github.com/openvinotoolkit/openvino'
diff --git a/src/bindings/python/src/openvino/tools/ovc/help.pyi b/src/bindings/python/src/openvino/tools/ovc/help.pyi
new file mode 100644
index 00000000000..042444d4303
--- /dev/null
+++ b/src/bindings/python/src/openvino/tools/ovc/help.pyi
@@ -0,0 +1,5 @@
+# type: ignore
+from __future__ import annotations
+__all__ = ['get_convert_model_help_specifics']
+def get_convert_model_help_specifics():
+ ...
diff --git a/src/bindings/python/src/openvino/tools/ovc/logger.pyi b/src/bindings/python/src/openvino/tools/ovc/logger.pyi
new file mode 100644
index 00000000000..5f53d66bacf
--- /dev/null
+++ b/src/bindings/python/src/openvino/tools/ovc/logger.pyi
@@ -0,0 +1,28 @@
+# type: ignore
+from copy import copy
+from __future__ import annotations
+import importlib as importlib
+import logging
+import logging as log
+import os as os
+import re as re
+import typing
+__all__ = ['LvlFormatter', 'TagFilter', 'copy', 'get_logger_state', 'handler_num', 'importlib', 'init_logger', 'log', 'os', 're', 'restore_logger_state']
+class LvlFormatter(logging.Formatter):
+ format_dict: typing.ClassVar[dict] = {10: '[ %(asctime)s ] [ %(levelname)s ] [ %(module)s:%(lineno)d ] %(msg)s', 20: '[ %(levelname)s ] %(msg)s', 30: '[ WARNING ] %(msg)s', 40: '[ %(levelname)s ] %(msg)s', 50: '[ %(levelname)s ] %(msg)s', 'framework_error': '[ FRAMEWORK ERROR ] %(msg)s', 'analysis_info': '[ ANALYSIS INFO ] %(msg)s'}
+ def __init__(self, lvl, fmt = None):
+ ...
+ def format(self, record: logging.LogRecord):
+ ...
+class TagFilter(logging.Filter):
+ def __init__(self, regex: str):
+ ...
+ def filter(self, record: logging.LogRecord):
+ ...
+def get_logger_state():
+ ...
+def init_logger(lvl: str, verbose: bool, python_api_used: bool):
+ ...
+def restore_logger_state(state: tuple):
+ ...
+handler_num: int = 0
diff --git a/src/bindings/python/src/openvino/tools/ovc/moc_frontend/__init__.pyi b/src/bindings/python/src/openvino/tools/ovc/moc_frontend/__init__.pyi
new file mode 100644
index 00000000000..613b21f4fb1
--- /dev/null
+++ b/src/bindings/python/src/openvino/tools/ovc/moc_frontend/__init__.pyi
@@ -0,0 +1,15 @@
+# type: ignore
+from __future__ import annotations
+from . import analysis
+from . import check_config
+from . import extractor
+from . import jax_frontend_utils
+from . import layout_utils
+from . import moc_emit_ir
+from . import paddle_frontend_utils
+from . import pipeline
+from . import preprocessing
+from . import pytorch_frontend_utils
+from . import shape_utils
+from . import type_utils
+__all__ = ['analysis', 'check_config', 'extractor', 'jax_frontend_utils', 'layout_utils', 'moc_emit_ir', 'paddle_frontend_utils', 'pipeline', 'preprocessing', 'pytorch_frontend_utils', 'shape_utils', 'type_utils']
diff --git a/src/bindings/python/src/openvino/tools/ovc/moc_frontend/analysis.pyi b/src/bindings/python/src/openvino/tools/ovc/moc_frontend/analysis.pyi
new file mode 100644
index 00000000000..8afd9fa7ec1
--- /dev/null
+++ b/src/bindings/python/src/openvino/tools/ovc/moc_frontend/analysis.pyi
@@ -0,0 +1,13 @@
+# type: ignore
+from __future__ import annotations
+from openvino._ov_api import Model
+from openvino._pyopenvino import PartialShape
+from openvino._pyopenvino import Type
+from openvino.utils.types import get_dtype
+import json as json
+import openvino._ov_api
+__all__ = ['Model', 'PartialShape', 'Type', 'get_dtype', 'json', 'json_model_analysis_dump', 'json_model_analysis_print']
+def json_model_analysis_dump(framework_model: openvino._ov_api.Model):
+ ...
+def json_model_analysis_print(json_dump: str):
+ ...
diff --git a/src/bindings/python/src/openvino/tools/ovc/moc_frontend/check_config.pyi b/src/bindings/python/src/openvino/tools/ovc/moc_frontend/check_config.pyi
new file mode 100644
index 00000000000..383ec761e8b
--- /dev/null
+++ b/src/bindings/python/src/openvino/tools/ovc/moc_frontend/check_config.pyi
@@ -0,0 +1,18 @@
+# type: ignore
+from __future__ import annotations
+from openvino.tools.ovc.error import Error
+from pathlib import Path
+import argparse as argparse
+import os as os
+import pathlib
+__all__ = ['Error', 'Path', 'any_extensions_used', 'argparse', 'default_path', 'get_transformations_config_path', 'legacy_transformations_config_used', 'os', 'tensorflow_custom_operations_config_update_used']
+def any_extensions_used(argv: argparse.Namespace):
+ ...
+def default_path():
+ ...
+def get_transformations_config_path(argv: argparse.Namespace) -> pathlib.Path:
+ ...
+def legacy_transformations_config_used(argv: argparse.Namespace):
+ ...
+def tensorflow_custom_operations_config_update_used(argv: argparse.Namespace):
+ ...
diff --git a/src/bindings/python/src/openvino/tools/ovc/moc_frontend/extractor.pyi b/src/bindings/python/src/openvino/tools/ovc/moc_frontend/extractor.pyi
new file mode 100644
index 00000000000..09ae0f78b88
--- /dev/null
+++ b/src/bindings/python/src/openvino/tools/ovc/moc_frontend/extractor.pyi
@@ -0,0 +1,135 @@
+# type: ignore
+from enum import Enum
+from __future__ import annotations
+from openvino._pyopenvino import InputModel
+from openvino._pyopenvino import PartialShape
+from openvino._pyopenvino import Place
+from openvino.tools.ovc.error import Error
+import enum
+import numpy
+import numpy as np
+import openvino._pyopenvino
+import re as re
+import typing
+__all__ = ['Enum', 'Error', 'IOType', 'InputModel', 'PartialShape', 'Place', 'convert_params_lists_to_dicts', 'decode_name_with_port', 'fe_input_user_data_repack', 'fe_output_user_data_repack', 'fe_user_data_repack', 'find_first_unused_input', 'np', 'raise_no_node', 'raise_node_name_collision', 're']
+class IOType(enum.Enum):
+ Input: typing.ClassVar[IOType] # value = <IOType.Input: 1>
+ Output: typing.ClassVar[IOType] # value = <IOType.Output: 2>
+def convert_params_lists_to_dicts(input_model, input_user_shapes: [list, dict], input_user_data_types: [list, dict]):
+ """
+
+ Convert lists of unnamed params to dicts using input names from input_model.
+
+ :param input_model: openvino.InputModel
+ :param input_user_shapes: list of input shapes or dictionary where key is input name, value is input shape from user.
+ :param input_user_data_types: list of input types or dictionary where key is input name, value is input type from user.
+
+ :return: (input_user_shapes_dict, input_user_data_types_dict, freeze_placeholder), where
+ input_user_shapes_dict - dictionary where key is input name, value is shape from user;
+ 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;
+
+ """
+def decode_name_with_port(input_model: openvino._pyopenvino.InputModel, node_name: str, framework = '', io_type = ...) -> openvino._pyopenvino.Place:
+ """
+
+ Decode name with optional port specification w/o traversing all the nodes in the graph
+ TODO: in future node_name can specify input/output port groups as well as indices (58562)
+ :param input_model: Input Model
+ :param node_name: user provided node name
+ :return: decoded place in the graph
+
+ """
+def fe_input_user_data_repack(input_model: openvino._pyopenvino.InputModel, input_user_shapes: [None, list, dict, numpy.ndarray], freeze_placeholder: dict, framework: str, input_user_data_types = None):
+ """
+
+ Restructures user input cutting request. Splits ports out of node names.
+ Transforms node names to node ids.
+ :param input_model: current input model
+ :param input_user_shapes: data structure representing user input cutting request. It may be:
+ # None value if user did not provide neither "input" nor "input_shape" keys
+ # list instance which contains input layer names with or without ports if user provided
+ only "input" key
+ # dict instance which contains input layer names with or without ports as keys and shapes as
+ values if user provided both "input" and "input_shape"
+ # np.ndarray if user provided only "input_shape" key
+ :param freeze_placeholder: dictionary with placeholder names as keys and freezing value as values
+ :param input_user_data_types: dictionary with input nodes and its data types
+ :return: restructured input shapes and freeze placeholder shapes information
+ Example of input dictionary:
+ _input_shapes =
+ {
+ 'node_ID':
+ [
+ {'shape': None, 'in': 0},
+ {'shape': None, 'in': 1},
+ ],
+ 'node_1_ID':
+ [
+ {'shape': [1, 227, 227, 3], 'port': None, 'data_type': np.int32}
+ ],
+ 'node_2_ID':
+ [
+ {'shape': None, 'out': 3}
+ ]
+ }
+ Example of freeze placeholder dictionary:
+ _freeze_placeholder =
+ {
+ 'phase_train' : False
+ }
+
+ """
+def fe_output_user_data_repack(input_model: openvino._pyopenvino.InputModel, outputs: list, framework: str):
+ """
+
+
+ :param input_model: Input Model to operate on
+ :param outputs: list of node names provided by user
+ :return: dictionary with node IDs as keys and list of port dictionaries as values
+ Example of outputs dictionary:
+ _outputs =
+ {
+ 'node_ID':
+ [
+ {'out': 0},
+ {'out': 1},
+ ],
+ 'node_1_ID':
+ [
+ {'port': None}
+ ],
+ 'node_2_ID':
+ [
+ {'in': 3}
+ ]
+ }
+
+ """
+def fe_user_data_repack(input_model: openvino._pyopenvino.InputModel, input_user_shapes: [None, list, dict, numpy.array], input_user_data_types: dict, outputs: list, freeze_placeholder: dict, framework: str):
+ """
+
+ :param input_model: Input Model to operate on
+ :param input_user_shapes: data structure representing user input cutting request
+ :param input_user_data_types: dictionary with input nodes and its data types
+ :param outputs: list of node names to treat as outputs
+ :param freeze_placeholder: dictionary with placeholder names as keys and freezing value as values
+ :return: restructured input, output and freeze placeholder dictionaries or None values
+
+ """
+def find_first_unused_input(model_inputs: list, param_dict: dict, param_name: str):
+ """
+
+ Finds first input in model_inputs, which is not present in freeze_placeholder dictionary or param_dict.
+
+ :param model_inputs: list of model inputs
+ :param param_dict: dictionary where key is input name, value is parameter value (shape or type).
+ :param param_name: name of parameter used in exception message.
+
+ :return: first input name, which is not present in freeze_placeholder dictionary or param_dict.
+
+ """
+def raise_no_node(node_name: str):
+ ...
+def raise_node_name_collision(node_name: str, found_nodes: list):
+ ...
diff --git a/src/bindings/python/src/openvino/tools/ovc/moc_frontend/jax_frontend_utils.pyi b/src/bindings/python/src/openvino/tools/ovc/moc_frontend/jax_frontend_utils.pyi
new file mode 100644
index 00000000000..e1a1e205bf8
--- /dev/null
+++ b/src/bindings/python/src/openvino/tools/ovc/moc_frontend/jax_frontend_utils.pyi
@@ -0,0 +1,6 @@
+# type: ignore
+from __future__ import annotations
+import logging as log
+__all__ = ['get_jax_decoder', 'log']
+def get_jax_decoder(model, args):
+ ...
diff --git a/src/bindings/python/src/openvino/tools/ovc/moc_frontend/layout_utils.pyi b/src/bindings/python/src/openvino/tools/ovc/moc_frontend/layout_utils.pyi
new file mode 100644
index 00000000000..7d9db819714
--- /dev/null
+++ b/src/bindings/python/src/openvino/tools/ovc/moc_frontend/layout_utils.pyi
@@ -0,0 +1,22 @@
+# type: ignore
+from __future__ import annotations
+from openvino._pyopenvino import PartialShape
+from openvino.tools.ovc.error import Error
+from openvino.tools.ovc.utils import refer_to_faq_msg
+import openvino._pyopenvino
+__all__ = ['Error', 'PartialShape', 'get_dimension_index_by_label', 'refer_to_faq_msg', 'update_layout_to_dict']
+def get_dimension_index_by_label(input_shape: openvino._pyopenvino.PartialShape, input_names: list, layout_dict: [dict], dimension_label: str, default_dim: int):
+ """
+
+ The function returns index of the dimension pointed in the layout
+ and a flag indicating if the index is chosen by default.
+ For example, the index for 'D' dimension in "NHWDC" layout is 3.
+
+ """
+def update_layout_to_dict(inputs: list, layout: [list, dict], get_names_func: typing.Callable):
+ """
+
+ The function prepares layout values in the dictionary with items of the format:
+ { node_name : {'source_layout': 'NHWC', 'target_layout': 'NCHW'} }
+
+ """
diff --git a/src/bindings/python/src/openvino/tools/ovc/moc_frontend/moc_emit_ir.pyi b/src/bindings/python/src/openvino/tools/ovc/moc_frontend/moc_emit_ir.pyi
new file mode 100644
index 00000000000..d468ea7a856
--- /dev/null
+++ b/src/bindings/python/src/openvino/tools/ovc/moc_frontend/moc_emit_ir.pyi
@@ -0,0 +1,9 @@
+# type: ignore
+from __future__ import annotations
+from openvino._ov_api import Model
+from openvino.tools.ovc.moc_frontend.preprocessing import apply_preprocessing
+import argparse as argparse
+import openvino._ov_api
+__all__ = ['Model', 'apply_preprocessing', 'argparse', 'moc_emit_ir']
+def moc_emit_ir(ngraph_function: openvino._ov_api.Model, argv: argparse.Namespace):
+ ...
diff --git a/src/bindings/python/src/openvino/tools/ovc/moc_frontend/paddle_frontend_utils.pyi b/src/bindings/python/src/openvino/tools/ovc/moc_frontend/paddle_frontend_utils.pyi
new file mode 100644
index 00000000000..6cd759de586
--- /dev/null
+++ b/src/bindings/python/src/openvino/tools/ovc/moc_frontend/paddle_frontend_utils.pyi
@@ -0,0 +1,20 @@
+# type: ignore
+from __future__ import annotations
+import os as os
+import sys as sys
+import tempfile as tempfile
+__all__ = ['os', 'paddle_frontend_converter', 'sys', 'tempfile']
+class paddle_frontend_converter:
+ def __init__(self, model, inputs = None, outputs = None):
+ ...
+ def convert_paddle_to_pdmodel(self):
+ """
+
+ There are three paddle model categories:
+ - High Level API: is a wrapper for dynamic or static model, use `self.save` to serialize
+ - Dynamic Model: use `paddle.jit.save` to serialize
+ - Static Model: use `paddle.static.save_inference_model` to serialize
+
+ """
+ def destroy(self):
+ ...
diff --git a/src/bindings/python/src/openvino/tools/ovc/moc_frontend/pipeline.pyi b/src/bindings/python/src/openvino/tools/ovc/moc_frontend/pipeline.pyi
new file mode 100644
index 00000000000..17ea914aba4
--- /dev/null
+++ b/src/bindings/python/src/openvino/tools/ovc/moc_frontend/pipeline.pyi
@@ -0,0 +1,42 @@
+# type: ignore
+from __future__ import annotations
+from openvino.frontend.frontend import FrontEnd
+from openvino._pyopenvino import InputModel
+from openvino._pyopenvino import NotImplementedFailure
+from openvino._pyopenvino import PartialShape
+from openvino._pyopenvino import Place
+from openvino._pyopenvino import Type
+from openvino.tools.ovc.error import Error
+from openvino.tools.ovc.moc_frontend.analysis import json_model_analysis_dump
+from openvino.tools.ovc.moc_frontend.extractor import convert_params_lists_to_dicts
+from openvino.tools.ovc.moc_frontend.extractor import fe_output_user_data_repack
+from openvino.tools.ovc.moc_frontend.extractor import fe_user_data_repack
+from openvino.tools.ovc.utils import mo_array
+from openvino.utils.types import get_element_type
+from openvino.utils.types import get_numpy_ctype
+import argparse as argparse
+import logging as log
+import numpy
+import numpy as np
+import openvino.frontend.frontend
+import os as os
+import sys as sys
+__all__ = ['Error', 'FrontEnd', 'InputModel', 'NotImplementedFailure', 'PartialShape', 'Place', 'Type', 'argparse', 'convert_params_lists_to_dicts', 'fe_output_user_data_repack', 'fe_user_data_repack', 'get_element_type', 'get_enabled_and_disabled_transforms', 'get_numpy_ctype', 'json_model_analysis_dump', 'log', 'mo_array', 'moc_pipeline', 'np', 'np_map_cast', 'os', 'raise_exception_for_input_output_cut', 'sys']
+def get_enabled_and_disabled_transforms():
+ """
+
+ :return: tuple of lists with force enabled and disabled id of transformations.
+
+ """
+def moc_pipeline(argv: argparse.Namespace, moc_front_end: openvino.frontend.frontend.FrontEnd):
+ """
+
+ Load input model and convert it to nGraph function
+ :param: argv: parsed command line arguments
+ :param: moc_front_end: Loaded Frontend for converting input model
+ :return: converted nGraph function ready for serialization
+
+ """
+def raise_exception_for_input_output_cut(model_inputs_or_outputs: typing.List[openvino._pyopenvino.Place], new_nodes: typing.List[dict], is_input: bool):
+ ...
+np_map_cast: dict # value = {bool: <function <lambda> at memory_address>, numpy.int8: <function <lambda> at memory_address>, numpy.int16: <function <lambda> at memory_address>, numpy.int32: <function <lambda> at memory_address>, numpy.int64: <function <lambda> at memory_address>, numpy.uint8: <function <lambda> at memory_address>, numpy.uint16: <function <lambda> at memory_address>, numpy.uint32: <function <lambda> at memory_address>, numpy.uint64: <function <lambda> at memory_address>, numpy.float16: <function <lambda> at memory_address>, numpy.float32: <function <lambda> at memory_address>, numpy.float64: <function <lambda> at memory_address>, str: <function <lambda> at memory_address>}
diff --git a/src/bindings/python/src/openvino/tools/ovc/moc_frontend/preprocessing.pyi b/src/bindings/python/src/openvino/tools/ovc/moc_frontend/preprocessing.pyi
new file mode 100644
index 00000000000..9f3fada9273
--- /dev/null
+++ b/src/bindings/python/src/openvino/tools/ovc/moc_frontend/preprocessing.pyi
@@ -0,0 +1,66 @@
+# type: ignore
+from __future__ import annotations
+from openvino._ov_api import Model
+from openvino._pyopenvino import Layout
+from openvino._pyopenvino import PartialShape
+from openvino._pyopenvino.preprocess import PrePostProcessor
+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
+import argparse as argparse
+import logging as log
+import openvino._ov_api
+import openvino._pyopenvino
+__all__ = ['Error', 'Layout', 'Model', 'PartialShape', 'PrePostProcessor', 'apply_preprocessing', 'argparse', 'check_keys_valid', 'find_channels_dimension', 'log', 'refer_to_faq_msg', 'update_layout_is_input_flag', 'update_layout_to_dict', 'update_tensor_names_to_first_in_sorted_list']
+def apply_preprocessing(ov_function: openvino._ov_api.Model, argv: argparse.Namespace):
+ """
+
+ Applies pre-processing of model inputs by adding appropriate operations
+ On return, 'ov_function' object will be updated
+ Expected 'argv.mean_scale_values' formats examples:
+ a) Dict: {'inputName': {'mean': [1., 2., 3.], 'scale': [2., 4., 8.]}}
+ b) List: list(np.array([(np.array([1., 2., 3.]), np.array([2., 4., 6.])),
+ (np.array([7., 8., 9.]), np.array([5., 6., 7.])))
+ Expected 'argv.layout_values' format examples:
+ a) Specific layouts for inputs and outputs
+ { 'input1': {
+ 'source_layout': 'nchw',
+ 'target_layout': 'nhwc'
+ },
+ 'output2': {
+ 'source_layout': 'nhwc'
+ }
+ }
+ b) Layout for single input: {'': {'source_layout': 'nchw'}}
+ :param: ov_function OV function for applying mean/scale pre-processing
+ :param: argv Parsed command line arguments
+
+ """
+def check_keys_valid(ov_function: openvino._ov_api.Model, dict_to_validate: dict, search_outputs: bool):
+ """
+
+ Internal function: checks if keys from cmd line arguments correspond to ov_function's inputs/outputs
+ Throws if some key is not found
+ Throws if some different keys point to the same actual input/output
+
+ """
+def find_channels_dimension(shape: openvino._pyopenvino.PartialShape, num_channels: int, name: str, layout_values):
+ """
+
+ Internal function. Finds dimension index matching with expected channels number
+ Raises error if there is no candidates or number of candidates is > 1
+ :param: shape Parameter's partial shape
+ :param: num_channels Number of channels to find in shape
+ :param: name Parameter's name, used for Error-handling purposes
+ :param: layout_values Existing source/target layout items specified by user
+ :return: updated layout items with guessed layouts
+
+ """
+def update_layout_is_input_flag(ov_function: openvino._ov_api.Model, layout_values: dict):
+ """
+
+ Internal function: updates layout_values with flag whether each layout belongs to input or to output
+
+ """
+def update_tensor_names_to_first_in_sorted_list(values_dict: dict, ov_function: openvino._ov_api.Model):
+ ...
diff --git a/src/bindings/python/src/openvino/tools/ovc/moc_frontend/pytorch_frontend_utils.pyi b/src/bindings/python/src/openvino/tools/ovc/moc_frontend/pytorch_frontend_utils.pyi
new file mode 100644
index 00000000000..3cae1e0d42f
--- /dev/null
+++ b/src/bindings/python/src/openvino/tools/ovc/moc_frontend/pytorch_frontend_utils.pyi
@@ -0,0 +1,30 @@
+# type: ignore
+from __future__ import annotations
+from openvino._pyopenvino import PartialShape
+from openvino._pyopenvino import Tensor
+from openvino.tools.ovc.cli_parser import InputCutInfo as _InputCutInfo
+from openvino.tools.ovc.cli_parser import single_input_to_input_cut_info
+from openvino.tools.ovc.error import Error
+import logging as log
+import numpy as np
+import pathlib as pathlib
+import sys as sys
+__all__ = ['Error', 'PartialShape', 'Tensor', 'extract_input_info_from_example', 'extract_module_extensions', 'flatten_inputs', 'get_pytorch_decoder', 'get_pytorch_decoder_for_model_on_disk', 'get_value_from_list_or_dict', 'log', 'np', 'pathlib', 'prepare_torch_inputs', 'single_input_to_input_cut_info', 'sys', 'to_torch_tensor', 'update_list_or_dict']
+def extract_input_info_from_example(args, inputs):
+ ...
+def extract_module_extensions(args):
+ ...
+def flatten_inputs(inputs, names = None):
+ ...
+def get_pytorch_decoder(model, example_inputs, args):
+ ...
+def get_pytorch_decoder_for_model_on_disk(argv, args):
+ ...
+def get_value_from_list_or_dict(container, name, idx):
+ ...
+def prepare_torch_inputs(example_inputs):
+ ...
+def to_torch_tensor(tensor):
+ ...
+def update_list_or_dict(container, name, idx, value):
+ ...
diff --git a/src/bindings/python/src/openvino/tools/ovc/moc_frontend/shape_utils.pyi b/src/bindings/python/src/openvino/tools/ovc/moc_frontend/shape_utils.pyi
new file mode 100644
index 00000000000..307676cd3c4
--- /dev/null
+++ b/src/bindings/python/src/openvino/tools/ovc/moc_frontend/shape_utils.pyi
@@ -0,0 +1,20 @@
+# type: ignore
+from __future__ import annotations
+from openvino._pyopenvino import Dimension
+from openvino._pyopenvino import PartialShape
+from openvino._pyopenvino import Shape
+from openvino.tools.ovc.error import Error
+import numpy as np
+import openvino._pyopenvino
+import sys as sys
+__all__ = ['Dimension', 'Error', 'PartialShape', 'Shape', 'get_dynamic_dims', 'get_static_shape', 'is_shape_type', 'np', 'sys', 'tensor_to_int_list', 'to_partial_shape']
+def get_dynamic_dims(shape: [openvino._pyopenvino.PartialShape, list, tuple]):
+ ...
+def get_static_shape(shape: [openvino._pyopenvino.PartialShape, list, tuple], dynamic_value = None):
+ ...
+def is_shape_type(value):
+ ...
+def tensor_to_int_list(tensor):
+ ...
+def to_partial_shape(shape):
+ ...
diff --git a/src/bindings/python/src/openvino/tools/ovc/moc_frontend/type_utils.pyi b/src/bindings/python/src/openvino/tools/ovc/moc_frontend/type_utils.pyi
new file mode 100644
index 00000000000..67aef67da23
--- /dev/null
+++ b/src/bindings/python/src/openvino/tools/ovc/moc_frontend/type_utils.pyi
@@ -0,0 +1,11 @@
+# type: ignore
+from __future__ import annotations
+from openvino._pyopenvino import Type
+import numpy as np
+import openvino as ov
+import sys as sys
+__all__ = ['Type', 'is_type', 'np', 'ov', 'sys', 'to_ov_type']
+def is_type(val):
+ ...
+def to_ov_type(val):
+ ...
diff --git a/src/bindings/python/src/openvino/tools/ovc/telemetry_params.pyi b/src/bindings/python/src/openvino/tools/ovc/telemetry_params.pyi
new file mode 100644
index 00000000000..f33d4ee578a
--- /dev/null
+++ b/src/bindings/python/src/openvino/tools/ovc/telemetry_params.pyi
@@ -0,0 +1,4 @@
+# type: ignore
+from __future__ import annotations
+__all__ = ['telemetry_params']
+telemetry_params: dict = {'TID': 'G-W5E9RNLD4H'}
diff --git a/src/bindings/python/src/openvino/tools/ovc/telemetry_utils.pyi b/src/bindings/python/src/openvino/tools/ovc/telemetry_utils.pyi
new file mode 100644
index 00000000000..81b8b2c28cf
--- /dev/null
+++ b/src/bindings/python/src/openvino/tools/ovc/telemetry_utils.pyi
@@ -0,0 +1,46 @@
+# type: ignore
+from __future__ import annotations
+from openvino._pyopenvino import get_version as get_rt_version
+from openvino_telemetry.backend import backend_ga4
+from openvino.tools.ovc.cli_parser import get_params_with_paths_list
+from openvino.tools.ovc.utils import check_values_equal
+import argparse as argparse
+import numbers as numbers
+import openvino_telemetry as tm
+import os as os
+__all__ = ['arg_to_str', 'argparse', 'backend_ga4', 'check_values_equal', 'get_params_with_paths_list', 'get_rt_version', 'get_tid', 'init_ovc_telemetry', 'init_telemetry_class', 'is_keras3', 'is_optimum', 'is_torch_compile', 'numbers', 'os', 'send_conversion_result', 'send_framework_info', 'send_params_info', 'telemetry_params', 'tm']
+def arg_to_str(arg):
+ ...
+def get_tid():
+ """
+
+ This function returns the ID of the database to send telemetry.
+
+ """
+def init_ovc_telemetry(app_name = 'OVC', app_version = None):
+ ...
+def init_telemetry_class(tid, app_name, app_version, backend, enable_opt_in_dialog, disable_in_ci):
+ ...
+def is_keras3():
+ ...
+def is_optimum():
+ ...
+def is_torch_compile():
+ ...
+def send_conversion_result(conversion_result: str, need_shutdown = False):
+ ...
+def send_framework_info(framework: str):
+ """
+
+ This function sends information about used framework.
+ :param framework: framework name.
+
+ """
+def send_params_info(params: dict):
+ """
+
+ This function sends information about used command line parameters.
+ :param params: command-line parameters dictionary.
+
+ """
+telemetry_params: dict = {'TID': 'G-W5E9RNLD4H'}
diff --git a/src/bindings/python/src/openvino/tools/ovc/utils.pyi b/src/bindings/python/src/openvino/tools/ovc/utils.pyi
new file mode 100644
index 00000000000..2257881d6b4
--- /dev/null
+++ b/src/bindings/python/src/openvino/tools/ovc/utils.pyi
@@ -0,0 +1,55 @@
+# type: ignore
+from __future__ import annotations
+from importlib import metadata as importlib_metadata
+from openvino_telemetry.backend import backend_ga4
+from openvino.tools.ovc.error import Error
+import importlib as importlib
+import logging as log
+import numpy
+import numpy as np
+import numpy.ma.core
+import openvino_telemetry as tm
+import os as os
+import sys as sys
+__all__ = ['Error', 'backend_ga4', 'bool_cast', 'check_values_equal', 'dynamic_dimension', 'get_ir_version', 'get_mo_root_dir', 'import_openvino_tokenizers', 'importlib', 'importlib_metadata', 'log', 'mo_array', 'np', 'np_map_cast', 'os', 'refer_to_faq_msg', 'sys', 'tm', 'validate_batch_in_shape']
+def bool_cast(x):
+ ...
+def check_values_equal(val1, val2):
+ ...
+def get_ir_version():
+ """
+
+ Default IR version.
+ :return: the IR version
+
+ """
+def get_mo_root_dir():
+ """
+
+ Return the absolute path to the Model Conversion API root directory (where mo folder is located)
+ :return: path to the MO root directory
+
+ """
+def import_openvino_tokenizers():
+ ...
+def mo_array(value: typing.Union[typing.Iterable[typing.Union[float, int]], float, int], dtype = None) -> numpy.ndarray:
+ """
+
+ This function acts in a same way as np.array except for the case when dtype is not provided
+ and np.array return fp64 array this function returns fp32 array
+
+ """
+def refer_to_faq_msg(question_num: int):
+ ...
+def validate_batch_in_shape(shape, layer_name: str):
+ """
+
+ Raises Error #39 if shape is not valid for setting batch size
+ Parameters
+ ----------
+ shape: current shape of layer under validation
+ layer_name: name of layer under validation
+
+ """
+dynamic_dimension: numpy.ma.core.MaskedConstant # value = masked
+np_map_cast: dict # value = {bool: <function <lambda> at memory_address>, numpy.int8: <function <lambda> at memory_address>, numpy.int16: <function <lambda> at memory_address>, numpy.int32: <function <lambda> at memory_address>, numpy.int64: <function <lambda> at memory_address>, numpy.uint8: <function <lambda> at memory_address>, numpy.uint16: <function <lambda> at memory_address>, numpy.uint32: <function <lambda> at memory_address>, numpy.uint64: <function <lambda> at memory_address>, numpy.float16: <function <lambda> at memory_address>, numpy.float32: <function <lambda> at memory_address>, numpy.float64: <function <lambda> at memory_address>, str: <function <lambda> at memory_address>}
diff --git a/src/bindings/python/src/openvino/tools/ovc/version.pyi b/src/bindings/python/src/openvino/tools/ovc/version.pyi
new file mode 100644
index 00000000000..000c6a290be
--- /dev/null
+++ b/src/bindings/python/src/openvino/tools/ovc/version.pyi
@@ -0,0 +1,27 @@
+# type: ignore
+from __future__ import annotations
+from openvino._pyopenvino import get_version as get_ie_version
+import re as re
+__all__ = ['SingletonMetaClass', 'VersionChecker', 'extract_hash_from_version', 'extract_release_version', 'get_ie_version', 'get_simplified_ie_version', 're', 'simplify_version']
+class SingletonMetaClass(type):
+ @classmethod
+ def __call__(cls, *args, **kwargs):
+ ...
+ def __init__(self, cls_name, super_classes, dic):
+ ...
+class VersionChecker:
+ _SingletonMetaClass__single_instance = None
+ def __init__(self):
+ ...
+ def get_ie_simplified_version(self):
+ ...
+ def get_ie_version(self):
+ ...
+def extract_hash_from_version(full_version: str):
+ ...
+def extract_release_version(version: str):
+ ...
+def get_simplified_ie_version(version = None):
+ ...
+def simplify_version(version: str):
+ ...
diff --git a/src/bindings/python/src/openvino/utils/__init__.pyi b/src/bindings/python/src/openvino/utils/__init__.pyi
new file mode 100644
index 00000000000..0027334232e
--- /dev/null
+++ b/src/bindings/python/src/openvino/utils/__init__.pyi
@@ -0,0 +1,20 @@
+# type: ignore
+"""
+Generic utilities. Factor related functions out to separate files.
+"""
+from __future__ import annotations
+from . import data_helpers
+from . import decorators
+from . import input_validation
+from . import node_factory
+from . import postponed_constant
+from . import types
+from openvino.package_utils import classproperty
+from openvino.package_utils import deprecated
+from openvino.package_utils import deprecatedclassproperty
+from openvino.package_utils import get_cmake_path
+from openvino._pyopenvino.util import numpy_to_c
+from openvino._pyopenvino.util import replace_node
+from openvino._pyopenvino.util import replace_output_update_name
+from openvino.utils.postponed_constant import make_postponed_constant
+__all__ = ['classproperty', 'data_helpers', 'decorators', 'deprecated', 'deprecatedclassproperty', 'get_cmake_path', 'input_validation', 'make_postponed_constant', 'node_factory', 'numpy_to_c', 'postponed_constant', 'replace_node', 'replace_output_update_name', 'types']
diff --git a/src/bindings/python/src/openvino/utils/data_helpers/__init__.pyi b/src/bindings/python/src/openvino/utils/data_helpers/__init__.pyi
new file mode 100644
index 00000000000..7c5739d821c
--- /dev/null
+++ b/src/bindings/python/src/openvino/utils/data_helpers/__init__.pyi
@@ -0,0 +1,9 @@
+# type: ignore
+from __future__ import annotations
+from . import data_dispatcher
+from . import wrappers
+from openvino.utils.data_helpers.data_dispatcher import _data_dispatch
+from openvino.utils.data_helpers.wrappers import _InferRequestWrapper
+from openvino.utils.data_helpers.wrappers import OVDict
+from openvino.utils.data_helpers.wrappers import tensor_from_file
+__all__ = ['OVDict', 'data_dispatcher', 'tensor_from_file', 'wrappers']
diff --git a/src/bindings/python/src/openvino/utils/data_helpers/data_dispatcher.pyi b/src/bindings/python/src/openvino/utils/data_helpers/data_dispatcher.pyi
new file mode 100644
index 00000000000..b84fcc2ca9e
--- /dev/null
+++ b/src/bindings/python/src/openvino/utils/data_helpers/data_dispatcher.pyi
@@ -0,0 +1,49 @@
+# type: ignore
+from functools import singledispatch
+from __future__ import annotations
+from openvino._pyopenvino import ConstOutput
+from openvino._pyopenvino import RemoteTensor
+from openvino._pyopenvino import Tensor
+from openvino._pyopenvino import Type
+from openvino.utils.data_helpers.wrappers import _InferRequestWrapper
+from openvino.utils.data_helpers.wrappers import OVDict
+from typing import Any
+import numpy as np
+import openvino._pyopenvino
+import openvino.utils.data_helpers.wrappers
+import typing
+__all__ = ['Any', 'ConstOutput', 'ContainerTypes', 'OVDict', 'RemoteTensor', 'ScalarTypes', 'Tensor', 'Type', 'ValidKeys', 'create_copied', 'create_shared', 'get_request_tensor', 'is_list_simple_type', 'normalize_arrays', 'np', 'set_request_tensor', 'singledispatch', 'to_c_style', 'update_inputs', 'update_tensor', 'value_to_tensor']
+def _(inputs: typing.Union[openvino._pyopenvino.Tensor, numpy.number, int, float, str, bytes], request: openvino.utils.data_helpers.wrappers._InferRequestWrapper) -> openvino._pyopenvino.Tensor:
+ ...
+def _data_dispatch(request: openvino.utils.data_helpers.wrappers._InferRequestWrapper, inputs: typing.Union[dict, list, tuple, openvino.utils.data_helpers.wrappers.OVDict, openvino._pyopenvino.Tensor, numpy.ndarray, numpy.number, int, float, str] = None, is_shared: bool = False) -> typing.Union[dict, openvino._pyopenvino.Tensor]:
+ ...
+def create_copied(*args, **kw) -> typing.Optional[dict]:
+ ...
+def create_shared(*args, **kw) -> None:
+ ...
+def get_request_tensor(request: openvino.utils.data_helpers.wrappers._InferRequestWrapper, key: typing.Union[str, int, openvino._pyopenvino.ConstOutput, NoneType] = None) -> openvino._pyopenvino.Tensor:
+ ...
+def is_list_simple_type(input_list: list) -> bool:
+ ...
+def normalize_arrays(*args, **kw) -> typing.Any:
+ ...
+def set_request_tensor(request: openvino.utils.data_helpers.wrappers._InferRequestWrapper, tensor: openvino._pyopenvino.Tensor, key: typing.Union[str, int, openvino._pyopenvino.ConstOutput, NoneType] = None) -> None:
+ ...
+def to_c_style(value: typing.Any, is_shared: bool = False) -> typing.Any:
+ ...
+def update_inputs(inputs: dict, request: openvino.utils.data_helpers.wrappers._InferRequestWrapper) -> dict:
+ """
+ Helper function to prepare inputs for inference.
+
+ It creates copy of Tensors or copy data to already allocated Tensors on device
+ if the item is of type `np.ndarray`, `np.number`, `int`, `float` or has numpy __array__ attribute.
+ If value is of type `list`, create a Tensor based on it, copy will occur in the Tensor constructor.
+
+ """
+def update_tensor(*args, **kw) -> None:
+ ...
+def value_to_tensor(*args, **kw) -> None:
+ ...
+ContainerTypes: typing._UnionGenericAlias # value = typing.Union[dict, list, tuple, openvino.utils.data_helpers.wrappers.OVDict]
+ScalarTypes: typing._UnionGenericAlias # value = typing.Union[numpy.number, int, float]
+ValidKeys: typing._UnionGenericAlias # value = typing.Union[str, int, openvino._pyopenvino.ConstOutput]
diff --git a/src/bindings/python/src/openvino/utils/data_helpers/wrappers.pyi b/src/bindings/python/src/openvino/utils/data_helpers/wrappers.pyi
new file mode 100644
index 00000000000..7b941eda064
--- /dev/null
+++ b/src/bindings/python/src/openvino/utils/data_helpers/wrappers.pyi
@@ -0,0 +1,115 @@
+# type: ignore
+from collections.abc import Mapping
+from functools import singledispatchmethod
+from __future__ import annotations
+from openvino._pyopenvino import ConstOutput
+from openvino._pyopenvino import InferRequest as InferRequestBase
+from openvino._pyopenvino import Tensor
+import collections.abc
+import numpy
+import numpy as np
+import openvino._pyopenvino
+import typing
+__all__ = ['ConstOutput', 'InferRequestBase', 'Mapping', 'OVDict', 'Tensor', 'np', 'singledispatchmethod', 'tensor_from_file']
+class OVDict(collections.abc.Mapping):
+ """
+ Custom OpenVINO dictionary with inference results.
+
+ This class is a dict-like object. It provides possibility to
+ address data tensors with three key types:
+
+ * `openvino.ConstOutput` - port of the output
+ * `int` - index of the output
+ * `str` - names of the output
+
+ This class follows `frozenset`/`tuple` concept of immutability.
+ It is prohibited to assign new items or edit them.
+
+ To revert to the previous behavior use `to_dict` method which
+ return shallow copy of underlaying dictionary.
+ Note: It removes addressing feature! New dictionary keeps
+ only `ConstOutput` keys.
+
+ If a tuple returns value is needed, use `to_tuple` method which
+ converts values to the tuple.
+
+ :Example:
+
+ .. code-block:: python
+
+ # Reverts to the previous behavior of the native dict
+ result = request.infer(inputs).to_dict()
+ # or alternatively:
+ result = dict(request.infer(inputs))
+
+ .. code-block:: python
+
+ # To dispatch outputs of multi-ouput inference:
+ out1, out2, out3, _ = request.infer(inputs).values()
+ # or alternatively:
+ out1, out2, out3, _ = request.infer(inputs).to_tuple()
+
+ """
+ __abstractmethods__: typing.ClassVar[frozenset] # value = frozenset()
+ _abc_impl: typing.ClassVar[_abc._abc_data] # value = <_abc._abc_data object>
+ @staticmethod
+ def _OVDict__getitem_impl(*args, **kwargs) -> numpy.ndarray:
+ ...
+ def _(self, key: str) -> numpy.ndarray:
+ ...
+ def _OVDict__get_key(self, index: int) -> openvino._pyopenvino.ConstOutput:
+ ...
+ def _OVDict__get_names(self) -> typing.Dict[openvino._pyopenvino.ConstOutput, typing.Set[str]]:
+ """
+ Return names of every output key.
+
+ Insert empty set if key has no name.
+
+ """
+ def __getitem__(self, key: typing.Union[openvino._pyopenvino.ConstOutput, int, str]) -> numpy.ndarray:
+ ...
+ def __init__(self, _dict: typing.Dict[openvino._pyopenvino.ConstOutput, numpy.ndarray]) -> None:
+ ...
+ def __iter__(self) -> typing.Iterator:
+ ...
+ def __len__(self) -> int:
+ ...
+ def __repr__(self) -> str:
+ ...
+ def items(self) -> typing.ItemsView[openvino._pyopenvino.ConstOutput, numpy.ndarray]:
+ ...
+ def keys(self) -> typing.KeysView[openvino._pyopenvino.ConstOutput]:
+ ...
+ def names(self) -> typing.Tuple[typing.Set[str], ...]:
+ """
+ Return names of every output key.
+
+ Insert empty set if key has no name.
+
+ """
+ def to_dict(self) -> typing.Dict[openvino._pyopenvino.ConstOutput, numpy.ndarray]:
+ """
+ Return underlaying native dictionary.
+
+ Function performs shallow copy, thus any modifications to
+ returned values may affect this class as well.
+
+ """
+ def to_tuple(self) -> tuple:
+ """
+ Convert values of this dictionary to a tuple.
+ """
+ def values(self) -> typing.ValuesView[numpy.ndarray]:
+ ...
+class _InferRequestWrapper(openvino._pyopenvino.InferRequest):
+ """
+ InferRequest class with internal memory.
+ """
+ def __init__(self, other: openvino._pyopenvino.InferRequest) -> None:
+ ...
+ def _is_single_input(self) -> bool:
+ ...
+def tensor_from_file(path: str) -> openvino._pyopenvino.Tensor:
+ """
+ Create Tensor from file. Data will be read with dtype of unit8.
+ """
diff --git a/src/bindings/python/src/openvino/utils/decorators.pyi b/src/bindings/python/src/openvino/utils/decorators.pyi
new file mode 100644
index 00000000000..1107e2f5409
--- /dev/null
+++ b/src/bindings/python/src/openvino/utils/decorators.pyi
@@ -0,0 +1,51 @@
+# type: ignore
+from functools import wraps
+from __future__ import annotations
+from inspect import signature
+from openvino._pyopenvino import Node
+from openvino._pyopenvino import Output
+from openvino.utils.types import as_node
+from openvino.utils.types import as_nodes
+from typing import Any
+from typing import get_args
+from typing import get_origin
+import openvino._pyopenvino
+import typing
+__all__ = ['Any', 'MultiMethod', 'Node', 'NodeInput', 'Output', 'as_node', 'as_nodes', 'binary_op', 'custom_preprocess_function', 'get_args', 'get_origin', 'nameable_op', 'overloading', 'registry', 'signature', 'unary_op', 'wraps']
+class MultiMethod:
+ def __call__(self, *args, **kwargs) -> typing.Any:
+ ...
+ def __init__(self, name: str):
+ ...
+ def check_invoked_types_in_overloaded_funcs(self, tuple_to_check: tuple, key_structure: tuple) -> bool:
+ ...
+ def matches_optional(self, optional_type, actual_type) -> bool:
+ ...
+ def matches_union(self, union_type, actual_type) -> bool:
+ ...
+ def register(self, types: tuple, function: typing.Callable) -> None:
+ ...
+def _get_name(**kwargs: typing.Any) -> openvino._pyopenvino.Node:
+ ...
+def _set_node_friendly_name(node: openvino._pyopenvino.Node, *, name: typing.Optional[str] = None) -> openvino._pyopenvino.Node:
+ ...
+def binary_op(node_factory_function: typing.Callable) -> typing.Callable:
+ """
+ Convert the first two input values to Constant Nodes if numeric values are detected.
+ """
+def custom_preprocess_function(custom_function: typing.Callable) -> typing.Callable:
+ """
+ Convert Node returned from custom_function to Output.
+ """
+def nameable_op(node_factory_function: typing.Callable) -> typing.Callable:
+ """
+ Set the name to the openvino operator returned by the wrapped function.
+ """
+def overloading(*types: tuple) -> typing.Callable:
+ ...
+def unary_op(node_factory_function: typing.Callable) -> typing.Callable:
+ """
+ Convert the first input value to a Constant Node if a numeric value is detected.
+ """
+NodeInput: typing._UnionGenericAlias # value = typing.Union[openvino._pyopenvino.Node, int, float, numpy.ndarray]
+registry: dict # value = {'read_value': <openvino.utils.decorators.MultiMethod object>, 'constant': <openvino.utils.decorators.MultiMethod object>}
diff --git a/src/bindings/python/src/openvino/utils/input_validation.pyi b/src/bindings/python/src/openvino/utils/input_validation.pyi
new file mode 100644
index 00000000000..d4f93d051dd
--- /dev/null
+++ b/src/bindings/python/src/openvino/utils/input_validation.pyi
@@ -0,0 +1,83 @@
+# type: ignore
+"""
+Helper functions for validating user input.
+"""
+from __future__ import annotations
+from openvino.exceptions import UserInputError
+from typing import Any
+import logging as logging
+import numpy as np
+__all__ = ['Any', 'UserInputError', 'assert_list_of_ints', 'check_valid_attribute', 'check_valid_attributes', 'is_non_negative_value', 'is_positive_value', 'log', 'logging', 'np']
+def _check_value(op_name, attr_key, value, val_type, cond = None):
+ """
+ Check whether provided value satisfies specified criteria.
+
+ :param op_name: The operator name which attributes are checked.
+ :param attr_key: The attribute name.
+ :param value: The value to check.
+ :param val_type: Required value type.
+ :param cond: The optional function running additional checks.
+
+ :raises UserInputError:
+
+ returns: True if attribute satisfies all criterias. Otherwise False.
+
+ """
+def assert_list_of_ints(value_list: typing.Iterable[int], message: str) -> None:
+ """
+ Verify that the provided value is an iterable of integers.
+ """
+def check_valid_attribute(op_name, attr_dict, attr_key, val_type, cond = None, required = False):
+ """
+ Check whether specified attribute satisfies given criteria.
+
+ :param op_name: The operator name which attributes are checked.
+ :param attr_dict: Dictionary containing key-value attributes to check.
+ :param attr_key: Key value for validated attribute.
+ :param val_type: Value type for validated attribute.
+ :param cond: Any callable wich accept attribute value and returns True or False.
+ :param required: Whether provided attribute key is not required. This mean it may be missing
+ from provided dictionary.
+
+ :raises UserInputError:
+
+ returns True if attribute satisfies all criterias. Otherwise False.
+
+ """
+def check_valid_attributes(op_name, attributes, requirements):
+ """
+ Perform attributes validation according to specified type, value criteria.
+
+ :param op_name: The operator name which attributes are checked.
+ :param attributes: The dictionary with user provided attributes to check.
+ :param requirements: The list of tuples describing attributes' requirements. The tuple should
+ contain following values:
+ (attr_name: str,
+ is_required: bool,
+ value_type: Type,
+ value_condition: Callable)
+
+ :raises UserInputError:
+
+ :returns True if all attributes satisfies criterias. Otherwise False.
+
+ """
+def is_non_negative_value(value):
+ """
+ Determine whether the specified x is non-negative value.
+
+ :param value: The value to check.
+
+ returns True if the specified x is non-negative value, False otherwise.
+
+ """
+def is_positive_value(value):
+ """
+ Determine whether the specified x is positive value.
+
+ :param value: The value to check.
+
+ returns True if the specified x is positive value, False otherwise.
+
+ """
+log: logging.Logger # value = <Logger openvino.utils.input_validation (INFO)>
diff --git a/src/bindings/python/src/openvino/utils/node_factory.pyi b/src/bindings/python/src/openvino/utils/node_factory.pyi
new file mode 100644
index 00000000000..dc1fae12ee4
--- /dev/null
+++ b/src/bindings/python/src/openvino/utils/node_factory.pyi
@@ -0,0 +1,71 @@
+# type: ignore
+from functools import singledispatchmethod
+from __future__ import annotations
+from openvino.exceptions import UserInputError
+from openvino._pyopenvino import Extension
+from openvino._pyopenvino import Node
+from openvino._pyopenvino import NodeFactory as _NodeFactory
+from openvino._pyopenvino import Output
+from pathlib import Path
+from typing import Any
+import openvino._pyopenvino
+__all__ = ['Any', 'DEFAULT_OPSET', 'Extension', 'Node', 'NodeFactory', 'Output', 'Path', 'UserInputError', 'singledispatchmethod']
+class NodeFactory:
+ """
+ Factory front-end to create node objects.
+ """
+ @staticmethod
+ def _arguments_as_outputs(arguments: typing.List[typing.Union[openvino._pyopenvino.Node, openvino._pyopenvino.Output]]) -> typing.List[openvino._pyopenvino.Output]:
+ ...
+ @staticmethod
+ def add_extension(*args, **kwargs) -> None:
+ ...
+ def _(self, extension: typing.Union[openvino._pyopenvino.Extension, typing.List[openvino._pyopenvino.Extension]]) -> None:
+ """
+ Add custom operations from extension library.
+
+ Extends operation types available for creation by operations
+ loaded from prebuilt C++ library. Enables instantiation of custom
+ operations exposed in that library without direct use of
+ operation classes. Other types of extensions, e.g. conversion
+ extensions, if they are exposed in the library, are ignored.
+
+ In case if an extension operation type from a library match
+ one of existing operations registered before (from the standard
+ OpenVINO opset or from another extension loaded earlier), a new
+ operation overrides an old operation.
+
+ Version of an operation is ignored: an operation with a given type and
+ a given version/opset will override operation with the same type but
+ different version/opset in the same NodeFactory instance.
+ Use separate libraries and NodeFactory instances to differentiate
+ versions/opsets.
+
+ :param extension: A single Extension or list of Extensions.
+
+ """
+ def __init__(self, opset_version: str = 'opset13') -> None:
+ """
+ Create the NodeFactory object.
+
+ :param opset_version: The opset version the factory will use to produce ops from.
+
+ """
+ def create(self, op_type_name: str, arguments: typing.Optional[typing.List[typing.Union[openvino._pyopenvino.Node, openvino._pyopenvino.Output]]] = None, attributes: typing.Optional[typing.Dict[str, typing.Any]] = None) -> openvino._pyopenvino.Node:
+ """
+ Create node object from provided description.
+
+ The user does not have to provide all node's attributes, but only required ones.
+
+ :param op_type_name: The operator type name.
+ :param arguments: The operator arguments.
+ :param attributes: The operator attributes.
+
+ :return: Node object representing requested operator with attributes set.
+
+ """
+def _get_node_factory(opset_version: typing.Optional[str] = None) -> NodeFactory:
+ """
+ Return NodeFactory configured to create operators from specified opset version.
+ """
+DEFAULT_OPSET: str = 'opset13'
diff --git a/src/bindings/python/src/openvino/utils/postponed_constant.pyi b/src/bindings/python/src/openvino/utils/postponed_constant.pyi
new file mode 100644
index 00000000000..b7b57d7d006
--- /dev/null
+++ b/src/bindings/python/src/openvino/utils/postponed_constant.pyi
@@ -0,0 +1,26 @@
+# type: ignore
+from __future__ import annotations
+from openvino._op_base import Op
+from openvino._pyopenvino import PartialShape
+from openvino._pyopenvino import Shape
+from openvino._pyopenvino import Tensor
+from openvino._pyopenvino import Type
+import openvino._op_base
+import openvino._pyopenvino
+__all__ = ['Op', 'PartialShape', 'PostponedConstant', 'Shape', 'Tensor', 'Type', 'make_postponed_constant']
+class PostponedConstant(openvino._op_base.Op):
+ """
+ Postponed Constant is a way to materialize a big constant only when it is going to be serialized to IR and then immediately dispose.
+ """
+ def __init__(self, element_type: openvino._pyopenvino.Type, shape: openvino._pyopenvino.Shape, maker: typing.Callable[[openvino._pyopenvino.Tensor], NoneType], name: typing.Optional[str] = None) -> None:
+ ...
+ def clone_with_new_inputs(self, new_inputs: typing.List[openvino._pyopenvino.Tensor]) -> openvino._op_base.Op:
+ ...
+ def evaluate(self, outputs: typing.List[openvino._pyopenvino.Tensor], _: typing.List[openvino._pyopenvino.Tensor]) -> bool:
+ ...
+ def has_evaluate(self) -> bool:
+ ...
+ def validate_and_infer_types(self) -> None:
+ ...
+def make_postponed_constant(element_type: openvino._pyopenvino.Type, shape: openvino._pyopenvino.Shape, maker: typing.Callable[[openvino._pyopenvino.Tensor], NoneType], name: typing.Optional[str] = None) -> openvino._op_base.Op:
+ ...
diff --git a/src/bindings/python/src/openvino/utils/types.pyi b/src/bindings/python/src/openvino/utils/types.pyi
new file mode 100644
index 00000000000..be1c7eae305
--- /dev/null
+++ b/src/bindings/python/src/openvino/utils/types.pyi
@@ -0,0 +1,62 @@
+# type: ignore
+"""
+Functions related to converting between Python and numpy types and openvino types.
+"""
+from __future__ import annotations
+from openvino.exceptions import OVTypeError
+from openvino._pyopenvino import Node
+from openvino._pyopenvino import Output
+from openvino._pyopenvino import Shape
+from openvino._pyopenvino import Type
+from openvino._pyopenvino.op import Constant
+import logging as logging
+import numpy
+import numpy as np
+import openvino._pyopenvino
+import openvino._pyopenvino.op
+import typing
+__all__ = ['Constant', 'Node', 'NodeInput', 'NumericData', 'NumericType', 'OVTypeError', 'Output', 'ScalarData', 'Shape', 'TensorShape', 'Type', 'as_node', 'as_nodes', 'get_dtype', 'get_element_type', 'get_element_type_str', 'get_ndarray', 'get_numpy_ctype', 'get_shape', 'log', 'logging', 'make_constant_node', 'np', 'openvino_to_numpy_types_map', 'openvino_to_numpy_types_str_map']
+def as_node(input_value: typing.Union[openvino._pyopenvino.Node, int, float, numpy.ndarray], name: typing.Optional[str] = None) -> openvino._pyopenvino.Node:
+ """
+ Return input values as nodes. Scalars will be converted to Constant nodes.
+ """
+def as_nodes(*input_values: typing.Union[openvino._pyopenvino.Node, int, float, numpy.ndarray], name: typing.Optional[str] = None) -> typing.List[openvino._pyopenvino.Node]:
+ """
+ Return input values as nodes. Scalars will be converted to Constant nodes.
+ """
+def get_dtype(openvino_type: openvino._pyopenvino.Type) -> numpy.dtype:
+ """
+ Return a numpy.dtype for an openvino element type.
+ """
+def get_element_type(data_type: typing.Union[type, numpy.dtype]) -> openvino._pyopenvino.Type:
+ """
+ Return an ngraph element type for a Python type or numpy.dtype.
+ """
+def get_element_type_str(data_type: typing.Union[type, numpy.dtype]) -> str:
+ """
+ Return an ngraph element type string representation for a Python type or numpy dtype.
+ """
+def get_ndarray(data: typing.Union[int, float, numpy.ndarray]) -> numpy.ndarray:
+ """
+ Wrap data into a numpy ndarray.
+ """
+def get_numpy_ctype(openvino_type: openvino._pyopenvino.Type) -> type:
+ """
+ Return numpy ctype for an openvino element type.
+ """
+def get_shape(data: typing.Union[int, float, numpy.ndarray]) -> typing.List[int]:
+ """
+ Return a shape of NumericData.
+ """
+def make_constant_node(value: typing.Union[int, float, numpy.ndarray], dtype: typing.Union[type, numpy.dtype, openvino._pyopenvino.Type] = None, *, name: typing.Optional[str] = None) -> openvino._pyopenvino.op.Constant:
+ """
+ Return an openvino Constant node with the specified value.
+ """
+NodeInput: typing._UnionGenericAlias # value = typing.Union[openvino._pyopenvino.Node, int, float, numpy.ndarray]
+NumericData: typing._UnionGenericAlias # value = typing.Union[int, float, numpy.ndarray]
+NumericType: typing._UnionGenericAlias # value = typing.Union[type, numpy.dtype]
+ScalarData: typing._UnionGenericAlias # value = typing.Union[int, float]
+TensorShape: typing._GenericAlias # value = typing.List[int]
+log: logging.Logger # value = <Logger openvino.utils.types (INFO)>
+openvino_to_numpy_types_map: list # value = [(<Type: 'char'>, bool), (<Type: 'char'>, numpy.bool), (<Type: 'float16'>, numpy.float16), (<Type: 'float32'>, numpy.float32), (<Type: 'double64'>, numpy.float64), (<Type: 'int8_t'>, numpy.int8), (<Type: 'int16_t'>, numpy.int16), (<Type: 'int32_t'>, numpy.int32), (<Type: 'int64_t'>, numpy.int64), (<Type: 'uint8_t'>, numpy.uint8), (<Type: 'uint16_t'>, numpy.uint16), (<Type: 'uint32_t'>, numpy.uint32), (<Type: 'uint64_t'>, numpy.uint64), (<Type: 'bfloat16'>, numpy.uint16), (<Type: 'string'>, str), (<Type: 'string'>, numpy.str_), (<Type: 'string'>, bytes), (<Type: 'string'>, numpy.bytes_)]
+openvino_to_numpy_types_str_map: list = [('boolean', bool), ('boolean', numpy.bool), ('f16', numpy.float16), ('f32', numpy.float32), ('f64', numpy.float64), ('i8', numpy.int8), ('i16', numpy.int16), ('i32', numpy.int32), ('i64', numpy.int64), ('u8', numpy.uint8), ('u16', numpy.uint16), ('u32', numpy.uint32), ('u64', numpy.uint64), ('string', str), ('string', numpy.str_), ('string', bytes), ('string', numpy.bytes_)]
diff --git a/src/bindings/python/src/pyopenvino/core/core.cpp b/src/bindings/python/src/pyopenvino/core/core.cpp
index be396b9b014..331d25d9707 100644
--- a/src/bindings/python/src/pyopenvino/core/core.cpp
+++ b/src/bindings/python/src/pyopenvino/core/core.cpp
@@ -5,6 +5,7 @@
#include "pyopenvino/core/core.hpp"
#include <pybind11/stl.h>
+#include <pybind11/typing.h>
#include <fstream>
#include <openvino/core/any.hpp>
@@ -38,7 +39,7 @@ void regclass_Core(py::module m) {
Sets properties.
:param properties: Dict of pairs: (property name, property value).
- :type properties: dict
+ :type properties: typing.Dict[str, typing.Any]
)");
// Overload for single tuple
@@ -53,7 +54,7 @@ void regclass_Core(py::module m) {
Sets properties for the device.
:param property: Tuple of (property name, matching property value).
- :type property: tuple
+ :type property: typing.Tuple[str, typing.Any]
)");
cls.def(
@@ -69,7 +70,7 @@ void regclass_Core(py::module m) {
:param device_name: Name of the device.
:type device_name: str
:param properties: Dict of pairs: (property name, property value).
- :type properties: dict
+ :type properties: typing.Dict[str, typing.Any]
)");
// Overload for single tuple
@@ -87,7 +88,7 @@ void regclass_Core(py::module m) {
:param device_name: Name of the device.
:type device_name: str
:param property: Tuple of (property name, matching property value).
- :type property: tuple
+ :type property: typing.Tuple[str, typing.Any]
)");
cls.def(
@@ -105,7 +106,7 @@ void regclass_Core(py::module m) {
:param property: Property or name of Property.
:type property: str
:return: Extracted information from property.
- :rtype: object
+ :rtype: typing.Any
)");
cls.def(
@@ -120,7 +121,7 @@ void regclass_Core(py::module m) {
:param property: Property or name of Property.
:type property: str
:return: Extracted information from property.
- :rtype: object
+ :rtype: typing.Any
)");
cls.def(
@@ -148,7 +149,7 @@ void regclass_Core(py::module m) {
:param device_name: Name of the device which will load the model.
:type device_name: str
:param properties: Optional dict of pairs: (property name, property value) relevant only for this load operation.
- :type properties: dict
+ :type properties: typing.Dict[str, typing.Any]
:return: A compiled model.
:rtype: openvino.CompiledModel
)");
@@ -174,7 +175,7 @@ void regclass_Core(py::module m) {
:param model: Model acquired from read_model function.
:type model: openvino.Model
:param properties: Optional dict of pairs: (property name, property value) relevant only for this load operation.
- :type properties: dict
+ :type properties: typing.Dict[str, typing.Any]
:return: A compiled model.
:rtype: openvino.CompiledModel
)");
@@ -201,11 +202,11 @@ void regclass_Core(py::module m) {
GIL is released while running this function.
:param model_path: A path to a model in IR / ONNX / PDPD / TF and TFLite format.
- :type model_path: Union[str, pathlib.Path]
+ :type model_path: typing.Union[str, pathlib.Path]
:param device_name: Name of the device to load the model to.
:type device_name: str
:param properties: Optional dict of pairs: (property name, property value) relevant only for this load operation.
- :type properties: dict
+ :type properties: typing.Dict[str, typing.Any]
:return: A compiled model.
:rtype: openvino.CompiledModel
)");
@@ -276,9 +277,9 @@ void regclass_Core(py::module m) {
GIL is released while running this function.
:param model_path: A path to a model in IR / ONNX / PDPD / TF and TFLite format.
- :type model_path: Union[str, pathlib.Path]
+ :type model_path: typing.Union[str, pathlib.Path]
:param properties: Optional dict of pairs: (property name, property value) relevant only for this load operation.
- :type properties: dict
+ :type properties: typing.Dict[str, typing.Any]
:return: A compiled model.
:rtype: openvino.CompiledModel
)");
@@ -306,7 +307,7 @@ void regclass_Core(py::module m) {
:param context: RemoteContext instance.
:type context: openvino.RemoteContext
:param properties: dict of pairs: (property name, property value) relevant only for this load operation.
- :type properties: dict
+ :type properties: typing.Dict[str, typing.Any]
:return: A compiled model.
:rtype: openvino.CompiledModel
)");
@@ -325,15 +326,15 @@ void regclass_Core(py::module m) {
:param device_name: Name of a device to create a new shared context on.
:type device_name: str
- :param device_name: dict of device-specific shared context remote properties.
- :type device_name: dict
+ :param properties: dict of device-specific shared context remote properties.
+ :type properties: typing.Dict[str, typing.Any]
:return: Remote context instance.
:rtype: openvino.RemoteContext
)");
cls.def(
"get_default_context",
- [](ov::Core& self, const std::string& device_name) {
+ [](ov::Core& self, const std::string& device_name) -> RemoteContextWrapper {
return RemoteContextWrapper(self.get_default_context(device_name));
},
py::arg("device_name"),
@@ -355,7 +356,7 @@ void regclass_Core(py::module m) {
:param device_name: Device name to identify a plugin.
:type device_name: str
:return: Plugin version information.
- :rtype: Dict[str, openvino.Version]
+ :rtype: typing.Dict[str, openvino.Version]
)");
cls.def(
@@ -418,7 +419,7 @@ void regclass_Core(py::module m) {
For TFLite format (*.tflite) weights parameter is not used.
:type weights: str
:param config: Optional map of pairs: (property name, property value) relevant only for this read operation.
- :type config: dict, optional
+ :type config: typing.Dict[str, typing.Any], optional
:return: A model.
:rtype: openvino.Model
)");
@@ -491,7 +492,7 @@ void regclass_Core(py::module m) {
GIL is released while running this function.
:param model: A path to a model in IR / ONNX / PDPD / TF and TFLite format or a model itself wrapped in io.ByesIO format.
- :type model: Union[pathlib.Path, io.BytesIO]
+ :type model: typing.Union[pathlib.Path, io.BytesIO]
:param weights: A path to a data file For IR format (*.bin): if path is empty,
it tries to read a bin file with the same name as xml and if the bin
file with the same name was not found, loads IR without weights.
@@ -499,9 +500,9 @@ void regclass_Core(py::module m) {
For PDPD format (*.pdmodel) weights parameter is not used.
For TF format (*.pb): weights parameter is not used.
For TFLite format (*.tflite) weights parameter is not used.
- :type weights: Union[pathlib.Path, io.BytesIO]
+ :type weights: typing.Union[pathlib.Path, io.BytesIO]
:param config: Optional map of pairs: (property name, property value) relevant only for this read operation.
- :type config: dict, optional
+ :type config: typing.Dict[str, typing.Any], optional
:return: A model.
:rtype: openvino.Model
)");
@@ -547,12 +548,12 @@ void regclass_Core(py::module m) {
:param model_stream: Input stream, containing a model previously exported, using export_model method.
- :type model_stream: Union[io.BytesIO, bytes]
+ :type model_stream: typing.Union[io.BytesIO, bytes]
:param device_name: Name of device to which compiled model is imported.
Note: if device_name is not used to compile the original model, an exception is thrown.
:type device_name: str
:param properties: Optional map of pairs: (property name, property value) relevant only for this load operation.
- :type properties: dict, optional
+ :type properties: typing.Dict[str, typing.Any], optional
:return: A compiled model.
:rtype: openvino.CompiledModel
@@ -612,7 +613,7 @@ void regclass_Core(py::module m) {
:param device_name: A device name to register plugin for.
:type device_name: str
:param config: Plugin default configuration
- :type config: dict, optional
+ :type config: typing.Dict[str, typing.Any], optional
)");
cls.def("register_plugins",
@@ -643,7 +644,7 @@ void regclass_Core(py::module m) {
[](ov::Core& self,
const std::shared_ptr<const ov::Model>& model,
const std::string& device_name,
- const std::map<std::string, py::object>& properties) {
+ const std::map<std::string, py::object>& properties) -> std::map<std::string, std::string> {
auto _properties = Common::utils::properties_to_any_map(properties);
py::gil_scoped_release release;
return self.query_model(model, device_name, _properties);
@@ -661,9 +662,9 @@ void regclass_Core(py::module m) {
:param device_name: A name of a device to query.
:type device_name: str
:param properties: Optional dict of pairs: (property name, property value)
- :type properties: dict
+ :type properties: typing.Dict[str, typing.Any]
:return: Pairs a operation name -> a device name supporting this operation.
- :rtype: dict
+ :rtype: typing.Dict[str, str]
)");
cls.def("add_extension",
@@ -694,7 +695,7 @@ void regclass_Core(py::module m) {
Registers extensions to a Core object.
:param extensions: List of Extension objects.
- :type extensions: list[openvino.Extension]
+ :type extensions: typing.List[openvino.Extension]
)");
cls.def(
@@ -707,7 +708,7 @@ void regclass_Core(py::module m) {
Registers custom Op to a Core object.
:param custom_op: type of custom Op
- :type custom_op: openvino.Op
+ :type custom_op: typing.Type[openvino.Op]
)");
cls.def("get_available_devices",
@@ -722,7 +723,7 @@ void regclass_Core(py::module m) {
If there more than one device of specific type, they are enumerated with .# suffix.
Such enumerated device can later be used as a device name in all Core methods like:
compile_model, query_model, set_property and so on.
- :rtype: list
+ :rtype: typing.List[str]
)");
cls.def_property_readonly("available_devices",
@@ -737,7 +738,7 @@ void regclass_Core(py::module m) {
If there more than one device of specific type, they are enumerated with .# suffix.
Such enumerated device can later be used as a device name in all Core methods like:
compile_model, query_model, set_property and so on.
- :rtype: list
+ :rtype: typing.List[str]
)");
cls.def("__repr__", [](const ov::Core& self) {
diff --git a/src/bindings/python/src/pyopenvino/core/profiling_info.cpp b/src/bindings/python/src/pyopenvino/core/profiling_info.cpp
index 2f8f3fb44a3..0f9e8d0fc64 100644
--- a/src/bindings/python/src/pyopenvino/core/profiling_info.cpp
+++ b/src/bindings/python/src/pyopenvino/core/profiling_info.cpp
@@ -19,6 +19,12 @@ void regclass_ProfilingInfo(py::module m) {
return Common::get_simple_repr(self);
});
+ py::enum_<ov::ProfilingInfo::Status>(cls, "Status")
+ .value("NOT_RUN", ov::ProfilingInfo::Status::NOT_RUN)
+ .value("OPTIMIZED_OUT", ov::ProfilingInfo::Status::OPTIMIZED_OUT)
+ .value("EXECUTED", ov::ProfilingInfo::Status::EXECUTED)
+ .export_values();
+
cls.def(py::init<>())
.def_readwrite("status", &ov::ProfilingInfo::status)
.def_readwrite("real_time", &ov::ProfilingInfo::real_time)
@@ -26,10 +32,4 @@ void regclass_ProfilingInfo(py::module m) {
.def_readwrite("node_name", &ov::ProfilingInfo::node_name)
.def_readwrite("exec_type", &ov::ProfilingInfo::exec_type)
.def_readwrite("node_type", &ov::ProfilingInfo::node_type);
-
- py::enum_<ov::ProfilingInfo::Status>(cls, "Status")
- .value("NOT_RUN", ov::ProfilingInfo::Status::NOT_RUN)
- .value("OPTIMIZED_OUT", ov::ProfilingInfo::Status::OPTIMIZED_OUT)
- .value("EXECUTED", ov::ProfilingInfo::Status::EXECUTED)
- .export_values();
}
diff --git a/src/bindings/python/src/pyopenvino/core/tensor.cpp b/src/bindings/python/src/pyopenvino/core/tensor.cpp
index 3393062c19c..30d1e789cbb 100644
--- a/src/bindings/python/src/pyopenvino/core/tensor.cpp
+++ b/src/bindings/python/src/pyopenvino/core/tensor.cpp
@@ -6,6 +6,7 @@
#include <pybind11/numpy.h>
#include <pybind11/stl.h>
+#include <pybind11/typing.h>
#include "openvino/runtime/tensor.hpp"
#include "pyopenvino/core/common.hpp"
diff --git a/src/bindings/python/src/pyopenvino/graph/axis_set.cpp b/src/bindings/python/src/pyopenvino/graph/axis_set.cpp
index c5e527bec45..de96658770a 100644
--- a/src/bindings/python/src/pyopenvino/graph/axis_set.cpp
+++ b/src/bindings/python/src/pyopenvino/graph/axis_set.cpp
@@ -19,7 +19,6 @@ namespace py = pybind11;
void regclass_graph_AxisSet(py::module m) {
py::class_<ov::AxisSet, std::shared_ptr<ov::AxisSet>> axis_set(m, "AxisSet");
axis_set.doc() = "openvino.AxisSet wraps ov::AxisSet";
- axis_set.def(py::init<const std::initializer_list<size_t>&>(), py::arg("axes"));
axis_set.def(py::init<const std::set<size_t>&>(), py::arg("axes"));
axis_set.def(py::init<const std::vector<size_t>&>(), py::arg("axes"));
axis_set.def(py::init<const ov::AxisSet&>(), py::arg("axes"));
diff --git a/src/bindings/python/src/pyopenvino/graph/axis_vector.cpp b/src/bindings/python/src/pyopenvino/graph/axis_vector.cpp
index 325e8583fa3..a686761829e 100644
--- a/src/bindings/python/src/pyopenvino/graph/axis_vector.cpp
+++ b/src/bindings/python/src/pyopenvino/graph/axis_vector.cpp
@@ -15,7 +15,6 @@ namespace py = pybind11;
void regclass_graph_AxisVector(py::module m) {
py::class_<ov::AxisVector, std::shared_ptr<ov::AxisVector>> axis_vector(m, "AxisVector");
axis_vector.doc() = "openvino.AxisVector wraps ov::AxisVector";
- axis_vector.def(py::init<const std::initializer_list<size_t>&>(), py::arg("axes"));
axis_vector.def(py::init<const std::vector<size_t>&>(), py::arg("axes"));
axis_vector.def(py::init<const ov::AxisVector&>(), py::arg("axes"));
axis_vector.def("__setitem__", [](ov::AxisVector& self, size_t key, size_t value) {
diff --git a/src/bindings/python/src/pyopenvino/graph/coordinate.cpp b/src/bindings/python/src/pyopenvino/graph/coordinate.cpp
index fa86259b2e4..f9353c45f9f 100644
--- a/src/bindings/python/src/pyopenvino/graph/coordinate.cpp
+++ b/src/bindings/python/src/pyopenvino/graph/coordinate.cpp
@@ -15,7 +15,6 @@ namespace py = pybind11;
void regclass_graph_Coordinate(py::module m) {
py::class_<ov::Coordinate, std::shared_ptr<ov::Coordinate>> coordinate(m, "Coordinate");
coordinate.doc() = "openvino.Coordinate wraps ov::Coordinate";
- coordinate.def(py::init<const std::initializer_list<size_t>&>());
coordinate.def(py::init<const ov::Shape&>());
coordinate.def(py::init<const std::vector<size_t>&>());
coordinate.def(py::init<const ov::Coordinate&>());
diff --git a/src/bindings/python/src/pyopenvino/graph/coordinate_diff.cpp b/src/bindings/python/src/pyopenvino/graph/coordinate_diff.cpp
index d251ca82874..ebdb79ab376 100644
--- a/src/bindings/python/src/pyopenvino/graph/coordinate_diff.cpp
+++ b/src/bindings/python/src/pyopenvino/graph/coordinate_diff.cpp
@@ -19,7 +19,6 @@ namespace py = pybind11;
void regclass_graph_CoordinateDiff(py::module m) {
py::class_<ov::CoordinateDiff, std::shared_ptr<ov::CoordinateDiff>> coordinate_diff(m, "CoordinateDiff");
coordinate_diff.doc() = "openvino.CoordinateDiff wraps ov::CoordinateDiff";
- coordinate_diff.def(py::init<const std::initializer_list<ptrdiff_t>&>());
coordinate_diff.def(py::init<const std::vector<ptrdiff_t>&>());
coordinate_diff.def(py::init<const ov::CoordinateDiff&>());
diff --git a/src/bindings/python/src/pyopenvino/graph/descriptors/tensor.cpp b/src/bindings/python/src/pyopenvino/graph/descriptors/tensor.cpp
index 4ad656baa48..be0e1e8e2dc 100644
--- a/src/bindings/python/src/pyopenvino/graph/descriptors/tensor.cpp
+++ b/src/bindings/python/src/pyopenvino/graph/descriptors/tensor.cpp
@@ -10,6 +10,7 @@
#include <string>
#include "openvino/core/descriptor/tensor.hpp"
+#include "openvino/runtime/tensor.hpp"
#include "pyopenvino/core/common.hpp"
namespace py = pybind11;
diff --git a/src/bindings/python/src/pyopenvino/graph/passes/regmodule_graph_passes.cpp b/src/bindings/python/src/pyopenvino/graph/passes/regmodule_graph_passes.cpp
index 5bde3db5154..c103b7f980f 100644
--- a/src/bindings/python/src/pyopenvino/graph/passes/regmodule_graph_passes.cpp
+++ b/src/bindings/python/src/pyopenvino/graph/passes/regmodule_graph_passes.cpp
@@ -22,9 +22,9 @@ void regmodule_graph_passes(py::module m) {
reg_passes_predicate(m_passes);
regclass_passes_PassBase(m_passes);
regclass_passes_ModelPass(m_passes);
- regclass_passes_GraphRewrite(m_passes);
regclass_passes_Matcher(m_passes);
regclass_passes_MatcherPass(m_passes);
+ regclass_passes_GraphRewrite(m_passes);
regclass_transformations(m_passes);
regclass_passes_Manager(m_passes);
reg_passes_pattern_ops(m_passes);
diff --git a/src/bindings/python/src/pyopenvino/graph/preprocess/pre_post_process.cpp b/src/bindings/python/src/pyopenvino/graph/preprocess/pre_post_process.cpp
index 564ebcd3745..c16d87fce52 100644
--- a/src/bindings/python/src/pyopenvino/graph/preprocess/pre_post_process.cpp
+++ b/src/bindings/python/src/pyopenvino/graph/preprocess/pre_post_process.cpp
@@ -448,23 +448,6 @@ static void regclass_graph_InputInfo(py::module m) {
});
}
-static void regclass_graph_OutputInfo(py::module m) {
- py::class_<ov::preprocess::OutputInfo, Common::ref_wrapper<ov::preprocess::OutputInfo>> out(m, "OutputInfo");
- out.doc() = "openvino.preprocess.OutputInfo wraps ov::preprocess::OutputInfo";
-
- out.def("tensor", [](ov::preprocess::OutputInfo& self) {
- return &self.tensor();
- });
-
- out.def("postprocess", [](ov::preprocess::OutputInfo& self) {
- return &self.postprocess();
- });
-
- out.def("model", [](ov::preprocess::OutputInfo& self) {
- return &self.model();
- });
-}
-
static void regclass_graph_OutputModelInfo(py::module m) {
py::class_<ov::preprocess::OutputModelInfo, Common::ref_wrapper<ov::preprocess::OutputModelInfo>> info(
m,
@@ -485,6 +468,23 @@ static void regclass_graph_OutputModelInfo(py::module m) {
)");
}
+static void regclass_graph_OutputInfo(py::module m) {
+ py::class_<ov::preprocess::OutputInfo, Common::ref_wrapper<ov::preprocess::OutputInfo>> out(m, "OutputInfo");
+ out.doc() = "openvino.preprocess.OutputInfo wraps ov::preprocess::OutputInfo";
+
+ out.def("tensor", [](ov::preprocess::OutputInfo& self) {
+ return &self.tensor();
+ });
+
+ out.def("postprocess", [](ov::preprocess::OutputInfo& self) {
+ return &self.postprocess();
+ });
+
+ out.def("model", [](ov::preprocess::OutputInfo& self) {
+ return &self.model();
+ });
+}
+
static void regclass_graph_InputModelInfo(py::module m) {
py::class_<ov::preprocess::InputModelInfo, Common::ref_wrapper<ov::preprocess::InputModelInfo>> info(
m,
@@ -538,17 +538,17 @@ static void regenum_graph_PaddingMode(py::module m) {
}
void regclass_graph_PrePostProcessor(py::module m) {
+ regenum_graph_ColorFormat(m);
+ regenum_graph_ResizeAlgorithm(m);
+ regenum_graph_PaddingMode(m);
regclass_graph_PreProcessSteps(m);
regclass_graph_PostProcessSteps(m);
- regclass_graph_InputInfo(m);
- regclass_graph_OutputInfo(m);
- regclass_graph_InputTensorInfo(m);
- regclass_graph_OutputTensorInfo(m);
regclass_graph_InputModelInfo(m);
regclass_graph_OutputModelInfo(m);
- regenum_graph_ColorFormat(m);
- regenum_graph_ResizeAlgorithm(m);
- regenum_graph_PaddingMode(m);
+ regclass_graph_InputTensorInfo(m);
+ regclass_graph_OutputTensorInfo(m);
+ regclass_graph_InputInfo(m);
+ regclass_graph_OutputInfo(m);
py::class_<ov::preprocess::PrePostProcessor, std::shared_ptr<ov::preprocess::PrePostProcessor>> proc(
m,
"PrePostProcessor");
diff --git a/src/bindings/python/src/pyopenvino/graph/shape.cpp b/src/bindings/python/src/pyopenvino/graph/shape.cpp
index 4842a6b63ff..dc3328b5125 100644
--- a/src/bindings/python/src/pyopenvino/graph/shape.cpp
+++ b/src/bindings/python/src/pyopenvino/graph/shape.cpp
@@ -29,7 +29,6 @@ void regclass_graph_Shape(py::module m) {
py::class_<ov::Shape, std::shared_ptr<ov::Shape>> shape(m, "Shape");
shape.doc() = "openvino.Shape wraps ov::Shape";
shape.def(py::init<>());
- shape.def(py::init<const std::initializer_list<size_t>&>(), py::arg("axis_lengths"));
shape.def(py::init<const std::vector<size_t>&>(), py::arg("axis_lengths"));
shape.def(py::init<const ov::Shape&>(), py::arg("axis_lengths"));
shape.def(py::init<const std::string&>(), py::arg("shape"));
diff --git a/src/bindings/python/src/pyopenvino/graph/strides.cpp b/src/bindings/python/src/pyopenvino/graph/strides.cpp
index 507e00ddd9b..5c2f4f56022 100644
--- a/src/bindings/python/src/pyopenvino/graph/strides.cpp
+++ b/src/bindings/python/src/pyopenvino/graph/strides.cpp
@@ -27,7 +27,6 @@ bool compare_strides(const ov::Strides& a, const T& b) {
void regclass_graph_Strides(py::module m) {
py::class_<ov::Strides, std::shared_ptr<ov::Strides>> strides(m, "Strides");
strides.doc() = "openvino.Strides wraps ov::Strides";
- strides.def(py::init<const std::initializer_list<size_t>&>(), py::arg("axis_strides"));
strides.def(py::init<const std::vector<size_t>&>(), py::arg("axis_strides"));
strides.def(py::init<const ov::Strides&>(), py::arg("axis_strides"));
diff --git a/src/bindings/python/src/pyopenvino/graph/util.cpp b/src/bindings/python/src/pyopenvino/graph/util.cpp
index 3fd297adc34..8f37bec8c98 100644
--- a/src/bindings/python/src/pyopenvino/graph/util.cpp
+++ b/src/bindings/python/src/pyopenvino/graph/util.cpp
@@ -10,6 +10,8 @@
#include "openvino/core/graph_util.hpp"
#include "openvino/pass/manager.hpp"
+#include "pyopenvino/graph/node.hpp"
+#include "pyopenvino/graph/node_output.hpp"
#include "pyopenvino/graph/ops/constant.hpp"
#include "pyopenvino/utils/utils.hpp"
diff --git a/src/bindings/python/src/pyopenvino/pyopenvino.cpp b/src/bindings/python/src/pyopenvino/pyopenvino.cpp
index 5d6f73c5385..d42b406ea68 100644
--- a/src/bindings/python/src/pyopenvino/pyopenvino.cpp
+++ b/src/bindings/python/src/pyopenvino/pyopenvino.cpp
@@ -98,31 +98,6 @@ PYBIND11_MODULE(_pyopenvino, m) {
"OpenVINO Runtime and Python libraries point to same release.");
m.def("get_version", &get_version);
- m.def("get_batch", &ov::get_batch);
- m.def(
- "get_batch",
- [](const py::object& ie_api_model) {
- const auto model = Common::utils::convert_to_model(ie_api_model);
- return ov::get_batch(model);
- },
- py::arg("model"));
- m.def(
- "set_batch",
- [](const py::object& ie_api_model, ov::Dimension value) {
- auto model = Common::utils::convert_to_model(ie_api_model);
- ov::set_batch(model, value);
- },
- py::arg("model"),
- py::arg("dimension"));
- m.def(
- "set_batch",
- [](const py::object& ie_api_model, int64_t value) {
- auto model = Common::utils::convert_to_model(ie_api_model);
- ov::set_batch(model, ov::Dimension(value));
- },
- py::arg("model"),
- py::arg("batch_size") = -1);
-
m.def(
"serialize",
[](py::object& ie_api_model,
@@ -232,25 +207,30 @@ PYBIND11_MODULE(_pyopenvino, m) {
regclass_Extension(m);
regclass_graph_PyRTMap(m);
regmodule_graph_types(m);
- regclass_graph_Symbol(m); // Symbol must be registered before Dimension
- regclass_graph_Dimension(m); // Dimension must be registered before PartialShape
+ regclass_graph_Symbol(m); // Symbol must be registered before Dimension
+ regclass_graph_Dimension(m); // Dimension must be registered before PartialShape
regclass_graph_Layout(m);
regclass_graph_Shape(m);
regclass_graph_PartialShape(m);
- regclass_graph_Node(m);
- regclass_graph_Op(m);
regclass_graph_OpExtension(m);
- regclass_graph_Input(m);
- regclass_graph_NodeFactory(m);
regclass_graph_Strides(m);
regclass_graph_CoordinateDiff(m);
regclass_graph_AxisSet(m);
regclass_graph_AxisVector(m);
regclass_graph_Coordinate(m);
- regclass_graph_descriptor_Tensor(m);
regclass_graph_DiscreteTypeInfo(m);
regclass_graph_AttributeVisitor(m);
+ regclass_graph_Output<ov::Node>(m, std::string(""));
+ regclass_Tensor(m);
+ regclass_graph_descriptor_Tensor(m);
+ regclass_graph_Input(m);
+ regclass_graph_Node(m);
+ regclass_graph_NodeFactory(m);
+ regclass_graph_Output<const ov::Node>(m, std::string("Const"));
+ regmodule_graph_util(m);
+ regclass_graph_Op(m);
py::module m_op = m.def_submodule("op", "Package ngraph.impl.op that wraps ov::op"); // TODO(!)
+ regmodule_graph_op_util(m_op);
regclass_graph_op_Assign(m_op);
regclass_graph_op_Constant(m_op);
regclass_graph_op_PagedAttentionExtension(m_op);
@@ -264,31 +244,48 @@ PYBIND11_MODULE(_pyopenvino, m) {
#if defined(ENABLE_OV_ONNX_FRONTEND)
regmodule_graph_onnx_import(m);
#endif
- regmodule_graph_op_util(m_op);
regmodule_experimental(m);
py::module m_preprocess =
m.def_submodule("preprocess", "Package openvino.preprocess that wraps ov::preprocess");
regclass_graph_PrePostProcessor(m_preprocess);
+ regclass_graph_Any(m);
regclass_graph_Model(m);
+ m.def("get_batch", &ov::get_batch);
+ m.def(
+ "get_batch",
+ [](const py::object& ie_api_model) {
+ const auto model = Common::utils::convert_to_model(ie_api_model);
+ return ov::get_batch(model);
+ },
+ py::arg("model"));
+ m.def(
+ "set_batch",
+ [](const py::object& ie_api_model, ov::Dimension value) {
+ auto model = Common::utils::convert_to_model(ie_api_model);
+ ov::set_batch(model, value);
+ },
+ py::arg("model"),
+ py::arg("dimension"));
+ m.def(
+ "set_batch",
+ [](const py::object& ie_api_model, int64_t value) {
+ auto model = Common::utils::convert_to_model(ie_api_model);
+ ov::set_batch(model, ov::Dimension(value));
+ },
+ py::arg("model"),
+ py::arg("batch_size") = -1);
regmodule_graph_passes(m);
- regmodule_graph_util(m);
regmodule_graph_layout_helpers(m);
- regclass_graph_Any(m);
- regclass_graph_Output<ov::Node>(m, std::string(""));
- regclass_graph_Output<const ov::Node>(m, std::string("Const"));
-
- regclass_Core(m);
- regclass_Tensor(m);
regclass_CompiledModel(m);
- regclass_InferRequest(m);
- regclass_VariableState(m);
regclass_Version(m);
- regclass_AsyncInferQueue(m);
regclass_ProfilingInfo(m);
-
- regclass_RemoteContext(m);
+ regclass_VariableState(m);
regclass_RemoteTensor(m);
+ regclass_InferRequest(m);
+ regclass_RemoteContext(m);
+ regclass_Core(m);
+ regclass_AsyncInferQueue(m);
regclass_VAContext(m);
regclass_VASurfaceTensor(m);
@@ -297,14 +294,14 @@ PYBIND11_MODULE(_pyopenvino, m) {
// frontend
regclass_frontend_Place(m);
+ regclass_frontend_InputModel(m);
regclass_frontend_InitializationFailureFrontEnd(m);
regclass_frontend_GeneralFailureFrontEnd(m);
regclass_frontend_OpConversionFailureFrontEnd(m);
regclass_frontend_OpValidationFailureFrontEnd(m);
regclass_frontend_NotImplementedFailureFrontEnd(m);
- regclass_frontend_FrontEndManager(m);
regclass_frontend_FrontEnd(m);
- regclass_frontend_InputModel(m);
+ regclass_frontend_FrontEndManager(m);
regclass_frontend_NodeContext(m);
regclass_frontend_IDecoder(m);
diff --git a/src/bindings/python/wheel/fdupes_check.cmake b/src/bindings/python/wheel/fdupes_check.cmake
index d7cbec3343d..782c2d6dc0f 100644
--- a/src/bindings/python/wheel/fdupes_check.cmake
+++ b/src/bindings/python/wheel/fdupes_check.cmake
@@ -54,7 +54,7 @@ file(REMOVE_RECURSE "${WORKING_DIRECTORY}")
# filtering of 'duplicated_files'
foreach(duplicated_file IN LISTS duplicated_files)
- if(duplicated_file MATCHES ".*${CMAKE_SHARED_LIBRARY_SUFFIX}.*")
+ if(duplicated_file MATCHES ".*${CMAKE_SHARED_LIBRARY_SUFFIX}.*" AND NOT duplicated_file MATCHES ".*\\.pyi$")
set(duplicated_libraries "${duplicated_file}\n${duplicated_libraries}")
endif()
endforeach()