Skip to content

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

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

sys-openvino-ci9708048c0af3
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 eb0306a5608..cdb819d7a8a 100644
--- a/src/bindings/python/src/openvino/_pyopenvino/properties/intel_npu.pyi
+++ b/src/bindings/python/src/openvino/_pyopenvino/properties/intel_npu.pyi
@@ -5,7 +5,52 @@ import typing
"""
openvino.properties.intel_npu submodule that simulates ov::intel_npu
"""
-__all__: list[str] = ['bypass_umd_caching', 'compilation_mode_params', 'compiler_dynamic_quantization', 'compiler_version', 'defer_weights_load', 'device_alloc_mem_size', 'device_total_mem_size', 'disable_idle_memory_prunning', 'driver_version', 'max_tiles', 'qdq_optimization', 'qdq_optimization_aggressive', 'run_inferences_sequentially', 'tiles', 'turbo']
+__all__: list[str] = ['CompilerType', 'bypass_umd_caching', 'compilation_mode_params', 'compiler_dynamic_quantization', 'compiler_type', 'compiler_version', 'defer_weights_load', 'device_alloc_mem_size', 'device_total_mem_size', 'disable_idle_memory_prunning', 'driver_version', 'max_tiles', 'platform', 'qdq_optimization', 'qdq_optimization_aggressive', 'run_inferences_sequentially', 'tiles', 'turbo']
+class CompilerType:
+ """
+ Members:
+
+ DRIVER
+
+ PLUGIN
+ """
+ DRIVER: typing.ClassVar[CompilerType] # value = <CompilerType.DRIVER: 1>
+ PLUGIN: typing.ClassVar[CompilerType] # value = <CompilerType.PLUGIN: 0>
+ __members__: typing.ClassVar[dict[str, CompilerType]] # value = {'DRIVER': <CompilerType.DRIVER: 1>, 'PLUGIN': <CompilerType.PLUGIN: 0>}
+ def __eq__(self, other: typing.Any) -> bool:
+ ...
+ def __ge__(self, other: typing.Any) -> bool:
+ ...
+ def __getstate__(self) -> int:
+ ...
+ def __gt__(self, other: typing.Any) -> bool:
+ ...
+ def __hash__(self) -> int:
+ ...
+ def __index__(self) -> int:
+ ...
+ def __init__(self, value: typing.SupportsInt) -> None:
+ ...
+ def __int__(self) -> int:
+ ...
+ def __le__(self, other: typing.Any) -> bool:
+ ...
+ def __lt__(self, other: typing.Any) -> bool:
+ ...
+ def __ne__(self, other: typing.Any) -> bool:
+ ...
+ def __repr__(self) -> str:
+ ...
+ def __setstate__(self, state: typing.SupportsInt) -> None:
+ ...
+ def __str__(self) -> str:
+ ...
+ @property
+ def name(self) -> str:
+ ...
+ @property
+ def value(self) -> int:
+ ...
@typing.overload
def bypass_umd_caching() -> str:
...
@@ -24,6 +69,12 @@ def compiler_dynamic_quantization() -> str:
@typing.overload
def compiler_dynamic_quantization(arg0: bool) -> tuple[str, openvino._pyopenvino.OVAny]:
...
+def compiler_type() -> str:
+ ...
+def compiler_type(arg0: CompilerType) -> tuple[str, openvino._pyopenvino.OVAny]:
+ ...
def compiler_version() -> str:
...
@typing.overload
@@ -51,6 +102,12 @@ def max_tiles() -> str:
def max_tiles(arg0: typing.SupportsInt) -> tuple[str, openvino._pyopenvino.OVAny]:
...
@typing.overload
+def platform() -> str:
+ ...
+def platform(arg0: str) -> tuple[str, openvino._pyopenvino.OVAny]:
+ ...
def qdq_optimization() -> str:
...
@typing.overload
diff --git a/src/bindings/python/src/openvino/opset16/__init__.pyi b/src/bindings/python/src/openvino/opset16/__init__.pyi
index bac2b74f4ad..e21955b1ba7 100644
--- a/src/bindings/python/src/openvino/opset16/__init__.pyi
+++ b/src/bindings/python/src/openvino/opset16/__init__.pyi
@@ -1,12 +1,10 @@
# type: ignore
from . import ops
from __future__ import annotations
-from openvino.opset16.ops import avg_pool
-from openvino.opset16.ops import identity
-from openvino.opset16.ops import istft
-from openvino.opset16.ops import one_hot
-from openvino.opset16.ops import segment_max
-from openvino.opset16.ops import sparse_fill_empty_rows
+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
@@ -57,7 +55,6 @@ from openvino.opset1.ops import multiply
from openvino.opset1.ops import negative
from openvino.opset1.ops import normalize_l2
from openvino.opset1.ops import not_equal
-from openvino.opset1.ops import one_hot
from openvino.opset1.ops import parameter
from openvino.opset1.ops import power
from openvino.opset1.ops import prelu
@@ -111,23 +108,18 @@ 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.opset16.ops import avg_pool
+from openvino.opset16.ops import identity
+from openvino.opset16.ops import istft
+from openvino.opset16.ops import one_hot
+from openvino.opset16.ops import segment_max
+from openvino.opset16.ops import sparse_fill_empty_rows
from openvino.opset2.ops import batch_to_space
from openvino.opset2.ops import reorg_yolo
from openvino.opset2.ops import roi_pooling
@@ -199,6 +191,6 @@ from openvino.opset9.ops import rdft
from openvino.opset9.ops import roi_align
from openvino.opset9.ops import softsign
import openvino.utils.decorators
-__all__: list[str] = ['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', 'identity', 'if_op', 'interpolate', 'inverse', 'irdft', 'is_finite', 'is_inf', 'is_nan', 'istft', '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', 'segment_max', 'select', 'selu', 'shape_of', 'shuffle_channels', 'sigmoid', 'sign', 'sin', 'sinh', 'slice', 'slice_scatter', 'softmax', 'softplus', 'softsign', 'space_to_batch', 'space_to_depth', 'sparse_fill_empty_rows', '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']
+__all__: list[str] = ['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', 'identity', 'idft', 'if_op', 'interpolate', 'inverse', 'irdft', 'is_finite', 'is_inf', 'is_nan', 'istft', '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_update', 'search_sorted', 'segment_max', 'select', 'selu', 'shape_of', 'shuffle_channels', 'sigmoid', 'sign', 'sin', 'sinh', 'slice', 'softmax', 'softplus', 'softsign', 'space_to_batch', 'space_to_depth', 'sparse_fill_empty_rows', 'split', 'sqrt', 'squared_difference', 'squeeze', 'stft', 'strided_slice', 'subtract', 'swish', 'tan', 'tanh', 'tensor_iterator', 'tile', 'topk', 'transpose', 'unique', 'unsqueeze', 'variadic_split']
constant: openvino.utils.decorators.MultiMethod # value = <openvino.utils.decorators.MultiMethod object>
-read_value: openvino.utils.decorators.MultiMethod # value = <openvino.utils.decorators.MultiMethod object>
\ No newline at end of file
+read_value: openvino.utils.decorators.MultiMethod # value = <openvino.utils.decorators.MultiMethod object>