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] Update Python API stub files (#33533)
sys-openvino-ciea9028a34972
diff --git a/src/bindings/python/src/openvino/_pyopenvino/__init__.pyi b/src/bindings/python/src/openvino/_pyopenvino/__init__.pyiindex d9809570a80..74366b4352a 100644--- a/src/bindings/python/src/openvino/_pyopenvino/__init__.pyi+++ b/src/bindings/python/src/openvino/_pyopenvino/__init__.pyi@@ -1173,7 +1173,7 @@ class Dimension:"""Return this dimension as integer.This dimension must be static and non-negative.-+:return: Value of the dimension.:rtype: int"""@@ -1933,7 +1933,7 @@ class InferRequest:def input_tensors(self) -> list:"""Gets all input tensors of this InferRequest.-+:rtype: list[openvino.Tensor]"""@property@@ -1961,7 +1961,7 @@ class InferRequest:def output_tensors(self) -> list:"""Gets all output tensors of this InferRequest.-+:rtype: list[openvino.Tensor]"""@property@@ -1971,7 +1971,7 @@ class InferRequest:Not all plugins provide meaningful data!GIL is released while running this function.-+:return: Inference time.:rtype: list[openvino.ProfilingInfo]"""@@ -2709,7 +2709,7 @@ class Model:def get_parameters(self) -> list[op.Parameter]:"""Return the model parameters.-+:return: a list of model's parameters.:rtype: list[op.Parameter]"""@@ -2848,7 +2848,7 @@ class Model:def get_variables(self) -> list[op.util.Variable]:"""Return a list of model's variables.-+:return: a list of model's variables.:rtype: list[op.util.Variable]"""@@ -3213,7 +3213,7 @@ class Model:def parameters(self) -> list[op.Parameter]:"""Return the model parameters.-+:return: a list of model's parameters.:rtype: list[op.Parameter]"""@@ -3248,7 +3248,7 @@ class Model:def variables(self) -> list[op.util.Variable]:"""Return a list of model's variables.-+:return: a list of model's variables.:rtype: list[op.util.Variable]"""@@ -3313,7 +3313,7 @@ class Node:def evaluate(self, output_values: TensorVector, input_values: TensorVector, evaluationContext: RTMap = ...) -> bool:"""Evaluate the node on inputs, putting results in outputs-+:param output_tensors: Tensors for the outputs to compute. One for each result.:type output_tensors: openvino.TensorVector:param input_tensors: Tensors for the inputs. One for each inputs.@@ -3327,7 +3327,7 @@ class Node:def evaluate(self, output_values: list, input_values: list, evaluationContext: RTMap = ...) -> bool:"""Evaluate the node on inputs, putting results in outputs-+:param output_tensors: Tensors for the outputs to compute. One for each result.:type output_tensors: openvino.TensorVector:param input_tensors: Tensors for the inputs. One for each inputs.@@ -3570,7 +3570,7 @@ class Node:"""Verifies that attributes and inputs are consistent and computes output shapes and element types.Must be implemented by concrete child classes so that it can be run any number of times.-+Throws if the node is invalid."""def visit_attributes(self, arg0: AttributeVisitor) -> bool:@@ -3981,7 +3981,7 @@ class PartialShape:Get the dimension at specified index of a partial shape.:param index: The index of dimension.- :type index: int+ :type index: int:return: Get the particular dimension of a partial shape.:rtype: openvino.Dimension"""diff --git a/src/bindings/python/src/openvino/_pyopenvino/experimental.pyi b/src/bindings/python/src/openvino/_pyopenvino/experimental.pyiindex 25e98d40340..e8f29343bd4 100644--- a/src/bindings/python/src/openvino/_pyopenvino/experimental.pyi+++ b/src/bindings/python/src/openvino/_pyopenvino/experimental.pyi@@ -7,8 +7,8 @@ openvino.experimental submodule__all__: list[str] = ['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:"""- Evaluates lower and upper value estimations for the output tensor.- The estimation will be represented as a partial shape object,+ Evaluates lower and upper value estimations for the output tensor.+ The estimation will be represented as a partial shape object,using Dimension(min, max) for each element.:param output: Node output pointing to the tensor for estimation.@@ -33,7 +33,7 @@ def set_element_type(tensor: openvino._pyopenvino.DescriptorTensor, element_typeSets element type for a tensor descriptor in the OV model graph.:param tensor: The tensor descriptor whose element type is to be set.- :type tensor: openvino.Tensor+ :type tensor: openvino.Tensor:param element_type: A new element type of the tensor descriptor.:type element_type: openvino.Type"""@@ -42,7 +42,7 @@ def set_tensor_type(tensor: openvino._pyopenvino.DescriptorTensor, element_type:Changes element type and partial shape of a tensor descriptor in the OV model graph.:param tensor: The tensor descriptor whose element type is to be set.- :type tensor: openvino.Tensor+ :type tensor: openvino.Tensor:param element_type: A new element type of the tensor descriptor.:type element_type: openvino.Type:param partial_shape: A new partial shape of the tensor desriptor.diff --git a/src/bindings/python/src/openvino/_pyopenvino/op/__init__.pyi b/src/bindings/python/src/openvino/_pyopenvino/op/__init__.pyiindex 3614bc623d1..844b31982bd 100644--- a/src/bindings/python/src/openvino/_pyopenvino/op/__init__.pyi+++ b/src/bindings/python/src/openvino/_pyopenvino/op/__init__.pyi@@ -74,7 +74,7 @@ class Constant(openvino._pyopenvino.Node):In such cases if `dtype` is used, function also creates a copy andunpacks the data.- Note: can be used to upcast BF16 data type to float32 or float64.+ Note: can be used to upcast BF16 data type to float32 or float64.:param dtype: Targeted data type.:type dtype: numpy.dtype, optional, keyword-only@@ -247,7 +247,7 @@ class if_op(openvino._pyopenvino.Node)::param index: sub-graph's index in op.:type index: int-+:return: Model with sub-graph.:rtype: openvino.Model"""