Skip to content

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

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

sys-openvino-ci45b88973d17a
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 4a9ce02c52e..a8b3eaf3dde 100644
--- a/src/bindings/python/src/openvino/_pyopenvino/properties/intel_cpu.pyi
+++ b/src/bindings/python/src/openvino/_pyopenvino/properties/intel_cpu.pyi
@@ -5,7 +5,52 @@ import typing
"""
openvino.properties.intel_cpu submodule that simulates ov::intel_cpu
"""
-__all__: list[str] = ['denormals_optimization', 'sparse_weights_decompression_rate']
+__all__: list[str] = ['TbbPartitioner', 'denormals_optimization', 'sparse_weights_decompression_rate', 'tbb_partitioner']
+class TbbPartitioner:
+ """
+ Members:
+
+ STATIC
+
+ AUTO
+ """
+ AUTO: typing.ClassVar[TbbPartitioner] # value = <TbbPartitioner.AUTO: 2>
+ STATIC: typing.ClassVar[TbbPartitioner] # value = <TbbPartitioner.STATIC: 1>
+ __members__: typing.ClassVar[dict[str, TbbPartitioner]] # value = {'STATIC': <TbbPartitioner.STATIC: 1>, 'AUTO': <TbbPartitioner.AUTO: 2>}
+ def __eq__(self, other: typing.Any) -> bool:
+ ...
+ def __ge__(self, other: typing.Any) -> bool:
+ ...
+ def __getstate__(self) -> int:
+ ...
+ def __gt__(self, other: typing.Any) -> bool:
+ ...
+ def __hash__(self) -> int:
+ ...
+ def __index__(self) -> int:
+ ...
+ def __init__(self, value: 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 denormals_optimization() -> str:
...
@@ -18,3 +63,9 @@ def sparse_weights_decompression_rate() -> str:
@typing.overload
def sparse_weights_decompression_rate(arg0: typing.SupportsFloat) -> tuple[str, openvino._pyopenvino.OVAny]:
...
+def tbb_partitioner() -> str:
+ ...
+def tbb_partitioner(arg0: TbbPartitioner) -> tuple[str, openvino._pyopenvino.OVAny]:
+ ...
diff --git a/src/bindings/python/src/openvino/properties/intel_cpu/__init__.pyi b/src/bindings/python/src/openvino/properties/intel_cpu/__init__.pyi
index 5b2e7598648..324bb263415 100644
--- a/src/bindings/python/src/openvino/properties/intel_cpu/__init__.pyi
+++ b/src/bindings/python/src/openvino/properties/intel_cpu/__init__.pyi
@@ -1,5 +1,6 @@
# type: ignore
from __future__ import annotations
from openvino._pyopenvino.properties import intel_cpu as __intel_cpu
+from openvino._pyopenvino.properties.intel_cpu import TbbPartitioner
from openvino.properties._properties import __make_properties
-__all__: list[str] = list()
+__all__: list[str] = ['TbbPartitioner']