OpenVINO™ is an open source toolkit for optimizing and deploying AI inference
C++ aicomputer-visiondeep-learningdeploy-aidiffusion-modelsgenerative-aigood-first-issueinferencellm-inferencenatural-language-processingnlpopenvinooptimize-aiperformance-boostrecommendation-systemspeech-recognitionstable-diffusiontransformersyolo
[PyOV] Cleanup stub generation scipt (#30657)
Przemyslaw Wysocki7500535fed84
diff --git a/src/bindings/python/scripts/generate_pyapi_stubs.py b/src/bindings/python/scripts/generate_pyapi_stubs.pyindex 3ab33c5fab6..85163387b5d 100644--- a/src/bindings/python/scripts/generate_pyapi_stubs.py+++ b/src/bindings/python/scripts/generate_pyapi_stubs.py@@ -6,15 +6,28 @@ import sys# ConstantsINVALID_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'>"+ "ov::Node", # In openvino._pyopenvino.Input.get_node : Invalid expression 'ov::Node'+ "ov::Input<ov::Node>", # In openvino._pyopenvino.Output.get_target_inputs : Invalid expression 'ov::Input<ov::Node>'+ "ov::descriptor::Tensor", # In openvino._pyopenvino.Output.get_tensor : Invalid expression 'ov::descriptor::Tensor'+ "ov::Output<ov::Node const>", # In openvino._pyopenvino.Tensor.__init__ : Invalid expression 'ov::Output<ov::Node const>'+ "ov::float16", # In openvino._pyopenvino.op.Constant.__init__ : Invalid expression 'ov::float16'+ "ov::EncryptionCallbacks", # In openvino._pyopenvino.properties.cache_encryption_callbacks : Invalid expression 'ov::EncryptionCallbacks'+ "ov::streams::Num", # In openvino._pyopenvino.properties.num_streams : Invalid expression 'ov::streams::Num'+ "ov::pass::pattern::PatternSymbolValue", # In openvino._pyopenvino.passes.Predicate.__init__ : Invalid expression 'ov::pass::pattern::PatternSymbolValue'+ "<Dimension:", # In openvino._pyopenvino.PartialShape.dynamic : Invalid expression '<Dimension: ?>'+ "<RTMap>", # In openvino._pyopenvino.Model.evaluate : Invalid expression '<RTMap>'+ "<Type: 'dynamic'>" # In openvino._pyopenvino.Tensor.__init__ : Invalid expression '<Type: 'dynamic'>']-INVALID_IDENTIFIERS = ["<locals>"]+INVALID_IDENTIFIERS = ["<locals>"] # In openvino.properties.* : Invalid identifier '<locals>' at 'openvino.properties.device.__getattr__'UNRESOLVED_NAMES = [- "InferRequestWrapper", "RemoteTensorWrapper", "capsule", "VASurfaceTensorWrapper", "_abc._abc_data",- "openvino._ov_api.undefined_deprecated", "InputCutInfo", "ParamData"+ "InferRequestWrapper", # In openvino._pyopenvino.CompiledModel.create_infer_request : Can't find/import 'InferRequestWrapper'+ "RemoteTensorWrapper", # In openvino._pyopenvino.Tensor.copy_* : Can't find/import 'RemoteTensorWrapper'+ "capsule", # In openvino._pyopenvino.VAContext.__init__ : Can't find/import 'capsule'+ "VASurfaceTensorWrapper", # In openvino._pyopenvino.VAContext.create_tensor : Can't find/import 'VASurfaceTensorWrapper'+ "_abc._abc_data", # In openvino.utils.data_helpers.wrappers.OVDict : Can't find/import '_abc._abc_data'+ "openvino._ov_api.undefined_deprecated", # In openvino._ov_api : Can't find/import 'openvino._ov_api.undefined_deprecated'+ "InputCutInfo", # In openvino.tools.ovc.cli_parser : Can't find/import 'InputCutInfo'+ "ParamData" # In openvino.tools.ovc.cli_parser : Can't find/import 'ParamData']def create_regex_pattern(errors):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.pyiindex 9369afdb5dc..9fff4cd95c9 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@@ -6,7 +6,7 @@ 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']+__all__ = ['ThrottleLevel', 'available_device_mem', 'enable_lora_operation', 'host_task_priority', 'queue_priority', 'queue_throttle']class ThrottleLevel:"""openvino.properties.intel_gpu.hint.ThrottleLevel that simulates ov::intel_gpu::hint::ThrottleLevel@@ -22,6 +22,12 @@ def available_device_mem() -> str:def available_device_mem(arg0: int) -> tuple[str, openvino._pyopenvino.OVAny]:...@typing.overload+def enable_lora_operation() -> str:+ ...+def enable_lora_operation(arg0: bool) -> tuple[str, openvino._pyopenvino.OVAny]:+ ...def host_task_priority() -> str:...@typing.overload