Skip to content

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

[PyOV] Update Python API stub files (#32366)

sys-openvino-ci32a0299152b3
diff --git a/src/bindings/python/src/openvino/opset10/ops.pyi b/src/bindings/python/src/openvino/opset10/ops.pyi
index 58872abf114..75683fda141 100644
--- a/src/bindings/python/src/openvino/opset10/ops.pyi
+++ b/src/bindings/python/src/openvino/opset10/ops.pyi
@@ -6,14 +6,13 @@ from openvino.utils.decorators import nameable_op
from openvino.utils.node_factory import _get_node_factory
from openvino.utils.types import as_node
from openvino.utils.types import as_nodes
-from openvino.utils.types import make_constant_node
import functools
import openvino._pyopenvino
import typing
"""
Factory functions for all openvino ops.
"""
-__all__: list[str] = ['Node', 'NodeInput', 'as_node', 'as_nodes', 'interpolate', 'is_finite', 'is_inf', 'is_nan', 'make_constant_node', 'nameable_op', 'partial', 'unique']
+__all__: list[str] = ['Node', 'NodeInput', 'as_node', 'as_nodes', 'interpolate', 'is_finite', 'is_inf', 'is_nan', 'nameable_op', 'partial', 'unique']
def interpolate(*args, **kwargs) -> openvino._pyopenvino.Node:
"""
Perform interpolation of independent slices in input tensor.
diff --git a/src/bindings/python/src/openvino/opset2/ops.pyi b/src/bindings/python/src/openvino/opset2/ops.pyi
index 7b60f44aa69..a66ff584787 100644
--- a/src/bindings/python/src/openvino/opset2/ops.pyi
+++ b/src/bindings/python/src/openvino/opset2/ops.pyi
@@ -20,7 +20,6 @@ from openvino.utils.types import as_nodes
from openvino.utils.types import get_dtype
from openvino.utils.types import get_element_type
from openvino.utils.types import get_element_type_str
-from openvino.utils.types import make_constant_node
import functools
import numpy as np
import openvino._pyopenvino
@@ -29,7 +28,7 @@ import warnings as warnings
"""
Factory functions for all openvino ops.
"""
-__all__: list[str] = ['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']
+__all__: list[str] = ['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', 'mvn', 'nameable_op', 'np', 'partial', 'reorg_yolo', 'roi_pooling', 'space_to_batch', 'unary_op', 'warnings']
def batch_to_space(*args, **kwargs) -> openvino._pyopenvino.Node:
"""
Perform BatchToSpace operation on the input tensor.
diff --git a/src/bindings/python/src/openvino/opset3/ops.pyi b/src/bindings/python/src/openvino/opset3/ops.pyi
index bd3da7adea1..51003974480 100644
--- a/src/bindings/python/src/openvino/opset3/ops.pyi
+++ b/src/bindings/python/src/openvino/opset3/ops.pyi
@@ -28,7 +28,7 @@ import typing
"""
Factory functions for all openvino ops.
"""
-__all__: list[str] = ['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']
+__all__: list[str] = ['Constant', 'Node', 'NodeFactory', 'NodeInput', 'NumericType', 'Parameter', 'ScalarData', 'Shape', 'TensorShape', 'as_node', 'as_nodes', 'assert_list_of_ints', 'assign', 'binary_op', 'broadcast', 'bucketize', 'check_valid_attributes', 'cum_sum', 'embedding_bag_offsets_sum', 'embedding_bag_packed_sum', 'embedding_segments_sum', 'extract_image_patches', 'get_dtype', 'get_element_type', 'get_element_type_str', 'gru_cell', 'is_non_negative_value', 'is_positive_value', 'make_constant_node', 'nameable_op', 'non_max_suppression', 'non_zero', 'np', 'partial', 'read_value', 'rnn_cell', 'roi_align', 'scatter_elements_update', 'scatter_update', 'shape_of', 'shuffle_channels', 'topk', 'unary_op']
def assign(*args, **kwargs) -> openvino._pyopenvino.Node:
"""
Return a node which produces the Assign operation.
@@ -358,7 +358,6 @@ def topk(*args, **kwargs) -> openvino._pyopenvino.Node:
"""
NodeInput: typing._UnionGenericAlias # value = typing.Union[openvino._pyopenvino.Node, int, float, numpy.ndarray]
-NumericData: typing._UnionGenericAlias # value = typing.Union[int, float, numpy.ndarray]
NumericType: typing._UnionGenericAlias # value = typing.Union[type, numpy.dtype]
ScalarData: typing._UnionGenericAlias # value = typing.Union[int, float]
_get_node_factory_opset3: functools.partial # value = functools.partial(<function _get_node_factory at memory_address>, 'opset3')
diff --git a/src/bindings/python/src/openvino/opset4/ops.pyi b/src/bindings/python/src/openvino/opset4/ops.pyi
index 5b867ff47ba..dc6c58b9487 100644
--- a/src/bindings/python/src/openvino/opset4/ops.pyi
+++ b/src/bindings/python/src/openvino/opset4/ops.pyi
@@ -28,7 +28,7 @@ import typing
"""
Factory functions for all openvino ops.
"""
-__all__: list[str] = ['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']
+__all__: list[str] = ['Constant', 'Node', 'NodeFactory', 'NodeInput', 'NumericType', 'Parameter', 'ScalarData', 'Shape', 'TensorShape', 'acosh', 'as_node', 'as_nodes', 'asinh', 'assert_list_of_ints', 'atanh', 'binary_op', 'check_valid_attributes', 'ctc_loss', 'get_dtype', 'get_element_type', 'get_element_type_str', 'hswish', 'is_non_negative_value', 'is_positive_value', 'lstm_cell', 'make_constant_node', 'mish', 'nameable_op', 'non_max_suppression', 'np', 'partial', 'proposal', 'range', 'reduce_l1', 'reduce_l2', 'scatter_nd_update', 'softplus', 'swish', 'unary_op']
def acosh(*args, **kwargs) -> openvino._pyopenvino.Node:
"""
Apply hyperbolic inverse cosine function on the input node element-wise.
@@ -280,7 +280,6 @@ def swish(*args, **kwargs) -> openvino._pyopenvino.Node:
"""
NodeInput: typing._UnionGenericAlias # value = typing.Union[openvino._pyopenvino.Node, int, float, numpy.ndarray]
-NumericData: typing._UnionGenericAlias # value = typing.Union[int, float, numpy.ndarray]
NumericType: typing._UnionGenericAlias # value = typing.Union[type, numpy.dtype]
ScalarData: typing._UnionGenericAlias # value = typing.Union[int, float]
_get_node_factory_opset4: functools.partial # value = functools.partial(<function _get_node_factory at memory_address>, 'opset4')
diff --git a/src/bindings/python/src/openvino/opset5/ops.pyi b/src/bindings/python/src/openvino/opset5/ops.pyi
index 2f2c54b2aad..5da09f0ae41 100644
--- a/src/bindings/python/src/openvino/opset5/ops.pyi
+++ b/src/bindings/python/src/openvino/opset5/ops.pyi
@@ -29,7 +29,7 @@ import typing
"""
Factory functions for all openvino ops.
"""
-__all__: list[str] = ['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']
+__all__: list[str] = ['Constant', 'Node', 'NodeFactory', 'NodeInput', 'NumericType', 'Parameter', 'ScalarData', 'Shape', 'TensorShape', 'as_node', 'as_nodes', 'assert_list_of_ints', 'batch_norm_inference', 'binary_op', 'check_valid_attributes', 'gather_nd', 'get_dtype', 'get_element_type', 'get_element_type_str', 'gru_sequence', 'hsigmoid', 'is_non_negative_value', 'is_positive_value', 'log_softmax', 'loop', 'lstm_sequence', 'make_constant_node', 'nameable_op', 'non_max_suppression', 'np', 'partial', 'rnn_sequence', 'round', 'unary_op']
def batch_norm_inference(*args, **kwargs) -> openvino._pyopenvino.Node:
"""
Perform layer normalizes a input tensor by mean and variance with appling scale and offset.
@@ -188,7 +188,6 @@ def round(*args, **kwargs) -> openvino._pyopenvino.Node:
"""
NodeInput: typing._UnionGenericAlias # value = typing.Union[openvino._pyopenvino.Node, int, float, numpy.ndarray]
-NumericData: typing._UnionGenericAlias # value = typing.Union[int, float, numpy.ndarray]
NumericType: typing._UnionGenericAlias # value = typing.Union[type, numpy.dtype]
ScalarData: typing._UnionGenericAlias # value = typing.Union[int, float]
_get_node_factory_opset5: functools.partial # value = functools.partial(<function _get_node_factory at memory_address>, 'opset5')
diff --git a/src/bindings/python/src/openvino/opset7/ops.pyi b/src/bindings/python/src/openvino/opset7/ops.pyi
index bb2c36175b3..2764dc0e386 100644
--- a/src/bindings/python/src/openvino/opset7/ops.pyi
+++ b/src/bindings/python/src/openvino/opset7/ops.pyi
@@ -20,7 +20,6 @@ from openvino.utils.types import as_nodes
from openvino.utils.types import get_dtype
from openvino.utils.types import get_element_type
from openvino.utils.types import get_element_type_str
-from openvino.utils.types import make_constant_node
import functools
import numpy as np
import openvino._pyopenvino
@@ -28,7 +27,7 @@ import typing
"""
Factory functions for all openvino ops.
"""
-__all__: list[str] = ['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']
+__all__: list[str] = ['Constant', 'Node', 'NodeFactory', 'NodeInput', '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', 'nameable_op', 'np', 'partial', 'roll', 'unary_op']
def dft(data: typing.Union[openvino._pyopenvino.Node, int, float, numpy.ndarray], axes: typing.Union[openvino._pyopenvino.Node, int, float, numpy.ndarray], signal_size: typing.Union[openvino._pyopenvino.Node, int, float, numpy.ndarray, NoneType] = None, name: typing.Optional[str] = None) -> openvino._pyopenvino.Node:
"""
Return a node which performs DFT operation.
@@ -95,7 +94,6 @@ def roll(*args, **kwargs) -> openvino._pyopenvino.Node:
"""
NodeInput: typing._UnionGenericAlias # value = typing.Union[openvino._pyopenvino.Node, int, float, numpy.ndarray]
-NumericData: typing._UnionGenericAlias # value = typing.Union[int, float, numpy.ndarray]
NumericType: typing._UnionGenericAlias # value = typing.Union[type, numpy.dtype]
ScalarData: typing._UnionGenericAlias # value = typing.Union[int, float]
_get_node_factory_opset7: functools.partial # value = functools.partial(<function _get_node_factory at memory_address>, 'opset7')