Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion src/bindings/python/src/openvino/__init__.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ from openvino._pyopenvino import Shape
from openvino._pyopenvino import Strides
from openvino._pyopenvino import Symbol
from openvino._pyopenvino import Tensor
from openvino._pyopenvino import TensorVector
from openvino._pyopenvino import Type
from openvino._pyopenvino import VAContext
from openvino._pyopenvino import VASurfaceTensor
Expand All @@ -74,6 +75,6 @@ from openvino.package_utils import LazyLoader
from openvino.package_utils import _add_openvino_libs_to_search_path
from openvino.tools.ovc.convert import convert_model
from openvino.utils.data_helpers.wrappers import tensor_from_file
__all__ = ['AsyncInferQueue', 'AxisSet', 'AxisVector', 'CompiledModel', 'ConstOutput', 'Coordinate', 'CoordinateDiff', 'Core', 'Dimension', 'DiscreteTypeInfo', 'Extension', 'InferRequest', 'Input', 'Layout', 'LazyLoader', 'Model', 'Node', 'OVAny', 'Op', 'OpExtension', 'Output', 'PartialShape', 'ProfilingInfo', 'RTMap', 'RemoteContext', 'RemoteTensor', 'Shape', 'Strides', 'Symbol', 'Tensor', 'Type', 'VAContext', 'VASurfaceTensor', 'Version', 'compile_model', 'convert_model', 'exceptions', 'experimental', 'frontend', 'get_batch', 'get_version', 'helpers', 'layout_helpers', 'op', 'opset1', 'opset10', 'opset11', 'opset12', 'opset13', 'opset14', 'opset15', 'opset16', 'opset2', 'opset3', 'opset4', 'opset5', 'opset6', 'opset7', 'opset8', 'opset9', 'package_utils', 'preprocess', 'properties', 'runtime', 'save_model', 'serialize', 'set_batch', 'shutdown', 'tensor_from_file', 'tools', 'utils']
__all__: list[str] = ['AsyncInferQueue', 'AxisSet', 'AxisVector', 'CompiledModel', 'ConstOutput', 'Coordinate', 'CoordinateDiff', 'Core', 'Dimension', 'DiscreteTypeInfo', 'Extension', 'InferRequest', 'Input', 'Layout', 'LazyLoader', 'Model', 'Node', 'OVAny', 'Op', 'OpExtension', 'Output', 'PartialShape', 'ProfilingInfo', 'RTMap', 'RemoteContext', 'RemoteTensor', 'Shape', 'Strides', 'Symbol', 'Tensor', 'TensorVector', 'Type', 'VAContext', 'VASurfaceTensor', 'Version', 'compile_model', 'convert_model', 'exceptions', 'experimental', 'frontend', 'get_batch', 'get_version', 'helpers', 'layout_helpers', 'op', 'opset1', 'opset10', 'opset11', 'opset12', 'opset13', 'opset14', 'opset15', 'opset16', 'opset2', 'opset3', 'opset4', 'opset5', 'opset6', 'opset7', 'opset8', 'opset9', 'package_utils', 'preprocess', 'properties', 'runtime', 'save_model', 'serialize', 'set_batch', 'shutdown', 'tensor_from_file', 'tools', 'utils']
__version__: str = 'version_string'
runtime: package_utils.LazyLoader # value = <LazyLoader for module 'openvino.runtime'>
2 changes: 1 addition & 1 deletion src/bindings/python/src/openvino/_op_base.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ from openvino._pyopenvino import Node
from openvino._pyopenvino import Op as OpBase
from openvino._pyopenvino import Output
import openvino._pyopenvino
__all__ = ['Node', 'Op', 'OpBase', 'Output']
__all__: list[str] = ['Node', 'Op', 'OpBase', 'Output']
class Op(openvino._pyopenvino.Op):
def __init__(self, py_obj: Op, inputs: typing.Union[list[typing.Union[openvino._pyopenvino.Node, openvino._pyopenvino.Output]], tuple[typing.Union[openvino._pyopenvino.Node, openvino._pyopenvino.Output, list[typing.Union[openvino._pyopenvino.Node, openvino._pyopenvino.Output]]]], NoneType] = None) -> None:
...
34 changes: 19 additions & 15 deletions src/bindings/python/src/openvino/_ov_api.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,9 @@ from openvino._pyopenvino import CompiledModel as CompiledModelBase
from openvino._pyopenvino import Core as CoreBase
from openvino._pyopenvino import Model as ModelBase
from openvino._pyopenvino import Node
from openvino._pyopenvino import RTMap
from openvino._pyopenvino import Tensor
from openvino._pyopenvino import TensorVector
from openvino._pyopenvino import Type
from openvino.package_utils import deprecatedclassproperty
from openvino.utils.data_helpers.data_dispatcher import _data_dispatch
Expand All @@ -24,7 +26,7 @@ import openvino.utils.data_helpers.wrappers
import pathlib
import traceback as traceback
import typing
__all__ = ['AsyncInferQueue', 'AsyncInferQueueBase', 'CompiledModel', 'CompiledModelBase', 'Core', 'CoreBase', 'InferRequest', 'Iterator', 'Model', 'ModelBase', 'ModelMeta', 'Node', 'OVDict', 'Path', 'Tensor', 'TracebackType', 'Type', 'compile_model', 'deprecatedclassproperty', 'io', 'tensor_from_file', 'traceback']
__all__: list[str] = ['AsyncInferQueue', 'AsyncInferQueueBase', 'CompiledModel', 'CompiledModelBase', 'Core', 'CoreBase', 'InferRequest', 'Iterator', 'Model', 'ModelBase', 'ModelMeta', 'Node', 'OVDict', 'Path', 'RTMap', 'Tensor', 'TensorVector', 'TracebackType', 'Type', 'compile_model', 'deprecatedclassproperty', 'io', 'tensor_from_file', 'traceback']
class AsyncInferQueue(openvino._pyopenvino.AsyncInferQueue):
"""
AsyncInferQueue with a pool of asynchronous requests.
Expand Down Expand Up @@ -505,7 +507,7 @@ class Model:
def __init__(self: openvino._pyopenvino.Model, other: openvino._pyopenvino.Model) -> None:
...
@typing.overload
def __init__(self: openvino._pyopenvino.Model, results: list[openvino._pyopenvino.op.Result], sinks: list[openvino._pyopenvino.Node], parameters: list[openvino._pyopenvino.op.Parameter], name: str = '') -> None:
def __init__(self: openvino._pyopenvino.Model, results: collections.abc.Sequence[openvino._pyopenvino.op.Result], sinks: collections.abc.Sequence[openvino._pyopenvino.Node], parameters: collections.abc.Sequence[openvino._pyopenvino.op.Parameter], name: str = '') -> None:
"""
Create user-defined Model which is a representation of a model.

Expand All @@ -519,7 +521,7 @@ class Model:
:type name: str
"""
@typing.overload
def __init__(self: openvino._pyopenvino.Model, results: list[openvino._pyopenvino.op.Result], parameters: list[openvino._pyopenvino.op.Parameter], name: str = '') -> None:
def __init__(self: openvino._pyopenvino.Model, results: collections.abc.Sequence[openvino._pyopenvino.op.Result], parameters: collections.abc.Sequence[openvino._pyopenvino.op.Parameter], name: str = '') -> None:
"""
Create user-defined Model which is a representation of a model.

Expand All @@ -531,7 +533,7 @@ class Model:
:type name: str
"""
@typing.overload
def __init__(self: openvino._pyopenvino.Model, results: list[openvino._pyopenvino.Node], parameters: list[openvino._pyopenvino.op.Parameter], name: str = '') -> None:
def __init__(self: openvino._pyopenvino.Model, results: collections.abc.Sequence[openvino._pyopenvino.Node], parameters: collections.abc.Sequence[openvino._pyopenvino.op.Parameter], name: str = '') -> None:
"""
Create user-defined Model which is a representation of a model.

Expand All @@ -543,7 +545,7 @@ class Model:
:type name: str
"""
@typing.overload
def __init__(self: openvino._pyopenvino.Model, result: openvino._pyopenvino.Node, parameters: list[openvino._pyopenvino.op.Parameter], name: str = '') -> None:
def __init__(self: openvino._pyopenvino.Model, result: openvino._pyopenvino.Node, parameters: collections.abc.Sequence[openvino._pyopenvino.op.Parameter], name: str = '') -> None:
"""
Create user-defined Model which is a representation of a model.

Expand All @@ -555,7 +557,7 @@ class Model:
:type name: str
"""
@typing.overload
def __init__(self: openvino._pyopenvino.Model, results: list[openvino._pyopenvino.Output], parameters: list[openvino._pyopenvino.op.Parameter], name: str = '') -> None:
def __init__(self: openvino._pyopenvino.Model, results: collections.abc.Sequence[openvino._pyopenvino.Output], parameters: collections.abc.Sequence[openvino._pyopenvino.op.Parameter], name: str = '') -> None:
"""
Create user-defined Model which is a representation of a model

Expand All @@ -567,7 +569,7 @@ class Model:
:type name: str
"""
@typing.overload
def __init__(self: openvino._pyopenvino.Model, results: list[openvino._pyopenvino.Output], sinks: list[openvino._pyopenvino.Node], parameters: list[openvino._pyopenvino.op.Parameter], name: str = '') -> None:
def __init__(self: openvino._pyopenvino.Model, results: collections.abc.Sequence[openvino._pyopenvino.Output], sinks: collections.abc.Sequence[openvino._pyopenvino.Node], parameters: collections.abc.Sequence[openvino._pyopenvino.op.Parameter], name: str = '') -> None:
"""
Create user-defined Model which is a representation of a model

Expand All @@ -581,7 +583,7 @@ class Model:
:type name: str
"""
@typing.overload
def __init__(self: openvino._pyopenvino.Model, results: list[openvino._pyopenvino.Output], sinks: list[openvino._pyopenvino.Output], parameters: list[openvino._pyopenvino.op.Parameter], name: str = '') -> None:
def __init__(self: openvino._pyopenvino.Model, results: collections.abc.Sequence[openvino._pyopenvino.Output], sinks: collections.abc.Sequence[openvino._pyopenvino.Output], parameters: collections.abc.Sequence[openvino._pyopenvino.op.Parameter], name: str = '') -> None:
"""
Create user-defined Model which is a representation of a model

Expand All @@ -595,7 +597,7 @@ class Model:
:type name: str
"""
@typing.overload
def __init__(self: openvino._pyopenvino.Model, results: list[openvino._pyopenvino.Output], sinks: list[openvino._pyopenvino.Output], parameters: list[openvino._pyopenvino.op.Parameter], variables: list[openvino._pyopenvino.op.util.Variable], name: str = '') -> None:
def __init__(self: openvino._pyopenvino.Model, results: collections.abc.Sequence[openvino._pyopenvino.Output], sinks: collections.abc.Sequence[openvino._pyopenvino.Output], parameters: collections.abc.Sequence[openvino._pyopenvino.op.Parameter], variables: collections.abc.Sequence[openvino._pyopenvino.op.util.Variable], name: str = '') -> None:
"""
Create user-defined Model which is a representation of a model

Expand All @@ -611,7 +613,7 @@ class Model:
:type name: str
"""
@typing.overload
def __init__(self: openvino._pyopenvino.Model, results: list[openvino._pyopenvino.op.Result], sinks: list[openvino._pyopenvino.Output], parameters: list[openvino._pyopenvino.op.Parameter], name: str = '') -> None:
def __init__(self: openvino._pyopenvino.Model, results: collections.abc.Sequence[openvino._pyopenvino.op.Result], sinks: collections.abc.Sequence[openvino._pyopenvino.Output], parameters: collections.abc.Sequence[openvino._pyopenvino.op.Parameter], name: str = '') -> None:
"""
Create user-defined Model which is a representation of a model

Expand All @@ -625,7 +627,7 @@ class Model:
:type name: str
"""
@typing.overload
def __init__(self: openvino._pyopenvino.Model, results: list[openvino._pyopenvino.op.Result], sinks: list[openvino._pyopenvino.Output], parameters: list[openvino._pyopenvino.op.Parameter], variables: list[openvino._pyopenvino.op.util.Variable], name: str = '') -> None:
def __init__(self: openvino._pyopenvino.Model, results: collections.abc.Sequence[openvino._pyopenvino.op.Result], sinks: collections.abc.Sequence[openvino._pyopenvino.Output], parameters: collections.abc.Sequence[openvino._pyopenvino.op.Parameter], variables: collections.abc.Sequence[openvino._pyopenvino.op.util.Variable], name: str = '') -> None:
"""
Create user-defined Model which is a representation of a model

Expand All @@ -641,7 +643,7 @@ class Model:
:type name: str
"""
@typing.overload
def __init__(self: openvino._pyopenvino.Model, results: list[openvino._pyopenvino.op.Result], sinks: list[openvino._pyopenvino.Node], parameters: list[openvino._pyopenvino.op.Parameter], variables: list[openvino._pyopenvino.op.util.Variable], name: str = '') -> None:
def __init__(self: openvino._pyopenvino.Model, results: collections.abc.Sequence[openvino._pyopenvino.op.Result], sinks: collections.abc.Sequence[openvino._pyopenvino.Node], parameters: collections.abc.Sequence[openvino._pyopenvino.op.Parameter], variables: collections.abc.Sequence[openvino._pyopenvino.op.util.Variable], name: str = '') -> None:
"""
Create user-defined Model which is a representation of a model

Expand All @@ -657,7 +659,7 @@ class Model:
:type name: str
"""
@typing.overload
def __init__(self: openvino._pyopenvino.Model, results: list[openvino._pyopenvino.Output], sinks: list[openvino._pyopenvino.Node], parameters: list[openvino._pyopenvino.op.Parameter], variables: list[openvino._pyopenvino.op.util.Variable], name: str = '') -> None:
def __init__(self: openvino._pyopenvino.Model, results: collections.abc.Sequence[openvino._pyopenvino.Output], sinks: collections.abc.Sequence[openvino._pyopenvino.Node], parameters: collections.abc.Sequence[openvino._pyopenvino.op.Parameter], variables: collections.abc.Sequence[openvino._pyopenvino.op.util.Variable], name: str = '') -> None:
"""
Create user-defined Model which is a representation of a model

Expand All @@ -671,7 +673,7 @@ class Model:
:type name: str
"""
@typing.overload
def __init__(self: openvino._pyopenvino.Model, results: list[openvino._pyopenvino.op.Result], parameters: list[openvino._pyopenvino.op.Parameter], variables: list[openvino._pyopenvino.op.util.Variable], name: str = '') -> None:
def __init__(self: openvino._pyopenvino.Model, results: collections.abc.Sequence[openvino._pyopenvino.op.Result], parameters: collections.abc.Sequence[openvino._pyopenvino.op.Parameter], variables: collections.abc.Sequence[openvino._pyopenvino.op.util.Variable], name: str = '') -> None:
"""
Create user-defined Model which is a representation of a model

Expand All @@ -685,7 +687,7 @@ class Model:
:type name: str
"""
@typing.overload
def __init__(self: openvino._pyopenvino.Model, results: list[openvino._pyopenvino.Output], parameters: list[openvino._pyopenvino.op.Parameter], variables: list[openvino._pyopenvino.op.util.Variable], name: str = '') -> None:
def __init__(self: openvino._pyopenvino.Model, results: collections.abc.Sequence[openvino._pyopenvino.Output], parameters: collections.abc.Sequence[openvino._pyopenvino.op.Parameter], variables: collections.abc.Sequence[openvino._pyopenvino.op.util.Variable], name: str = '') -> None:
"""
Create user-defined Model which is a representation of a model

Expand All @@ -700,6 +702,8 @@ class Model:
...
def clone(self) -> Model:
...
def evaluate(self, output_tensors: typing.Union[list[openvino._pyopenvino.Tensor], openvino._pyopenvino.TensorVector], input_tensors: typing.Union[list[openvino._pyopenvino.Tensor], openvino._pyopenvino.TensorVector], evaluation_context: typing.Optional[openvino._pyopenvino.RTMap] = None) -> bool:
...
class ModelMeta(type):
@classmethod
def __getattr__(cls, name: str) -> typing.Any:
Expand Down
Loading