Skip to content

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

[PyOV] Add GHA action to validate `.pyi` files in pre-commit (#29888)

Przemyslaw Wysocki33dcaa9ec0b3
diff --git a/.github/actions/validate_pyi_files/action.yml b/.github/actions/validate_pyi_files/action.yml
new file mode 100644
index 00000000000..a3c5065535c
--- /dev/null
+++ b/.github/actions/validate_pyi_files/action.yml
@@ -0,0 +1,14 @@
+name: 'Verify that Python stub .pyi files are up to date'
+description: 'Generates .pyi files and compares them to the committed files'
+runs:
+ using: 'composite'
+ steps:
+ - name: Verify .pyi files
+ shell: bash
+ if: runner.os != 'Windows'
+ run: |
+ python3 action_root/src/bindings/python/scripts/generate_pyapi_stubs.py \
+ "${{ runner.temp }}/generated_pyi_files"
+ python3 action_root/.github/actions/validate_pyi_files/compare_pyi_files.py \
+ "${{ runner.temp }}/generated_pyi_files" \
+ "action_root/src/bindings/python/src"
diff --git a/.github/actions/validate_pyi_files/compare_pyi_files.py b/.github/actions/validate_pyi_files/compare_pyi_files.py
new file mode 100644
index 00000000000..4227767b5a1
--- /dev/null
+++ b/.github/actions/validate_pyi_files/compare_pyi_files.py
@@ -0,0 +1,123 @@
+# -*- coding: utf-8 -*-
+# Copyright (C) 2018-2025 Intel Corporation
+# SPDX-License-Identifier: Apache-2.0
+
+# This script is used in the CI to compare the generated .pyi files with the committed .pyi files
+
+import os
+import sys
+import filecmp
+import difflib
+from typing import List, Set
+
+# Due to numerous issues with stub generation reproducibility we need some skips.
+# The inconsistencies between generations most likely come from different environment/CMake setups.
+SKIPS = [
+ # This file contains constant.def_buffer(), which pybind11-stubgen generates methods for on CI
+ # but not locally (__buffer__(), __release_buffer__())
+ "openvino/_pyopenvino/op/__init__.pyi",
+
+ # The IOType class sometimes has a docstring, breaking the CI check
+ "openvino/tools/ovc/moc_frontend/extractor.pyi"
+]
+
+def find_pyi_files(directory: str) -> Set[str]:
+ """Recursively find all .pyi files in a directory."""
+ pyi_files: List[str] = []
+ for root, _, files in os.walk(directory):
+ for file in files:
+ if file.endswith(".pyi"):
+ relative_path = os.path.relpath(os.path.join(root, file), directory)
+ pyi_files.append(relative_path)
+ return set(pyi_files)
+
+
+def compare_pyi_files(generated_dir: str, committed_dir: str) -> None:
+ """Compare .pyi files between two directories."""
+ # Find all .pyi files in both directories
+ generated_files: Set[str] = find_pyi_files(generated_dir)
+ committed_files: Set[str] = find_pyi_files(committed_dir)
+
+ # Assert that the number of .pyi files matches
+ if len(generated_files) != len(committed_files):
+ # TF FE stubs can be generated on not depending on the CMake flags in CI
+ committed_files = {file for file in committed_files if not file.startswith("openvino/frontend/tensorflow")}
+
+ # Check again after removal
+ if len(generated_files) != len(committed_files):
+ print(f"Error: Number of .pyi files does not match. "
+ f"Generated (reference): {len(generated_files)}, Committed: {len(committed_files)}")
+ if generated_files - committed_files:
+ print(f"Files found only in generated (reference) files: {generated_files - committed_files}")
+ if committed_files - generated_files:
+ print(f"Files found only in committed files: {committed_files - generated_files}")
+ sys.exit(1)
+
+ # Assert that each file has a pair
+ if generated_files != committed_files:
+ if generated_files - committed_files:
+ print(f"Error: One or more .pyi files are missing from the PR: {generated_files - committed_files}")
+ if committed_files - generated_files:
+ print(f"Error: One or more extra .pyi files are present in the PR: {committed_files - generated_files}")
+ sys.exit(1)
+
+ # Compare file contents
+ outdated_files = []
+ for relative_path in generated_files:
+ if relative_path in SKIPS:
+ continue
+ generated_file: str = os.path.join(generated_dir, relative_path)
+ committed_file: str = os.path.join(committed_dir, relative_path)
+ if not filecmp.cmp(generated_file, committed_file, shallow=False):
+ with open(generated_file, 'r') as gen_file, open(committed_file, 'r') as com_file:
+ gen_lines = [line.lstrip() for line in gen_file.readlines()]
+ com_lines = [line.lstrip() for line in com_file.readlines()]
+ diff = list(difflib.unified_diff(
+ gen_lines, com_lines,
+ fromfile=f"Generated: {relative_path}",
+ tofile=f"Committed: {relative_path}",
+ lineterm=''
+ ))
+ if diff:
+ changes = [
+ line.lstrip('+- ') for line in diff
+ if line.startswith(('+', '-')) # Changes only
+ and not line.startswith(('+++ Committed:', '--- Generated:')) # Disregard diff headers
+ ]
+ if changes and not all(
+ change.startswith(("import", "from", "__all__")) or # Import order is irrelevant
+ change.startswith('"""') or # Ignore docstring changes
+ change.strip() == "" # Ignore whitespace-only changes
+ for change in changes
+ ):
+ outdated_files.append((relative_path, "".join(diff)))
+
+ # Display all outdated files and their diffs
+ if outdated_files:
+ print("Error: The following stub files are outdated:")
+ for relative_path, diff in outdated_files:
+ print(f"\nOutdated file: {relative_path}")
+ print(diff)
+ sys.exit(1)
+
+ print("All .pyi files match.")
+ sys.exit(0)
+
+
+if __name__ == "__main__":
+ if len(sys.argv) != 3:
+ print("Usage: python compare_pyi_files.py <generated_dir> <committed_dir>")
+ sys.exit(1)
+
+ generated_dir: str = sys.argv[1]
+ committed_dir: str = sys.argv[2]
+
+ if not os.path.isdir(generated_dir):
+ print(f"Error: Generated directory does not exist: {generated_dir}")
+ sys.exit(1)
+
+ if not os.path.isdir(committed_dir):
+ print(f"Error: Committed directory does not exist: {committed_dir}")
+ sys.exit(1)
+
+ compare_pyi_files(generated_dir, committed_dir)
diff --git a/.github/workflows/job_python_api_tests.yml b/.github/workflows/job_python_api_tests.yml
index f68905e90ad..bf4631c7dd2 100644
--- a/.github/workflows/job_python_api_tests.yml
+++ b/.github/workflows/job_python_api_tests.yml
@@ -72,6 +72,10 @@ jobs:
sparse-checkout: |
.github/actions/setup_python/action.yml
.github/actions/install_ov_wheels/action.yml
+ .github/actions/validate_pyi_files/action.yml
+ .github/actions/validate_pyi_files/compare_pyi_files.py
+ src/bindings/python/scripts/generate_pyapi_stubs.py
+ src/bindings/python/**/*.pyi
sparse-checkout-cone-mode: false
path: 'action_root'
@@ -95,6 +99,10 @@ jobs:
- name: Install Python API tests dependencies
run: python3 -m pip install -r ${INSTALL_TEST_DIR}/tests/bindings/python/requirements_test.txt
+ - name: Verify Python stub .pyi files
+ uses: ./action_root/.github/actions/validate_pyi_files
+ continue-on-error: true
+
#
# Tests
#
diff --git a/src/bindings/python/CMakeLists.txt b/src/bindings/python/CMakeLists.txt
index cceb51fd412..eacb2f8dadb 100644
--- a/src/bindings/python/CMakeLists.txt
+++ b/src/bindings/python/CMakeLists.txt
@@ -415,7 +415,7 @@ if(OpenVINODeveloperPackage_FOUND)
endif()
# only for developers, skip on CI
-if(NOT DEFINED ENV{CI_BUILD_DEV_TAG} AND NOT DEFINED CI_BUILD_NUMBER)
+if(NOT (DEFINED ENV{CI} OR DEFINED ENV{TF_BUILD} OR DEFINED ENV{JENKINS_URL}))
# check pybind11-stubgen package
execute_process(COMMAND ${Python3_EXECUTABLE} -m pip show pybind11-stubgen
@@ -423,7 +423,7 @@ if(NOT DEFINED ENV{CI_BUILD_DEV_TAG} AND NOT DEFINED CI_BUILD_NUMBER)
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.")
+ message(WARNING "pybind11-stubgen package is not installed or version is not detected. This package is necessary for developing Python API.")
endif()
# check pre-commit package
@@ -432,7 +432,7 @@ if(NOT DEFINED ENV{CI_BUILD_DEV_TAG} AND NOT DEFINED CI_BUILD_NUMBER)
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.")
+ message(WARNING "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
@@ -442,7 +442,8 @@ if(NOT DEFINED ENV{CI_BUILD_DEV_TAG} AND NOT DEFINED CI_BUILD_NUMBER)
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}")
+ message(WARNING "Python stub generation pre-commit hook install failed with error: ${precommit_install_error}. It is necessary for developing Python API.")
+ else()
+ message(STATUS "pre-commit hook for Python API stub generation has been installed")
endif()
- message(STATUS "pre-commit hook for Python API stub generation has been installed")
endif()
diff --git a/src/bindings/python/scripts/generate_pyapi_stubs.bat b/src/bindings/python/scripts/generate_pyapi_stubs.bat
deleted file mode 100644
index a073b4b46a0..00000000000
--- a/src/bindings/python/scripts/generate_pyapi_stubs.bat
+++ /dev/null
@@ -1,126 +0,0 @@
-@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.py b/src/bindings/python/scripts/generate_pyapi_stubs.py
new file mode 100644
index 00000000000..802b53c6060
--- /dev/null
+++ b/src/bindings/python/scripts/generate_pyapi_stubs.py
@@ -0,0 +1,101 @@
+import os
+import re
+import subprocess
+from pathlib import Path
+import sys
+
+# Constants
+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", "ov::pass::pattern::PatternSymbolValue",
+ "<Dimension:", "<RTMap>", "<Type: 'dynamic'>"
+]
+INVALID_IDENTIFIERS = ["<locals>"]
+UNRESOLVED_NAMES = [
+ "InferRequestWrapper", "RemoteTensorWrapper", "capsule", "VASurfaceTensorWrapper", "_abc._abc_data",
+ "openvino._ov_api.undefined_deprecated", "InputCutInfo", "ParamData"
+]
+
+def create_regex_pattern(errors):
+ return "|".join([re.escape(error) for error in errors])
+
+def sanitize_file(file_path):
+ with open(file_path, 'r') as file:
+ content = file.readlines()
+
+ content = [re.sub(r"<function _get_node_factory at 0x[0-9a-fA-F]+>", "<function _get_node_factory at memory_address>", line) for line in content]
+ content = [re.sub(r"__version__: str = '[^']*'", "__version__: str = 'version_string'", line) for line in content]
+ content = [re.sub(r"<function <lambda> at 0x[0-9a-fA-F]+>", "<function <lambda> at memory_address>", line) for line in content]
+ content = [re.sub(r": \.\.\.", ": typing.Any", line) for line in content]
+ content = [re.sub(r"pathlib\._local\.Path", "pathlib.Path", line) for line in content]
+ content = [re.sub(r"pass: MatcherPass", "matcher_pass: MatcherPass", line) for line in content]
+
+ # Sort imports
+ imports = [line for line in content if line.startswith("from ") or line.startswith("import ")]
+ non_imports = [line for line in content if not (line.startswith("from ") or line.startswith("import "))]
+ sorted_imports = sorted(imports)
+
+ sorted_imports.insert(0, "# type: ignore\n")
+
+ with open(file_path, 'w') as file:
+ file.writelines(sorted_imports + non_imports)
+
+def main():
+ if len(sys.argv) > 1:
+ output_dir = Path(sys.argv[1])
+ else:
+ output_dir = Path(__file__).parent.parent / "src"
+ output_dir = output_dir.resolve()
+
+ invalid_expressions_regex = create_regex_pattern(INVALID_EXPRESSIONS)
+ invalid_identifiers_regex = create_regex_pattern(INVALID_IDENTIFIERS)
+ unresolved_names_regex = create_regex_pattern(UNRESOLVED_NAMES)
+
+ try:
+ subprocess.run([
+ "python", "-m", "pybind11_stubgen",
+ "--output-dir", str(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"
+ ], check=True)
+ except subprocess.CalledProcessError as e:
+ print(f"Error: pybind11-stubgen failed with error: {e}")
+ exit(1)
+
+ # Workaround for pybind11-stubgen issue where it's missing some imports
+ pyi_file = output_dir / "openvino/_ov_api.pyi"
+ if pyi_file.exists():
+ with open(pyi_file, 'r+') as file:
+ content = file.readlines()
+ content.insert(1, "import typing\n")
+ content.insert(2, "import pathlib\n")
+ file.seek(0)
+ file.writelines(content)
+ else:
+ print(f"File {pyi_file} not found.")
+ exit(1)
+
+ pyi_file = output_dir / "openvino/tools/ovc/convert_impl.pyi"
+ if pyi_file.exists():
+ with open(pyi_file, 'r+') as file:
+ content = file.readlines()
+ content = [line for line in content if not line.startswith("tf_frontend_with_python_bindings_installed: bool")]
+ file.seek(0)
+ file.writelines(content)
+ file.truncate()
+ else:
+ print(f"File {pyi_file} not found.")
+ exit(1)
+
+ # Process each changed .pyi file
+ for file_path in output_dir.rglob("*.pyi"):
+ sanitize_file(file_path)
+
+if __name__ == "__main__":
+ main()
diff --git a/src/bindings/python/scripts/generate_pyapi_stubs.sh b/src/bindings/python/scripts/generate_pyapi_stubs.sh
deleted file mode 100755
index 3c929fc1a7b..00000000000
--- a/src/bindings/python/scripts/generate_pyapi_stubs.sh
+++ /dev/null
@@ -1,142 +0,0 @@
-#!/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
index f715679437b..af55159bf3a 100644
--- a/src/bindings/python/scripts/stub_generation_precommit.yaml
+++ b/src/bindings/python/scripts/stub_generation_precommit.yaml
@@ -5,18 +5,14 @@ repos:
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;
+ bash -c '
+ $(which python) "$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)/src/bindings/python/scripts/generate_pyapi_stubs.py";
if [ $? -ne 0 ]; then
echo "Stub generation failed. Aborting commit.";
exit 1;
fi;
-
git add ./*.pyi'
- files: .*src/bindings/python/.*
+ files: .*src/bindings/python/.*|.*tools/ovc.*
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
index 64337fb47b8..9ae50325384 100644
--- a/src/bindings/python/src/openvino/__init__.pyi
+++ b/src/bindings/python/src/openvino/__init__.pyi
@@ -1,11 +1,12 @@
# type: ignore
-from __future__ import annotations
+from . import _op_base
+from . import _ov_api
+from . import _pyopenvino
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
@@ -22,22 +23,19 @@ 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 __future__ import annotations
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._ov_api import compile_model
from openvino._pyopenvino import AxisSet
from openvino._pyopenvino import AxisVector
from openvino._pyopenvino import ConstOutput
@@ -46,25 +44,18 @@ 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 OVAny
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 RTMap
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
@@ -72,6 +63,15 @@ from openvino._pyopenvino import Type
from openvino._pyopenvino import VAContext
from openvino._pyopenvino import VASurfaceTensor
from openvino._pyopenvino import Version
+from openvino._pyopenvino import get_batch
+from openvino._pyopenvino import get_version
+from openvino._pyopenvino import layout_helpers
+from openvino._pyopenvino import save_model
+from openvino._pyopenvino import serialize
+from openvino._pyopenvino import set_batch
+from openvino._pyopenvino import shutdown
+from openvino.package_utils import LazyLoader
+from openvino.package_utils import _add_openvino_libs_to_search_path
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']
diff --git a/src/bindings/python/src/openvino/_ov_api.pyi b/src/bindings/python/src/openvino/_ov_api.pyi
index 1822d3ad3ff..522e62c4ba2 100644
--- a/src/bindings/python/src/openvino/_ov_api.pyi
+++ b/src/bindings/python/src/openvino/_ov_api.pyi
@@ -1,7 +1,6 @@
# type: ignore
-from builtins import traceback as TracebackType
from __future__ import annotations
-from openvino.package_utils import deprecatedclassproperty
+from builtins import traceback as TracebackType
from openvino._pyopenvino import AsyncInferQueue as AsyncInferQueueBase
from openvino._pyopenvino import CompiledModel as CompiledModelBase
from openvino._pyopenvino import Core as CoreBase
@@ -9,14 +8,17 @@ from openvino._pyopenvino import Model as ModelBase
from openvino._pyopenvino import Node
from openvino._pyopenvino import Tensor
from openvino._pyopenvino import Type
+from openvino.package_utils import deprecatedclassproperty
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 _InferRequestWrapper
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._pyopenvino.op
+import openvino._pyopenvino.op.util
import openvino.utils.data_helpers.wrappers
import pathlib
import traceback as traceback
@@ -499,14 +501,200 @@ class Model:
...
def __getattr__(self, name: str) -> typing.Any:
...
- def __init__(self, *args: typing.Any, **kwargs: typing.Any) -> None:
+ @typing.overload
+ def __init__(self: openvino._pyopenvino.Model, other: openvino._pyopenvino.Model) -> None:
...
+ @typing.overload
+ def __init__(self: openvino._pyopenvino.Model, results: list[openvino._pyopenvino.op.Result], sinks: list[openvino._pyopenvino.Node], parameters: list[openvino._pyopenvino.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: openvino._pyopenvino.Model, results: list[openvino._pyopenvino.Node], parameters: list[openvino._pyopenvino.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: openvino._pyopenvino.Model, result: openvino._pyopenvino.Node, parameters: list[openvino._pyopenvino.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: openvino._pyopenvino.Model, results: list[openvino._pyopenvino.Output], parameters: list[openvino._pyopenvino.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: openvino._pyopenvino.Model, results: list[openvino._pyopenvino.Output], sinks: list[openvino._pyopenvino.Node], parameters: list[openvino._pyopenvino.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: openvino._pyopenvino.Model, results: list[openvino._pyopenvino.Output], sinks: list[openvino._pyopenvino.Output], parameters: list[openvino._pyopenvino.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: openvino._pyopenvino.Model, results: list[openvino._pyopenvino.Output], sinks: list[openvino._pyopenvino.Output], parameters: list[openvino._pyopenvino.op.Parameter], variables: list[openvino._pyopenvino.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: openvino._pyopenvino.Model, results: list[openvino._pyopenvino.op.Result], sinks: list[openvino._pyopenvino.Output], parameters: list[openvino._pyopenvino.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: openvino._pyopenvino.Model, results: list[openvino._pyopenvino.op.Result], sinks: list[openvino._pyopenvino.Output], parameters: list[openvino._pyopenvino.op.Parameter], variables: list[openvino._pyopenvino.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: openvino._pyopenvino.Model, results: list[openvino._pyopenvino.op.Result], sinks: list[openvino._pyopenvino.Node], parameters: list[openvino._pyopenvino.op.Parameter], variables: list[openvino._pyopenvino.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: openvino._pyopenvino.Model, results: list[openvino._pyopenvino.Output], sinks: list[openvino._pyopenvino.Node], parameters: list[openvino._pyopenvino.op.Parameter], variables: list[openvino._pyopenvino.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: openvino._pyopenvino.Model, results: list[openvino._pyopenvino.op.Result], parameters: list[openvino._pyopenvino.op.Parameter], variables: list[openvino._pyopenvino.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: openvino._pyopenvino.Model, results: list[openvino._pyopenvino.Output], parameters: list[openvino._pyopenvino.op.Parameter], variables: list[openvino._pyopenvino.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 clone(self) -> Model:
...
class ModelMeta(type):
- pass
+ @classmethod
+ def __getattr__(cls, name: str) -> typing.Any:
+ ...
+ @classmethod
+ def __getattribute__(cls, name: str) -> typing.Any:
+ ...
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.
diff --git a/src/bindings/python/src/openvino/_pyopenvino/__init__.pyi b/src/bindings/python/src/openvino/_pyopenvino/__init__.pyi
index a520623f93c..fa2b5396426 100644
--- a/src/bindings/python/src/openvino/_pyopenvino/__init__.pyi
+++ b/src/bindings/python/src/openvino/_pyopenvino/__init__.pyi
@@ -1,20 +1,20 @@
# type: ignore
-"""
-Package openvino._pyopenvino which wraps openvino C++ APIs
-"""
-from __future__ import annotations
+from . import _offline_transformations
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
+from __future__ import annotations
import datetime
import numpy
import typing
+"""
+Package openvino._pyopenvino which wraps openvino C++ APIs
+"""
__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:
"""
@@ -4591,18 +4591,18 @@ class Tensor:
@typing.overload
def __init__(self, image: typing.Any) -> None:
"""
- Constructs Tensor from a Pillow Image.
+ Constructs Tensor from a Pillow Image.
- :param image: Pillow Image to create the tensor from.
- :type image: PIL.Image.Image
- :Example:
- .. code-block:: python
+ :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
+ from PIL import Image
+ import openvino as ov
- img = Image.open("example.jpg")
- tensor = ov.Tensor(img)
+ img = Image.open("example.jpg")
+ tensor = ov.Tensor(img)
"""
def __repr__(self) -> str:
...
diff --git a/src/bindings/python/src/openvino/_pyopenvino/_offline_transformations.pyi b/src/bindings/python/src/openvino/_pyopenvino/_offline_transformations.pyi
index 830f3f3c335..7095b023712 100644
--- a/src/bindings/python/src/openvino/_pyopenvino/_offline_transformations.pyi
+++ b/src/bindings/python/src/openvino/_pyopenvino/_offline_transformations.pyi
@@ -1,10 +1,10 @@
# type: ignore
-"""
-openvino._offline_transformations is a private module contains different offline passes.
-"""
from __future__ import annotations
import openvino._pyopenvino.op
import typing
+"""
+openvino._offline_transformations is a private module contains different offline passes.
+"""
__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:
...
diff --git a/src/bindings/python/src/openvino/_pyopenvino/experimental.pyi b/src/bindings/python/src/openvino/_pyopenvino/experimental.pyi
index 94abb8a3c17..1f49d8bacee 100644
--- a/src/bindings/python/src/openvino/_pyopenvino/experimental.pyi
+++ b/src/bindings/python/src/openvino/_pyopenvino/experimental.pyi
@@ -1,9 +1,9 @@
# type: ignore
+from __future__ import annotations
+import openvino._pyopenvino
"""
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:
"""
diff --git a/src/bindings/python/src/openvino/_pyopenvino/layout_helpers.pyi b/src/bindings/python/src/openvino/_pyopenvino/layout_helpers.pyi
index 62639c7ba79..a60f7fbdfb9 100644
--- a/src/bindings/python/src/openvino/_pyopenvino/layout_helpers.pyi
+++ b/src/bindings/python/src/openvino/_pyopenvino/layout_helpers.pyi
@@ -1,10 +1,10 @@
# type: ignore
-"""
-openvino.layout_helpers
-"""
from __future__ import annotations
import openvino._pyopenvino
import typing
+"""
+openvino.layout_helpers
+"""
__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:
...
diff --git a/src/bindings/python/src/openvino/_pyopenvino/op/__init__.pyi b/src/bindings/python/src/openvino/_pyopenvino/op/__init__.pyi
index 972364cea52..09f878e3167 100644
--- a/src/bindings/python/src/openvino/_pyopenvino/op/__init__.pyi
+++ b/src/bindings/python/src/openvino/_pyopenvino/op/__init__.pyi
@@ -1,12 +1,12 @@
# type: ignore
-"""
-Package ngraph.impl.op that wraps ov::op
-"""
-from __future__ import annotations
from . import util
+from __future__ import annotations
import numpy
import openvino._pyopenvino
import typing
+"""
+Package ngraph.impl.op that wraps ov::op
+"""
__all__ = ['Constant', 'Parameter', 'Result', 'assign', 'if_op', 'loop', 'read_value', 'tensor_iterator', 'util']
class Constant(openvino._pyopenvino.Node):
"""
diff --git a/src/bindings/python/src/openvino/_pyopenvino/op/util.pyi b/src/bindings/python/src/openvino/_pyopenvino/op/util.pyi
index e4a433f1363..d858d2e858f 100644
--- a/src/bindings/python/src/openvino/_pyopenvino/op/util.pyi
+++ b/src/bindings/python/src/openvino/_pyopenvino/op/util.pyi
@@ -1,10 +1,10 @@
# type: ignore
-"""
-module openvino.op.util
-"""
from __future__ import annotations
import openvino._pyopenvino
import typing
+"""
+module openvino.op.util
+"""
__all__ = ['ArithmeticReduction', 'BinaryElementwiseArithmetic', 'BinaryElementwiseComparison', 'BinaryElementwiseLogical', 'BodyOutputDescription', 'ConcatOutputDescription', 'IndexReduction', 'InputDescription', 'InvariantInputDescription', 'MergedInputDescription', 'OutputDescription', 'SliceInputDescription', 'UnaryElementwiseArithmetic', 'Variable', 'VariableInfo']
class ArithmeticReduction:
reduction_axes: openvino._pyopenvino.AxisSet
diff --git a/src/bindings/python/src/openvino/_pyopenvino/passes.pyi b/src/bindings/python/src/openvino/_pyopenvino/passes.pyi
index 688e3d48e5c..c24fee734b8 100644
--- a/src/bindings/python/src/openvino/_pyopenvino/passes.pyi
+++ b/src/bindings/python/src/openvino/_pyopenvino/passes.pyi
@@ -1,11 +1,11 @@
# type: ignore
-"""
-Package openvino.passes wraps ov::passes
-"""
from __future__ import annotations
import openvino._pyopenvino
import openvino._pyopenvino.op
import typing
+"""
+Package openvino.passes wraps ov::passes
+"""
__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):
"""
diff --git a/src/bindings/python/src/openvino/_pyopenvino/preprocess.pyi b/src/bindings/python/src/openvino/_pyopenvino/preprocess.pyi
index e753cc94462..dc61f9fbfc4 100644
--- a/src/bindings/python/src/openvino/_pyopenvino/preprocess.pyi
+++ b/src/bindings/python/src/openvino/_pyopenvino/preprocess.pyi
@@ -1,11 +1,11 @@
# type: ignore
-"""
-Package openvino.preprocess that wraps ov::preprocess
-"""
from __future__ import annotations
import numpy
import openvino._pyopenvino
import typing
+"""
+Package openvino.preprocess that wraps ov::preprocess
+"""
__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:
"""
diff --git a/src/bindings/python/src/openvino/_pyopenvino/properties/__init__.pyi b/src/bindings/python/src/openvino/_pyopenvino/properties/__init__.pyi
index e26253edda5..a46bde6df00 100644
--- a/src/bindings/python/src/openvino/_pyopenvino/properties/__init__.pyi
+++ b/src/bindings/python/src/openvino/_pyopenvino/properties/__init__.pyi
@@ -1,8 +1,4 @@
# type: ignore
-"""
-openvino.properties submodule
-"""
-from __future__ import annotations
from . import device
from . import hint
from . import intel_auto
@@ -11,8 +7,12 @@ from . import intel_gpu
from . import intel_npu
from . import log
from . import streams
+from __future__ import annotations
import openvino._pyopenvino
import typing
+"""
+openvino.properties submodule
+"""
__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:
"""
diff --git a/src/bindings/python/src/openvino/_pyopenvino/properties/device.pyi b/src/bindings/python/src/openvino/_pyopenvino/properties/device.pyi
index 2b55d271e92..24ce1343fb2 100644
--- a/src/bindings/python/src/openvino/_pyopenvino/properties/device.pyi
+++ b/src/bindings/python/src/openvino/_pyopenvino/properties/device.pyi
@@ -1,10 +1,10 @@
# type: ignore
-"""
-openvino.properties.device submodule that simulates ov::device
-"""
from __future__ import annotations
import openvino._pyopenvino
import typing
+"""
+openvino.properties.device submodule that simulates ov::device
+"""
__all__ = ['Capability', 'PCIInfo', 'Priorities', 'Type', 'architecture', 'capabilities', 'full_name', 'gops', 'id', 'luid', 'pci_info', 'priorities', 'properties', 'thermal', 'type', 'uuid']
class Capability:
"""
diff --git a/src/bindings/python/src/openvino/_pyopenvino/properties/hint.pyi b/src/bindings/python/src/openvino/_pyopenvino/properties/hint.pyi
index 43d4fb781f2..7408e23e2e7 100644
--- a/src/bindings/python/src/openvino/_pyopenvino/properties/hint.pyi
+++ b/src/bindings/python/src/openvino/_pyopenvino/properties/hint.pyi
@@ -1,11 +1,11 @@
# 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']
+"""
+openvino.properties.hint submodule that simulates ov::hint
+"""
+__all__ = ['ExecutionMode', 'ModelDistributionPolicy', 'PerformanceMode', 'Priority', 'SchedulingCoreType', 'activations_scale_factor', 'allow_auto_batching', 'compiled_blob', '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:
@@ -256,6 +256,12 @@ def allow_auto_batching() -> str:
def allow_auto_batching(arg0: bool) -> tuple[str, openvino._pyopenvino.OVAny]:
...
@typing.overload
+def compiled_blob() -> str:
+ ...
+def compiled_blob(arg0: openvino._pyopenvino.Tensor) -> tuple[str, openvino._pyopenvino.OVAny]:
+ ...
def dynamic_quantization_group_size() -> str:
...
@typing.overload
diff --git a/src/bindings/python/src/openvino/_pyopenvino/properties/intel_auto.pyi b/src/bindings/python/src/openvino/_pyopenvino/properties/intel_auto.pyi
index d8d3814ebb7..f4019fbce53 100644
--- a/src/bindings/python/src/openvino/_pyopenvino/properties/intel_auto.pyi
+++ b/src/bindings/python/src/openvino/_pyopenvino/properties/intel_auto.pyi
@@ -1,10 +1,10 @@
# type: ignore
-"""
-openvino.properties.intel_auto submodule that simulates ov::intel_auto
-"""
from __future__ import annotations
import openvino._pyopenvino
import typing
+"""
+openvino.properties.intel_auto submodule that simulates ov::intel_auto
+"""
__all__ = ['SchedulePolicy', 'device_bind_buffer', 'enable_runtime_fallback', 'enable_startup_fallback', 'schedule_policy']
class SchedulePolicy:
"""
diff --git a/src/bindings/python/src/openvino/_pyopenvino/properties/intel_cpu.pyi b/src/bindings/python/src/openvino/_pyopenvino/properties/intel_cpu.pyi
index 4f78115fe2a..f24ce227c6b 100644
--- a/src/bindings/python/src/openvino/_pyopenvino/properties/intel_cpu.pyi
+++ b/src/bindings/python/src/openvino/_pyopenvino/properties/intel_cpu.pyi
@@ -1,10 +1,10 @@
# type: ignore
-"""
-openvino.properties.intel_cpu submodule that simulates ov::intel_cpu
-"""
from __future__ import annotations
import openvino._pyopenvino
import typing
+"""
+openvino.properties.intel_cpu submodule that simulates ov::intel_cpu
+"""
__all__ = ['denormals_optimization', 'sparse_weights_decompression_rate']
@typing.overload
def denormals_optimization() -> str:
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
index e0e33248634..50ab4cfeb56 100644
--- a/src/bindings/python/src/openvino/_pyopenvino/properties/intel_gpu/__init__.pyi
+++ b/src/bindings/python/src/openvino/_pyopenvino/properties/intel_gpu/__init__.pyi
@@ -1,11 +1,11 @@
# type: ignore
-"""
-openvino.properties.intel_gpu submodule that simulates ov::intel_gpu
-"""
-from __future__ import annotations
from . import hint
+from __future__ import annotations
import openvino._pyopenvino
import typing
+"""
+openvino.properties.intel_gpu submodule that simulates ov::intel_gpu
+"""
__all__ = ['CapabilityGPU', 'MemoryType', 'device_total_mem_size', 'disable_winograd_convolution', 'enable_loop_unrolling', 'execution_units_count', 'hint', 'memory_statistics', 'uarch_version']
class CapabilityGPU:
"""
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
index d6207fa46dc..9369afdb5dc 100644
--- a/src/bindings/python/src/openvino/_pyopenvino/properties/intel_gpu/hint.pyi
+++ b/src/bindings/python/src/openvino/_pyopenvino/properties/intel_gpu/hint.pyi
@@ -1,11 +1,11 @@
# 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
+"""
+openvino.properties.intel_gpu.hint submodule that simulates ov::intel_gpu::hint
+"""
__all__ = ['ThrottleLevel', 'available_device_mem', 'host_task_priority', 'queue_priority', 'queue_throttle']
class ThrottleLevel:
"""
diff --git a/src/bindings/python/src/openvino/_pyopenvino/properties/intel_npu.pyi b/src/bindings/python/src/openvino/_pyopenvino/properties/intel_npu.pyi
index 2ffeee216cd..d10a71521ba 100644
--- a/src/bindings/python/src/openvino/_pyopenvino/properties/intel_npu.pyi
+++ b/src/bindings/python/src/openvino/_pyopenvino/properties/intel_npu.pyi
@@ -1,10 +1,10 @@
# type: ignore
-"""
-openvino.properties.intel_npu submodule that simulates ov::intel_npu
-"""
from __future__ import annotations
import openvino._pyopenvino
import typing
+"""
+openvino.properties.intel_npu submodule that simulates ov::intel_npu
+"""
__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']
@typing.overload
def bypass_umd_caching() -> str:
diff --git a/src/bindings/python/src/openvino/_pyopenvino/properties/log.pyi b/src/bindings/python/src/openvino/_pyopenvino/properties/log.pyi
index 7c1b263ae94..dd88fbeb047 100644
--- a/src/bindings/python/src/openvino/_pyopenvino/properties/log.pyi
+++ b/src/bindings/python/src/openvino/_pyopenvino/properties/log.pyi
@@ -1,10 +1,10 @@
# type: ignore
-"""
-openvino.properties.log submodule that simulates ov::log
-"""
from __future__ import annotations
import openvino._pyopenvino
import typing
+"""
+openvino.properties.log submodule that simulates ov::log
+"""
__all__ = ['Level', 'level']
class Level:
"""
diff --git a/src/bindings/python/src/openvino/_pyopenvino/properties/streams.pyi b/src/bindings/python/src/openvino/_pyopenvino/properties/streams.pyi
index 38c40327fb0..d46dda51c13 100644
--- a/src/bindings/python/src/openvino/_pyopenvino/properties/streams.pyi
+++ b/src/bindings/python/src/openvino/_pyopenvino/properties/streams.pyi
@@ -1,10 +1,10 @@
# type: ignore
-"""
-openvino.properties.streams submodule that simulates ov::streams
-"""
from __future__ import annotations
import openvino._pyopenvino
import typing
+"""
+openvino.properties.streams submodule that simulates ov::streams
+"""
__all__ = ['Num', 'num']
class Num:
AUTO: typing.ClassVar[Num] # value = <openvino._pyopenvino.properties.streams.Num object>
diff --git a/src/bindings/python/src/openvino/_pyopenvino/util.pyi b/src/bindings/python/src/openvino/_pyopenvino/util.pyi
index e118dfca6ae..815d138ae18 100644
--- a/src/bindings/python/src/openvino/_pyopenvino/util.pyi
+++ b/src/bindings/python/src/openvino/_pyopenvino/util.pyi
@@ -1,11 +1,11 @@
# type: ignore
-"""
-openvino.utils
-"""
from __future__ import annotations
import numpy
import openvino._pyopenvino
import typing
+"""
+openvino.utils
+"""
__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:
"""
diff --git a/src/bindings/python/src/openvino/exceptions.pyi b/src/bindings/python/src/openvino/exceptions.pyi
index 7fffdc3b07b..a7089fea744 100644
--- a/src/bindings/python/src/openvino/exceptions.pyi
+++ b/src/bindings/python/src/openvino/exceptions.pyi
@@ -1,8 +1,8 @@
# type: ignore
+from __future__ import annotations
"""
openvino exceptions hierarchy. All exceptions are descendants of OVError.
"""
-from __future__ import annotations
__all__ = ['OVError', 'OVTypeError', 'UserInputError']
class OVError(Exception):
"""
diff --git a/src/bindings/python/src/openvino/experimental.pyi b/src/bindings/python/src/openvino/experimental.pyi
index a9f36a04eaa..5a29738a7a0 100644
--- a/src/bindings/python/src/openvino/experimental.pyi
+++ b/src/bindings/python/src/openvino/experimental.pyi
@@ -1,12 +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
+"""
+
+Package: openvino
+This module provides access to experimental functionality that is subject to change without prior notice.
+"""
__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
index 00d3adb1ad0..089912a80ce 100644
--- a/src/bindings/python/src/openvino/frontend/__init__.pyi
+++ b/src/bindings/python/src/openvino/frontend/__init__.pyi
@@ -1,18 +1,10 @@
# 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 . import tensorflow
+from __future__ import annotations
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
@@ -22,5 +14,14 @@ 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']
+from openvino._pyopenvino import get_version
+from openvino._pyopenvino.frontend import OpExtension
+from openvino.frontend.frontend import FrontEnd
+from openvino.frontend.frontend import FrontEndManager
+"""
+
+Package: openvino
+Low level wrappers for the FrontEnd C++ API.
+"""
+__all__ = ['ConversionExtension', 'DecoderTransformationExtension', 'FrontEnd', 'FrontEndManager', 'GeneralFailure', 'InitializationFailure', 'InputModel', 'NodeContext', 'NotImplementedFailure', 'OpConversionFailure', 'OpExtension', 'OpValidationFailure', 'Place', 'ProgressReporterExtension', 'TelemetryExtension', 'frontend', 'get_version', 'tensorflow']
__version__: str = 'version_string'
diff --git a/src/bindings/python/src/openvino/frontend/tensorflow/__init__.pyi b/src/bindings/python/src/openvino/frontend/tensorflow/__init__.pyi
new file mode 100644
index 00000000000..b1b163b0685
--- /dev/null
+++ b/src/bindings/python/src/openvino/frontend/tensorflow/__init__.pyi
@@ -0,0 +1,13 @@
+# type: ignore
+from . import py_tensorflow_frontend
+from . import utils
+from __future__ import annotations
+from openvino.frontend.tensorflow.py_tensorflow_frontend import ConversionExtensionTensorflow as ConversionExtension
+from openvino.frontend.tensorflow.py_tensorflow_frontend import OpExtensionTensorflow as OpExtension
+from openvino.frontend.tensorflow.py_tensorflow_frontend import _FrontEndPyGraphIterator as GraphIterator
+"""
+
+Package: openvino
+Low level wrappers for the FrontEnd C++ API.
+"""
+__all__ = ['ConversionExtension', 'GraphIterator', 'OpExtension', 'py_tensorflow_frontend', 'utils']
diff --git a/src/bindings/python/src/openvino/frontend/tensorflow/py_tensorflow_frontend.pyi b/src/bindings/python/src/openvino/frontend/tensorflow/py_tensorflow_frontend.pyi
new file mode 100644
index 00000000000..140451f82a7
--- /dev/null
+++ b/src/bindings/python/src/openvino/frontend/tensorflow/py_tensorflow_frontend.pyi
@@ -0,0 +1,23 @@
+# type: ignore
+from __future__ import annotations
+import openvino._pyopenvino
+import typing
+__all__ = ['ConversionExtensionTensorflow', 'OpExtensionTensorflow']
+class ConversionExtensionTensorflow(_ConversionExtensionTensorflow):
+ def __init__(self, arg0: str, arg1: typing.Callable[[openvino._pyopenvino.NodeContext], list[openvino._pyopenvino.Output]]) -> None:
+ ...
+class OpExtensionTensorflow(_ConversionExtensionTensorflow):
+ @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:
+ ...
+class _ConversionExtensionTensorflow(openvino._pyopenvino.ConversionExtensionBase):
+ pass
+class _FrontEndDecoderBase(openvino._pyopenvino._IDecoder):
+ def __init__(self) -> None:
+ ...
+class _FrontEndPyGraphIterator:
+ def __init__(self) -> None:
+ ...
diff --git a/src/bindings/python/src/openvino/frontend/tensorflow/utils.pyi b/src/bindings/python/src/openvino/frontend/tensorflow/utils.pyi
new file mode 100644
index 00000000000..161c0996c7f
--- /dev/null
+++ b/src/bindings/python/src/openvino/frontend/tensorflow/utils.pyi
@@ -0,0 +1,74 @@
+# type: ignore
+from __future__ import annotations
+from openvino._pyopenvino import Dimension
+from openvino._pyopenvino import PartialShape
+from openvino._pyopenvino import Type
+from packaging.version import Version
+from packaging.version import parse
+import logging as log
+import numpy as np
+import openvino._pyopenvino
+import sys as sys
+__all__ = ['Dimension', 'PartialShape', 'Type', 'Version', 'create_generic_function_from_keras_model', 'create_tf_graph_iterator', 'extract_model_graph', 'get_concrete_func', 'get_environment_setup', 'get_imported_module_version', 'get_input_spec_from_model', 'get_signature_from_input', 'get_signature_from_input_signature', 'get_static_shape', 'is_variable', 'log', 'model_is_graph_iterator', 'np', 'parse', 'partial_shape_to_list', 'sys', 'tf_type_to_ov_type', 'trace_tf_model', 'trace_tf_model_if_needed', 'type_supported_by_tf_fe']
+def create_generic_function_from_keras_model(keras_model):
+ ...
+def create_tf_graph_iterator(input_model, placeholder_shapes, placeholder_data_types, example_input, share_weights):
+ ...
+def extract_model_graph(argv):
+ ...
+def get_concrete_func(tf_function, example_input, input_needs_packing, error_message, use_example_input = True):
+ """
+
+ Runs tracing of TF function and returns a concrete function.
+
+ :param tf_function: TF function that needs to be traced.
+ :param example_input: Example of function input.
+ :param input_needs_packing: determines if input needs to be packed in a list before passing to TF function.
+ It is used when original function was wrapped in outer TF function, which changes function signature.
+ In this case wrapper TF function always expects list of inputs which are unpacked inside subfunction.
+ So list/tuple are treated as multiple inputs of original model.
+ Non list/tuple are treated as single input, and it needs packing to a list,
+ as wrapper function always expect list of inputs.
+ :param error_message: Error message which should be shown in case of tracing error.
+ :param use_example_input: Determines if example_input should be used.
+
+ :returns: Object of type tf.types.experimental.ConcreteFunction.
+
+ """
+def get_environment_setup(framework):
+ """
+
+ Get environment setup such as Python version, TensorFlow version
+ :param framework: framework name
+ :return: a dictionary of environment variables
+
+ """
+def get_imported_module_version(imported_module):
+ """
+
+ Get imported module version
+ :return: version(str) or raise AttributeError exception
+
+ """
+def get_input_spec_from_model(model, input_shapes = None):
+ ...
+def get_signature_from_input(keras_model):
+ ...
+def get_signature_from_input_signature(keras_model):
+ ...
+def get_static_shape(shape: [openvino._pyopenvino.PartialShape, list, tuple], dynamic_value = None):
+ ...
+def is_variable(func_input, captures):
+ ...
+def model_is_graph_iterator(model):
+ ...
+def partial_shape_to_list(partial_shape: openvino._pyopenvino.PartialShape):
+ ...
+def tf_type_to_ov_type(val):
+ ...
+def trace_tf_model(model, input_shapes, input_types, example_input):
+ ...
+def trace_tf_model_if_needed(input_model, placeholder_shapes, placeholder_data_types, example_input):
+ ...
+def type_supported_by_tf_fe(input_model):
+ ...
diff --git a/src/bindings/python/src/openvino/helpers/__init__.pyi b/src/bindings/python/src/openvino/helpers/__init__.pyi
index 144a12186e1..190bea3f1bb 100644
--- a/src/bindings/python/src/openvino/helpers/__init__.pyi
+++ b/src/bindings/python/src/openvino/helpers/__init__.pyi
@@ -1,6 +1,6 @@
# type: ignore
-from __future__ import annotations
from . import packing
+from __future__ import annotations
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/op/__init__.pyi b/src/bindings/python/src/openvino/op/__init__.pyi
index d2e453674ab..387ee3c079b 100644
--- a/src/bindings/python/src/openvino/op/__init__.pyi
+++ b/src/bindings/python/src/openvino/op/__init__.pyi
@@ -1,18 +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 __future__ import annotations
from openvino._pyopenvino.op import Constant
+from openvino._pyopenvino.op import Parameter
+from openvino._pyopenvino.op import Result
+from openvino._pyopenvino.op import _PagedAttentionExtension
+from openvino._pyopenvino.op import assign
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
+"""
+
+Package: openvino.op
+Low level wrappers for the c++ api in ov::op.
+"""
__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
index 281b5f244f9..e6461c52488 100644
--- a/src/bindings/python/src/openvino/op/util.pyi
+++ b/src/bindings/python/src/openvino/op/util.pyi
@@ -1,9 +1,4 @@
# 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
@@ -18,4 +13,9 @@ 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
+"""
+
+Package: openvino.op.util
+Low level wrappers for the c++ api in ov::op::util.
+"""
__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
index 6a265e0715c..3de5a34741b 100644
--- a/src/bindings/python/src/openvino/opset1/__init__.pyi
+++ b/src/bindings/python/src/openvino/opset1/__init__.pyi
@@ -1,6 +1,7 @@
# type: ignore
-from __future__ import annotations
from . import ops
+from __future__ import annotations
+from openvino._pyopenvino.op import tensor_iterator
from openvino.opset1.ops import absolute
from openvino.opset1.ops import absolute as abs
from openvino.opset1.ops import acos
@@ -54,8 +55,8 @@ 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 maximum
from openvino.opset1.ops import minimum
from openvino.opset1.ops import mod
from openvino.opset1.ops import multiply
@@ -107,5 +108,4 @@ 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
index 3c10e99a18a..15c8d1aeffd 100644
--- a/src/bindings/python/src/openvino/opset1/ops.pyi
+++ b/src/bindings/python/src/openvino/opset1/ops.pyi
@@ -1,24 +1,21 @@
# type: ignore
-"""
-Factory functions for all openvino ops.
-"""
-from functools import partial
from __future__ import annotations
-from openvino.package_utils import deprecated
+from functools import partial
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.package_utils import deprecated
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.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_dtype
@@ -31,6 +28,9 @@ import numpy as np
import openvino._pyopenvino
import openvino._pyopenvino.op
import typing
+"""
+Factory functions for all openvino ops.
+"""
__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:
"""
diff --git a/src/bindings/python/src/openvino/opset10/__init__.pyi b/src/bindings/python/src/openvino/opset10/__init__.pyi
index c9c5a5ac6bf..85b9157933d 100644
--- a/src/bindings/python/src/openvino/opset10/__init__.pyi
+++ b/src/bindings/python/src/openvino/opset10/__init__.pyi
@@ -1,11 +1,10 @@
# 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 __future__ import annotations
+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
from openvino.opset1.ops import absolute
from openvino.opset1.ops import absolute as abs
from openvino.opset1.ops import acos
@@ -98,6 +97,11 @@ 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.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.opset2.ops import batch_to_space
from openvino.opset2.ops import reorg_yolo
from openvino.opset2.ops import roi_pooling
@@ -171,10 +175,6 @@ 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
index d31d8d160fd..8b3d4c1f6c8 100644
--- a/src/bindings/python/src/openvino/opset10/ops.pyi
+++ b/src/bindings/python/src/openvino/opset10/ops.pyi
@@ -1,9 +1,6 @@
# type: ignore
-"""
-Factory functions for all openvino ops.
-"""
-from functools import partial
from __future__ import annotations
+from functools import partial
from openvino._pyopenvino import Node
from openvino.utils.decorators import nameable_op
from openvino.utils.node_factory import _get_node_factory
@@ -13,6 +10,9 @@ from openvino.utils.types import make_constant_node
import functools
import openvino._pyopenvino
import typing
+"""
+Factory functions for all openvino ops.
+"""
__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:
"""
diff --git a/src/bindings/python/src/openvino/opset11/__init__.pyi b/src/bindings/python/src/openvino/opset11/__init__.pyi
index 85fc79e445b..dbc894755c6 100644
--- a/src/bindings/python/src/openvino/opset11/__init__.pyi
+++ b/src/bindings/python/src/openvino/opset11/__init__.pyi
@@ -1,12 +1,10 @@
# 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 __future__ import annotations
+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
from openvino.opset1.ops import absolute
from openvino.opset1.ops import absolute as abs
from openvino.opset1.ops import acos
@@ -99,6 +97,12 @@ 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.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.opset2.ops import batch_to_space
from openvino.opset2.ops import reorg_yolo
from openvino.opset2.ops import roi_pooling
@@ -171,10 +175,6 @@ 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
index 33a8a95aef0..fdcf3d93dd9 100644
--- a/src/bindings/python/src/openvino/opset11/ops.pyi
+++ b/src/bindings/python/src/openvino/opset11/ops.pyi
@@ -1,9 +1,6 @@
# type: ignore
-"""
-Factory functions for all openvino ops.
-"""
-from functools import partial
from __future__ import annotations
+from functools import partial
from openvino._pyopenvino import Node
from openvino.utils.decorators import nameable_op
from openvino.utils.node_factory import _get_node_factory
@@ -11,6 +8,9 @@ from openvino.utils.types import as_nodes
import functools
import openvino._pyopenvino
import typing
+"""
+Factory functions for all openvino ops.
+"""
__all__ = ['Node', 'NodeInput', 'as_nodes', 'interpolate', 'nameable_op', 'partial', 'topk']
def interpolate(*args, **kwargs) -> openvino._pyopenvino.Node:
"""
diff --git a/src/bindings/python/src/openvino/opset12/__init__.pyi b/src/bindings/python/src/openvino/opset12/__init__.pyi
index 18cc0035683..d20e6881ffb 100644
--- a/src/bindings/python/src/openvino/opset12/__init__.pyi
+++ b/src/bindings/python/src/openvino/opset12/__init__.pyi
@@ -1,15 +1,10 @@
# 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 __future__ import annotations
+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
from openvino.opset1.ops import absolute
from openvino.opset1.ops import absolute as abs
from openvino.opset1.ops import acos
@@ -100,6 +95,15 @@ 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.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.opset2.ops import batch_to_space
from openvino.opset2.ops import reorg_yolo
from openvino.opset2.ops import roi_pooling
@@ -172,10 +176,6 @@ 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
index 92b0e48111c..7390f5f037f 100644
--- a/src/bindings/python/src/openvino/opset12/ops.pyi
+++ b/src/bindings/python/src/openvino/opset12/ops.pyi
@@ -1,9 +1,6 @@
# type: ignore
-"""
-Factory functions for all ngraph ops.
-"""
-from functools import partial
from __future__ import annotations
+from functools import partial
from openvino._pyopenvino import Node
from openvino.utils.decorators import nameable_op
from openvino.utils.node_factory import _get_node_factory
@@ -12,6 +9,9 @@ from openvino.utils.types import as_nodes
import functools
import openvino._pyopenvino
import typing
+"""
+Factory functions for all ngraph ops.
+"""
__all__ = ['Node', 'NodeInput', 'as_node', 'as_nodes', 'group_normalization', 'nameable_op', 'pad', 'partial', 'scatter_elements_update']
def group_normalization(*args, **kwargs) -> openvino._pyopenvino.Node:
"""
diff --git a/src/bindings/python/src/openvino/opset13/__init__.pyi b/src/bindings/python/src/openvino/opset13/__init__.pyi
index 1ac74ef941b..ca002cade45 100644
--- a/src/bindings/python/src/openvino/opset13/__init__.pyi
+++ b/src/bindings/python/src/openvino/opset13/__init__.pyi
@@ -1,25 +1,10 @@
# 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 __future__ import annotations
+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
from openvino.opset1.ops import absolute
from openvino.opset1.ops import absolute as abs
from openvino.opset1.ops import acos
@@ -107,6 +92,25 @@ 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.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.opset2.ops import batch_to_space
from openvino.opset2.ops import reorg_yolo
from openvino.opset2.ops import roi_pooling
@@ -179,10 +183,6 @@ 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>
diff --git a/src/bindings/python/src/openvino/opset13/ops.pyi b/src/bindings/python/src/openvino/opset13/ops.pyi
index 07e10dd9eaa..0e5dd8ad663 100644
--- a/src/bindings/python/src/openvino/opset13/ops.pyi
+++ b/src/bindings/python/src/openvino/opset13/ops.pyi
@@ -1,11 +1,7 @@
# type: ignore
-"""
-Factory functions for ops added to openvino opset13.
-"""
+from __future__ import annotations
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
@@ -13,6 +9,7 @@ from openvino._pyopenvino import Tensor
from openvino._pyopenvino import Type
from openvino._pyopenvino.op import Constant
from openvino._pyopenvino.op import Result
+from openvino.opset1.ops import convert_like
from openvino.utils.decorators import binary_op
from openvino.utils.decorators import nameable_op
from openvino.utils.decorators import overloading
@@ -26,6 +23,9 @@ import numpy as np
import openvino._pyopenvino
import openvino.utils.decorators
import typing
+"""
+Factory functions for ops added to openvino opset13.
+"""
__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:
"""
diff --git a/src/bindings/python/src/openvino/opset14/__init__.pyi b/src/bindings/python/src/openvino/opset14/__init__.pyi
index ea6c06d2096..6a52443a245 100644
--- a/src/bindings/python/src/openvino/opset14/__init__.pyi
+++ b/src/bindings/python/src/openvino/opset14/__init__.pyi
@@ -1,29 +1,10 @@
# 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 __future__ import annotations
+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
from openvino.opset1.ops import absolute
from openvino.opset1.ops import absolute as abs
from openvino.opset1.ops import acos
@@ -110,6 +91,29 @@ 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.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.opset2.ops import batch_to_space
from openvino.opset2.ops import reorg_yolo
from openvino.opset2.ops import roi_pooling
@@ -181,10 +185,6 @@ 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>
diff --git a/src/bindings/python/src/openvino/opset14/ops.pyi b/src/bindings/python/src/openvino/opset14/ops.pyi
index 5ab7368a069..9e8449aeebe 100644
--- a/src/bindings/python/src/openvino/opset14/ops.pyi
+++ b/src/bindings/python/src/openvino/opset14/ops.pyi
@@ -1,9 +1,6 @@
# type: ignore
-"""
-Factory functions for ops added to openvino opset14.
-"""
-from functools import partial
from __future__ import annotations
+from functools import partial
from openvino._pyopenvino import Node
from openvino._pyopenvino import Type
from openvino.utils.decorators import nameable_op
@@ -13,6 +10,9 @@ from openvino.utils.types import as_nodes
import functools
import openvino._pyopenvino
import typing
+"""
+Factory functions for ops added to openvino opset14.
+"""
__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:
"""
diff --git a/src/bindings/python/src/openvino/opset15/__init__.pyi b/src/bindings/python/src/openvino/opset15/__init__.pyi
index 327d5362d8b..79ee1e8efb2 100644
--- a/src/bindings/python/src/openvino/opset15/__init__.pyi
+++ b/src/bindings/python/src/openvino/opset15/__init__.pyi
@@ -1,42 +1,10 @@
# 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 __future__ import annotations
+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
from openvino.opset1.ops import absolute
from openvino.opset1.ops import absolute as abs
from openvino.opset1.ops import acos
@@ -122,6 +90,42 @@ 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.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.opset2.ops import batch_to_space
from openvino.opset2.ops import reorg_yolo
from openvino.opset2.ops import roi_pooling
@@ -192,10 +196,6 @@ 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>
diff --git a/src/bindings/python/src/openvino/opset15/ops.pyi b/src/bindings/python/src/openvino/opset15/ops.pyi
index ad8d30bc924..8a4b95a70c2 100644
--- a/src/bindings/python/src/openvino/opset15/ops.pyi
+++ b/src/bindings/python/src/openvino/opset15/ops.pyi
@@ -1,12 +1,9 @@
# 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 functools import partial
from openvino._pyopenvino import Node
from openvino._pyopenvino import Type
+from openvino.opset1.ops import convert_like
from openvino.utils.decorators import binary_op
from openvino.utils.decorators import nameable_op
from openvino.utils.node_factory import _get_node_factory
@@ -16,6 +13,9 @@ import numpy as np
import openvino._pyopenvino
import openvino.utils.decorators
import typing
+"""
+Factory functions for ops added to openvino opset15.
+"""
__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:
"""
diff --git a/src/bindings/python/src/openvino/opset16/__init__.pyi b/src/bindings/python/src/openvino/opset16/__init__.pyi
index 116a6525804..389eccc737b 100644
--- a/src/bindings/python/src/openvino/opset16/__init__.pyi
+++ b/src/bindings/python/src/openvino/opset16/__init__.pyi
@@ -1,6 +1,6 @@
# type: ignore
-from __future__ import annotations
from . import ops
+from __future__ import annotations
from openvino.opset16.ops import identity
from openvino.opset16.ops import istft
from openvino.opset16.ops import segment_max
diff --git a/src/bindings/python/src/openvino/opset16/ops.pyi b/src/bindings/python/src/openvino/opset16/ops.pyi
index 12fbfbf270b..d3e4ed47753 100644
--- a/src/bindings/python/src/openvino/opset16/ops.pyi
+++ b/src/bindings/python/src/openvino/opset16/ops.pyi
@@ -1,9 +1,6 @@
# type: ignore
-"""
-Factory functions for ops added to openvino opset16.
-"""
-from functools import partial
from __future__ import annotations
+from functools import partial
from openvino._pyopenvino import Node
from openvino.utils.decorators import nameable_op
from openvino.utils.node_factory import _get_node_factory
@@ -11,6 +8,9 @@ from openvino.utils.types import as_nodes
import functools
import openvino._pyopenvino
import typing
+"""
+Factory functions for ops added to openvino opset16.
+"""
__all__ = ['Node', 'NodeInput', 'as_nodes', 'identity', 'istft', 'nameable_op', 'partial', 'segment_max']
def identity(*args, **kwargs) -> openvino._pyopenvino.Node:
"""
diff --git a/src/bindings/python/src/openvino/opset2/__init__.pyi b/src/bindings/python/src/openvino/opset2/__init__.pyi
index 4a3692bb87e..bcc4cf79303 100644
--- a/src/bindings/python/src/openvino/opset2/__init__.pyi
+++ b/src/bindings/python/src/openvino/opset2/__init__.pyi
@@ -1,6 +1,7 @@
# type: ignore
-from __future__ import annotations
from . import ops
+from __future__ import annotations
+from openvino._pyopenvino.op import tensor_iterator
from openvino.opset1.ops import absolute
from openvino.opset1.ops import absolute as abs
from openvino.opset1.ops import acos
@@ -54,8 +55,8 @@ 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 maximum
from openvino.opset1.ops import minimum
from openvino.opset1.ops import mod
from openvino.opset1.ops import multiply
@@ -113,5 +114,4 @@ 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
index 85c07315da5..ef1be1633f9 100644
--- a/src/bindings/python/src/openvino/opset2/ops.pyi
+++ b/src/bindings/python/src/openvino/opset2/ops.pyi
@@ -1,9 +1,6 @@
# type: ignore
-"""
-Factory functions for all openvino ops.
-"""
-from functools import partial
from __future__ import annotations
+from functools import partial
from openvino._pyopenvino import Node
from openvino._pyopenvino import Shape
from openvino._pyopenvino.op import Constant
@@ -15,8 +12,8 @@ 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.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_dtype
@@ -28,6 +25,9 @@ import numpy as np
import openvino._pyopenvino
import typing
import warnings as warnings
+"""
+Factory functions for all openvino ops.
+"""
__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:
"""
diff --git a/src/bindings/python/src/openvino/opset3/__init__.pyi b/src/bindings/python/src/openvino/opset3/__init__.pyi
index ab4af4ef2af..7aa8eee9f00 100644
--- a/src/bindings/python/src/openvino/opset3/__init__.pyi
+++ b/src/bindings/python/src/openvino/opset3/__init__.pyi
@@ -1,6 +1,7 @@
# type: ignore
-from __future__ import annotations
from . import ops
+from __future__ import annotations
+from openvino._pyopenvino.op import tensor_iterator
from openvino.opset1.ops import absolute
from openvino.opset1.ops import absolute as abs
from openvino.opset1.ops import acos
@@ -53,8 +54,8 @@ 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 maximum
from openvino.opset1.ops import minimum
from openvino.opset1.ops import mod
from openvino.opset1.ops import multiply
@@ -129,5 +130,4 @@ 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
index 1a8e264802e..44c49290daa 100644
--- a/src/bindings/python/src/openvino/opset3/ops.pyi
+++ b/src/bindings/python/src/openvino/opset3/ops.pyi
@@ -1,9 +1,6 @@
# type: ignore
-"""
-Factory functions for all openvino ops.
-"""
-from functools import partial
from __future__ import annotations
+from functools import partial
from openvino._pyopenvino import Node
from openvino._pyopenvino import Shape
from openvino._pyopenvino.op import Constant
@@ -15,8 +12,8 @@ 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.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_dtype
@@ -27,6 +24,9 @@ import functools
import numpy as np
import openvino._pyopenvino
import typing
+"""
+Factory functions for all openvino ops.
+"""
__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:
"""
diff --git a/src/bindings/python/src/openvino/opset4/__init__.pyi b/src/bindings/python/src/openvino/opset4/__init__.pyi
index b3e89a0c02e..22c58ae8fc2 100644
--- a/src/bindings/python/src/openvino/opset4/__init__.pyi
+++ b/src/bindings/python/src/openvino/opset4/__init__.pyi
@@ -1,6 +1,7 @@
# type: ignore
-from __future__ import annotations
from . import ops
+from __future__ import annotations
+from openvino._pyopenvino.op import tensor_iterator
from openvino.opset1.ops import absolute
from openvino.opset1.ops import absolute as abs
from openvino.opset1.ops import acos
@@ -52,8 +53,8 @@ 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 maximum
from openvino.opset1.ops import minimum
from openvino.opset1.ops import mod
from openvino.opset1.ops import multiply
@@ -140,5 +141,4 @@ 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
index 7edf5e2106f..cf99d2858e5 100644
--- a/src/bindings/python/src/openvino/opset4/ops.pyi
+++ b/src/bindings/python/src/openvino/opset4/ops.pyi
@@ -1,9 +1,6 @@
# type: ignore
-"""
-Factory functions for all openvino ops.
-"""
-from functools import partial
from __future__ import annotations
+from functools import partial
from openvino._pyopenvino import Node
from openvino._pyopenvino import Shape
from openvino._pyopenvino.op import Constant
@@ -15,8 +12,8 @@ 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.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_dtype
@@ -27,6 +24,9 @@ import functools
import numpy as np
import openvino._pyopenvino
import typing
+"""
+Factory functions for all openvino ops.
+"""
__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:
"""
diff --git a/src/bindings/python/src/openvino/opset5/__init__.pyi b/src/bindings/python/src/openvino/opset5/__init__.pyi
index 945ac14ac38..98a2a9a7dc6 100644
--- a/src/bindings/python/src/openvino/opset5/__init__.pyi
+++ b/src/bindings/python/src/openvino/opset5/__init__.pyi
@@ -1,6 +1,8 @@
# type: ignore
-from __future__ import annotations
from . import ops
+from __future__ import annotations
+from openvino._pyopenvino.op import loop
+from openvino._pyopenvino.op import tensor_iterator
from openvino.opset1.ops import absolute
from openvino.opset1.ops import absolute as abs
from openvino.opset1.ops import acos
@@ -51,8 +53,8 @@ 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 maximum
from openvino.opset1.ops import minimum
from openvino.opset1.ops import mod
from openvino.opset1.ops import multiply
@@ -147,6 +149,4 @@ 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
index 0ddff482cea..e9681981e53 100644
--- a/src/bindings/python/src/openvino/opset5/ops.pyi
+++ b/src/bindings/python/src/openvino/opset5/ops.pyi
@@ -1,14 +1,11 @@
# type: ignore
-"""
-Factory functions for all openvino ops.
-"""
-from functools import partial
from __future__ import annotations
+from functools import partial
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._pyopenvino.op import loop
from openvino.utils.decorators import binary_op
from openvino.utils.decorators import nameable_op
from openvino.utils.decorators import unary_op
@@ -16,8 +13,8 @@ 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.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_dtype
@@ -28,6 +25,9 @@ import functools
import numpy as np
import openvino._pyopenvino
import typing
+"""
+Factory functions for all openvino ops.
+"""
__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:
"""
diff --git a/src/bindings/python/src/openvino/opset6/__init__.pyi b/src/bindings/python/src/openvino/opset6/__init__.pyi
index 96b31c08dc7..0232bed6497 100644
--- a/src/bindings/python/src/openvino/opset6/__init__.pyi
+++ b/src/bindings/python/src/openvino/opset6/__init__.pyi
@@ -1,6 +1,9 @@
# type: ignore
-from __future__ import annotations
from . import ops
+from __future__ import annotations
+from openvino._pyopenvino.op import assign
+from openvino._pyopenvino.op import loop
+from openvino._pyopenvino.op import tensor_iterator
from openvino.opset1.ops import absolute
from openvino.opset1.ops import absolute as abs
from openvino.opset1.ops import acos
@@ -51,8 +54,8 @@ 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 maximum
from openvino.opset1.ops import minimum
from openvino.opset1.ops import mod
from openvino.opset1.ops import multiply
@@ -147,9 +150,6 @@ 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
index 27ab8dcb1e1..87f8de3db32 100644
--- a/src/bindings/python/src/openvino/opset6/ops.pyi
+++ b/src/bindings/python/src/openvino/opset6/ops.pyi
@@ -1,15 +1,15 @@
# type: ignore
+from __future__ import annotations
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 assign
from openvino._pyopenvino.op import read_value as _read_value
from openvino._pyopenvino.op.util import Variable
from openvino._pyopenvino.op.util import VariableInfo
diff --git a/src/bindings/python/src/openvino/opset7/__init__.pyi b/src/bindings/python/src/openvino/opset7/__init__.pyi
index 7c91253af44..8db7a61538c 100644
--- a/src/bindings/python/src/openvino/opset7/__init__.pyi
+++ b/src/bindings/python/src/openvino/opset7/__init__.pyi
@@ -1,6 +1,9 @@
# type: ignore
-from __future__ import annotations
from . import ops
+from __future__ import annotations
+from openvino._pyopenvino.op import assign
+from openvino._pyopenvino.op import loop
+from openvino._pyopenvino.op import tensor_iterator
from openvino.opset1.ops import absolute
from openvino.opset1.ops import absolute as abs
from openvino.opset1.ops import acos
@@ -50,8 +53,8 @@ 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 maximum
from openvino.opset1.ops import minimum
from openvino.opset1.ops import mod
from openvino.opset1.ops import multiply
@@ -151,9 +154,6 @@ 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
index 43fe74c93e1..5a86fca2561 100644
--- a/src/bindings/python/src/openvino/opset7/ops.pyi
+++ b/src/bindings/python/src/openvino/opset7/ops.pyi
@@ -1,9 +1,6 @@
# type: ignore
-"""
-Factory functions for all openvino ops.
-"""
-from functools import partial
from __future__ import annotations
+from functools import partial
from openvino._pyopenvino import Node
from openvino._pyopenvino import Shape
from openvino._pyopenvino.op import Constant
@@ -15,8 +12,8 @@ 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.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_dtype
@@ -27,6 +24,9 @@ import functools
import numpy as np
import openvino._pyopenvino
import typing
+"""
+Factory functions for all openvino ops.
+"""
__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:
"""
diff --git a/src/bindings/python/src/openvino/opset8/__init__.pyi b/src/bindings/python/src/openvino/opset8/__init__.pyi
index 2ae1c0d8ea4..742db70e93b 100644
--- a/src/bindings/python/src/openvino/opset8/__init__.pyi
+++ b/src/bindings/python/src/openvino/opset8/__init__.pyi
@@ -1,6 +1,10 @@
# type: ignore
-from __future__ import annotations
from . import ops
+from __future__ import annotations
+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
from openvino.opset1.ops import absolute
from openvino.opset1.ops import absolute as abs
from openvino.opset1.ops import acos
@@ -161,10 +165,6 @@ 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
index 4d951d6f9ca..25649ae1eea 100644
--- a/src/bindings/python/src/openvino/opset8/ops.pyi
+++ b/src/bindings/python/src/openvino/opset8/ops.pyi
@@ -1,14 +1,11 @@
# type: ignore
-"""
-Factory functions for all openvino ops.
-"""
-from functools import partial
from __future__ import annotations
-from openvino.exceptions import UserInputError
+from functools import partial
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._pyopenvino.op import if_op
+from openvino.exceptions import UserInputError
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
@@ -20,6 +17,9 @@ import functools
import numpy as np
import openvino._pyopenvino
import typing
+"""
+Factory functions for all openvino ops.
+"""
__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:
"""
diff --git a/src/bindings/python/src/openvino/opset9/__init__.pyi b/src/bindings/python/src/openvino/opset9/__init__.pyi
index 0a86825a751..05e6e789237 100644
--- a/src/bindings/python/src/openvino/opset9/__init__.pyi
+++ b/src/bindings/python/src/openvino/opset9/__init__.pyi
@@ -1,6 +1,10 @@
# type: ignore
-from __future__ import annotations
from . import ops
+from __future__ import annotations
+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
from openvino.opset1.ops import absolute
from openvino.opset1.ops import absolute as abs
from openvino.opset1.ops import acos
@@ -167,10 +171,6 @@ 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
index f6013d4a778..a283a14356d 100644
--- a/src/bindings/python/src/openvino/opset9/ops.pyi
+++ b/src/bindings/python/src/openvino/opset9/ops.pyi
@@ -1,9 +1,6 @@
# type: ignore
-"""
-Factory functions for all openvino ops.
-"""
-from functools import partial
from __future__ import annotations
+from functools import partial
from openvino._pyopenvino import Node
from openvino.utils.decorators import nameable_op
from openvino.utils.node_factory import _get_node_factory
@@ -14,6 +11,9 @@ import functools
import numpy as np
import openvino._pyopenvino
import typing
+"""
+Factory functions for all openvino ops.
+"""
__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:
"""
diff --git a/src/bindings/python/src/openvino/package_utils.pyi b/src/bindings/python/src/openvino/package_utils.pyi
index efe9ff5791d..00034a0abe8 100644
--- a/src/bindings/python/src/openvino/package_utils.pyi
+++ b/src/bindings/python/src/openvino/package_utils.pyi
@@ -1,7 +1,7 @@
# type: ignore
+from __future__ import annotations
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
diff --git a/src/bindings/python/src/openvino/preprocess.pyi b/src/bindings/python/src/openvino/preprocess.pyi
index ee905df57b2..48b40c2f71a 100644
--- a/src/bindings/python/src/openvino/preprocess.pyi
+++ b/src/bindings/python/src/openvino/preprocess.pyi
@@ -1,9 +1,4 @@
# 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
@@ -18,5 +13,10 @@ from openvino._pyopenvino.preprocess import PostProcessSteps
from openvino._pyopenvino.preprocess import PrePostProcessor
from openvino._pyopenvino.preprocess import PreProcessSteps
from openvino._pyopenvino.preprocess import ResizeAlgorithm
+"""
+
+Package: openvino
+Low level wrappers for the PrePostProcessing C++ API.
+"""
__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/properties/__init__.pyi b/src/bindings/python/src/openvino/properties/__init__.pyi
index 1a832c08427..a50d31201be 100644
--- a/src/bindings/python/src/openvino/properties/__init__.pyi
+++ b/src/bindings/python/src/openvino/properties/__init__.pyi
@@ -1,15 +1,15 @@
# type: ignore
-from __future__ import annotations
+from . import _properties
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 __future__ import annotations
from openvino._pyopenvino import properties as __properties
from openvino._pyopenvino.properties import CacheMode
from openvino._pyopenvino.properties import WorkloadType
+from openvino.properties._properties import __make_properties
__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
index 47a889f0952..97ee6021df3 100644
--- a/src/bindings/python/src/openvino/properties/_properties.pyi
+++ b/src/bindings/python/src/openvino/properties/_properties.pyi
@@ -1,7 +1,7 @@
# type: ignore
+from __future__ import annotations
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
diff --git a/src/bindings/python/src/openvino/properties/device.pyi b/src/bindings/python/src/openvino/properties/device.pyi
index 97e403c1634..1bff959e81b 100644
--- a/src/bindings/python/src/openvino/properties/device.pyi
+++ b/src/bindings/python/src/openvino/properties/device.pyi
@@ -1,7 +1,7 @@
# type: ignore
from __future__ import annotations
-from openvino.properties._properties import __make_properties
+from openvino._pyopenvino.properties import device as __device
from openvino._pyopenvino.properties.device import Capability
from openvino._pyopenvino.properties.device import Type
-from openvino._pyopenvino.properties import device as __device
+from openvino.properties._properties import __make_properties
__all__ = ['Capability', 'Type']
diff --git a/src/bindings/python/src/openvino/properties/hint.pyi b/src/bindings/python/src/openvino/properties/hint.pyi
index 901da24584d..e3b39d6789d 100644
--- a/src/bindings/python/src/openvino/properties/hint.pyi
+++ b/src/bindings/python/src/openvino/properties/hint.pyi
@@ -1,10 +1,10 @@
# type: ignore
from __future__ import annotations
-from openvino.properties._properties import __make_properties
+from openvino._pyopenvino.properties import hint as __hint
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
+from openvino.properties._properties import __make_properties
__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
index 8f4af763938..512152b2378 100644
--- a/src/bindings/python/src/openvino/properties/intel_auto.pyi
+++ b/src/bindings/python/src/openvino/properties/intel_auto.pyi
@@ -1,6 +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
+from openvino.properties._properties import __make_properties
__all__ = ['SchedulePolicy']
diff --git a/src/bindings/python/src/openvino/properties/intel_cpu.pyi b/src/bindings/python/src/openvino/properties/intel_cpu.pyi
index 14bdf93960b..2cc3bf74e35 100644
--- a/src/bindings/python/src/openvino/properties/intel_cpu.pyi
+++ b/src/bindings/python/src/openvino/properties/intel_cpu.pyi
@@ -1,5 +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
+from openvino.properties._properties import __make_properties
__all__ = list()
diff --git a/src/bindings/python/src/openvino/properties/intel_gpu.pyi b/src/bindings/python/src/openvino/properties/intel_gpu.pyi
index 93253b9968f..ee47f3ba5aa 100644
--- a/src/bindings/python/src/openvino/properties/intel_gpu.pyi
+++ b/src/bindings/python/src/openvino/properties/intel_gpu.pyi
@@ -1,7 +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
+from openvino.properties._properties import __make_properties
__all__ = ['CapabilityGPU', 'MemoryType']
diff --git a/src/bindings/python/src/openvino/properties/log.pyi b/src/bindings/python/src/openvino/properties/log.pyi
index 95caa16ae90..9bd48b66270 100644
--- a/src/bindings/python/src/openvino/properties/log.pyi
+++ b/src/bindings/python/src/openvino/properties/log.pyi
@@ -1,6 +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
+from openvino.properties._properties import __make_properties
__all__ = ['Level']
diff --git a/src/bindings/python/src/openvino/properties/streams.pyi b/src/bindings/python/src/openvino/properties/streams.pyi
index 6079e8d225f..44a631422b3 100644
--- a/src/bindings/python/src/openvino/properties/streams.pyi
+++ b/src/bindings/python/src/openvino/properties/streams.pyi
@@ -1,6 +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
+from openvino.properties._properties import __make_properties
__all__ = ['Num']
diff --git a/src/bindings/python/src/openvino/tools/__init__.pyi b/src/bindings/python/src/openvino/tools/__init__.pyi
index de55f86490b..14ad0c66add 100644
--- a/src/bindings/python/src/openvino/tools/__init__.pyi
+++ b/src/bindings/python/src/openvino/tools/__init__.pyi
@@ -1,4 +1,4 @@
# type: ignore
-from __future__ import annotations
from . import ovc
+from __future__ import annotations
__all__ = ['ovc']
diff --git a/src/bindings/python/src/openvino/tools/ovc/__init__.pyi b/src/bindings/python/src/openvino/tools/ovc/__init__.pyi
index 6572caca1d9..62c47af78fc 100644
--- a/src/bindings/python/src/openvino/tools/ovc/__init__.pyi
+++ b/src/bindings/python/src/openvino/tools/ovc/__init__.pyi
@@ -1,18 +1,18 @@
# 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 __future__ import annotations
+from importlib import metadata as importlib_metadata
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
diff --git a/src/bindings/python/src/openvino/tools/ovc/cli_parser.pyi b/src/bindings/python/src/openvino/tools/ovc/cli_parser.pyi
index b766d706abd..b92a75fddb1 100644
--- a/src/bindings/python/src/openvino/tools/ovc/cli_parser.pyi
+++ b/src/bindings/python/src/openvino/tools/ovc/cli_parser.pyi
@@ -1,7 +1,7 @@
# type: ignore
-from collections import namedtuple
-from collections import OrderedDict
from __future__ import annotations
+from collections import OrderedDict
+from collections import namedtuple
from openvino._pyopenvino import Dimension
from openvino._pyopenvino import PartialShape
from openvino._pyopenvino import Type
diff --git a/src/bindings/python/src/openvino/tools/ovc/convert_impl.pyi b/src/bindings/python/src/openvino/tools/ovc/convert_impl.pyi
index 81a25bc7acc..25433273698 100644
--- a/src/bindings/python/src/openvino/tools/ovc/convert_impl.pyi
+++ b/src/bindings/python/src/openvino/tools/ovc/convert_impl.pyi
@@ -1,12 +1,14 @@
# 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 collections import OrderedDict
from openvino._pyopenvino import OpConversionFailure
from openvino._pyopenvino import PartialShape
from openvino._pyopenvino import TelemetryExtension
-from openvino_telemetry.backend import backend_ga4
+from openvino._pyopenvino import get_version as get_rt_version
+from openvino.frontend.frontend import FrontEndManager
+from openvino.frontend.tensorflow.utils import create_tf_graph_iterator
+from openvino.frontend.tensorflow.utils import extract_model_graph
+from openvino.frontend.tensorflow.utils import type_supported_by_tf_fe
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
@@ -32,6 +34,7 @@ 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 openvino_telemetry.backend import backend_ga4
from pathlib import Path
import argparse as argparse
import datetime as datetime
@@ -41,7 +44,7 @@ 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']
+__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', 'create_tf_graph_iterator', 'datetime', 'depersonalize', 'driver', 'extract_input_info_from_example', 'extract_model_graph', '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', 'type_supported_by_tf_fe']
def _convert(cli_parser: argparse.ArgumentParser, args, python_api_used):
...
def add_line_breaks(text: str, char_num: int, line_break: str):
@@ -94,4 +97,3 @@ 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/logger.pyi b/src/bindings/python/src/openvino/tools/ovc/logger.pyi
index 5f53d66bacf..34e1e20c25c 100644
--- a/src/bindings/python/src/openvino/tools/ovc/logger.pyi
+++ b/src/bindings/python/src/openvino/tools/ovc/logger.pyi
@@ -1,6 +1,6 @@
# type: ignore
-from copy import copy
from __future__ import annotations
+from copy import copy
import importlib as importlib
import logging
import logging as log
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
index 613b21f4fb1..5e107e97e6d 100644
--- a/src/bindings/python/src/openvino/tools/ovc/moc_frontend/__init__.pyi
+++ b/src/bindings/python/src/openvino/tools/ovc/moc_frontend/__init__.pyi
@@ -1,5 +1,4 @@
# type: ignore
-from __future__ import annotations
from . import analysis
from . import check_config
from . import extractor
@@ -12,4 +11,5 @@ from . import preprocessing
from . import pytorch_frontend_utils
from . import shape_utils
from . import type_utils
+from __future__ import annotations
__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/extractor.pyi b/src/bindings/python/src/openvino/tools/ovc/moc_frontend/extractor.pyi
index 09ae0f78b88..0111fcd7349 100644
--- a/src/bindings/python/src/openvino/tools/ovc/moc_frontend/extractor.pyi
+++ b/src/bindings/python/src/openvino/tools/ovc/moc_frontend/extractor.pyi
@@ -1,6 +1,6 @@
# type: ignore
-from enum import Enum
from __future__ import annotations
+from enum import Enum
from openvino._pyopenvino import InputModel
from openvino._pyopenvino import PartialShape
from openvino._pyopenvino import Place
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
index 17ea914aba4..d61281b0bb6 100644
--- a/src/bindings/python/src/openvino/tools/ovc/moc_frontend/pipeline.pyi
+++ b/src/bindings/python/src/openvino/tools/ovc/moc_frontend/pipeline.pyi
@@ -1,11 +1,11 @@
# 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.frontend.frontend import FrontEnd
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
diff --git a/src/bindings/python/src/openvino/tools/ovc/telemetry_utils.pyi b/src/bindings/python/src/openvino/tools/ovc/telemetry_utils.pyi
index 81b8b2c28cf..f21ec413514 100644
--- a/src/bindings/python/src/openvino/tools/ovc/telemetry_utils.pyi
+++ b/src/bindings/python/src/openvino/tools/ovc/telemetry_utils.pyi
@@ -1,9 +1,9 @@
# 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
+from openvino_telemetry.backend import backend_ga4
import argparse as argparse
import numbers as numbers
import openvino_telemetry as tm
diff --git a/src/bindings/python/src/openvino/tools/ovc/utils.pyi b/src/bindings/python/src/openvino/tools/ovc/utils.pyi
index 2257881d6b4..8e4bc6a52eb 100644
--- a/src/bindings/python/src/openvino/tools/ovc/utils.pyi
+++ b/src/bindings/python/src/openvino/tools/ovc/utils.pyi
@@ -1,8 +1,8 @@
# 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
+from openvino_telemetry.backend import backend_ga4
import importlib as importlib
import logging as log
import numpy
diff --git a/src/bindings/python/src/openvino/utils/__init__.pyi b/src/bindings/python/src/openvino/utils/__init__.pyi
index 0027334232e..b2d192e0f73 100644
--- a/src/bindings/python/src/openvino/utils/__init__.pyi
+++ b/src/bindings/python/src/openvino/utils/__init__.pyi
@@ -1,20 +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 __future__ import annotations
+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.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
+"""
+Generic utilities. Factor related functions out to separate files.
+"""
__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
index 7c5739d821c..e07bfc31009 100644
--- a/src/bindings/python/src/openvino/utils/data_helpers/__init__.pyi
+++ b/src/bindings/python/src/openvino/utils/data_helpers/__init__.pyi
@@ -1,9 +1,9 @@
# type: ignore
-from __future__ import annotations
from . import data_dispatcher
from . import wrappers
+from __future__ import annotations
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 _InferRequestWrapper
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
index b84fcc2ca9e..b949c39d7e4 100644
--- a/src/bindings/python/src/openvino/utils/data_helpers/data_dispatcher.pyi
+++ b/src/bindings/python/src/openvino/utils/data_helpers/data_dispatcher.pyi
@@ -1,12 +1,12 @@
# type: ignore
-from functools import singledispatch
from __future__ import annotations
+from functools import singledispatch
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 openvino.utils.data_helpers.wrappers import _InferRequestWrapper
from typing import Any
import numpy as np
import openvino._pyopenvino
diff --git a/src/bindings/python/src/openvino/utils/data_helpers/wrappers.pyi b/src/bindings/python/src/openvino/utils/data_helpers/wrappers.pyi
index 7b941eda064..3ac6b902828 100644
--- a/src/bindings/python/src/openvino/utils/data_helpers/wrappers.pyi
+++ b/src/bindings/python/src/openvino/utils/data_helpers/wrappers.pyi
@@ -1,7 +1,7 @@
# type: ignore
+from __future__ import annotations
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
diff --git a/src/bindings/python/src/openvino/utils/decorators.pyi b/src/bindings/python/src/openvino/utils/decorators.pyi
index 1107e2f5409..fd89f18b449 100644
--- a/src/bindings/python/src/openvino/utils/decorators.pyi
+++ b/src/bindings/python/src/openvino/utils/decorators.pyi
@@ -1,6 +1,6 @@
# type: ignore
-from functools import wraps
from __future__ import annotations
+from functools import wraps
from inspect import signature
from openvino._pyopenvino import Node
from openvino._pyopenvino import Output
diff --git a/src/bindings/python/src/openvino/utils/input_validation.pyi b/src/bindings/python/src/openvino/utils/input_validation.pyi
index d4f93d051dd..d993abb45a4 100644
--- a/src/bindings/python/src/openvino/utils/input_validation.pyi
+++ b/src/bindings/python/src/openvino/utils/input_validation.pyi
@@ -1,12 +1,12 @@
# 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
+"""
+Helper functions for validating user input.
+"""
__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):
"""
diff --git a/src/bindings/python/src/openvino/utils/node_factory.pyi b/src/bindings/python/src/openvino/utils/node_factory.pyi
index dc1fae12ee4..cdfaf7afeca 100644
--- a/src/bindings/python/src/openvino/utils/node_factory.pyi
+++ b/src/bindings/python/src/openvino/utils/node_factory.pyi
@@ -1,11 +1,11 @@
# type: ignore
-from functools import singledispatchmethod
from __future__ import annotations
-from openvino.exceptions import UserInputError
+from functools import singledispatchmethod
from openvino._pyopenvino import Extension
from openvino._pyopenvino import Node
from openvino._pyopenvino import NodeFactory as _NodeFactory
from openvino._pyopenvino import Output
+from openvino.exceptions import UserInputError
from pathlib import Path
from typing import Any
import openvino._pyopenvino
diff --git a/src/bindings/python/src/openvino/utils/types.pyi b/src/bindings/python/src/openvino/utils/types.pyi
index be1c7eae305..6dff2339038 100644
--- a/src/bindings/python/src/openvino/utils/types.pyi
+++ b/src/bindings/python/src/openvino/utils/types.pyi
@@ -1,20 +1,20 @@
# 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
+from openvino.exceptions import OVTypeError
import logging as logging
import numpy
import numpy as np
import openvino._pyopenvino
import openvino._pyopenvino.op
import typing
+"""
+Functions related to converting between Python and numpy types and openvino types.
+"""
__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:
"""