openvino.OVAny

class openvino.OVAny

Bases: pybind11_builtins.pybind11_object

openvino.runtime.OVAny provides object wrapper for OpenVINOov::Any class. It allows to pass different types of objectsinto C++ based core of the project.

__init__(self: openvino._pyopenvino.OVAny, arg0: object) None

Methods

__delattr__(name, /)

Implement delattr(self, name).

__dir__()

Default dir() implementation.

__eq__(*args, **kwargs)

Overloaded function.

__format__(format_spec, /)

Default object formatter.

__ge__(value, /)

Return self>=value.

__get__(self)

__getattribute__(name, /)

Return getattr(self, name).

__getitem__(self, arg0)

__gt__(value, /)

Return self>value.

__hash__(self)

__init__(self, arg0)

__init_subclass__

This method is called when a class is subclassed.

__le__(value, /)

Return self<=value.

__len__(self)

__lt__(value, /)

Return self<value.

__ne__(value, /)

Return self!=value.

__new__(**kwargs)

__reduce__()

Helper for pickle.

__reduce_ex__(protocol, /)

Helper for pickle.

__repr__(self)

__set__(self, arg0)

__setattr__(name, value, /)

Implement setattr(self, name, value).

__setitem__(*args, **kwargs)

Overloaded function.

__sizeof__()

Size of object in memory, in bytes.

__str__()

Return str(self).

__subclasshook__

Abstract classes can override this to customize issubclass().

aslist(self[, dtype])

Returns runtime attribute as a list with specified data type.

astype(self, arg0)

Returns runtime attribute casted to defined data type.

get(self)

return

Value of this OVAny.

set(self, arg0)

param

Value to be set in OVAny.

Attributes

value

return

Value of this OVAny.

__class__

alias of pybind11_builtins.pybind11_type

__delattr__(name, /)

Implement delattr(self, name).

__dir__()

Default dir() implementation.

__eq__(*args, **kwargs)

Overloaded function.

  1. __eq__(self: openvino._pyopenvino.OVAny, arg0: openvino._pyopenvino.OVAny) -> bool

  2. __eq__(self: openvino._pyopenvino.OVAny, arg0: object) -> bool

__format__(format_spec, /)

Default object formatter.

__ge__(value, /)

Return self>=value.

__get__(self: openvino._pyopenvino.OVAny) object
__getattribute__(name, /)

Return getattr(self, name).

__getitem__(self: openvino._pyopenvino.OVAny, arg0: object) object
__gt__(value, /)

Return self>value.

__hash__(self: openvino._pyopenvino.OVAny) object
__init__(self: openvino._pyopenvino.OVAny, arg0: object) None
__init_subclass__()

This method is called when a class is subclassed.

The default implementation does nothing. It may be overridden to extend subclasses.

__le__(value, /)

Return self<=value.

__len__(self: openvino._pyopenvino.OVAny) object
__lt__(value, /)

Return self<value.

__ne__(value, /)

Return self!=value.

__new__(**kwargs)
__reduce__()

Helper for pickle.

__reduce_ex__(protocol, /)

Helper for pickle.

__repr__(self: openvino._pyopenvino.OVAny) str
__set__(self: openvino._pyopenvino.OVAny, arg0: openvino._pyopenvino.OVAny) None
__setattr__(name, value, /)

Implement setattr(self, name, value).

__setitem__(*args, **kwargs)

Overloaded function.

  1. __setitem__(self: openvino._pyopenvino.OVAny, arg0: object, arg1: str) -> None

  2. __setitem__(self: openvino._pyopenvino.OVAny, arg0: object, arg1: int) -> None

__sizeof__()

Size of object in memory, in bytes.

__str__()

Return str(self).

__subclasshook__()

Abstract classes can override this to customize issubclass().

This is invoked early on by abc.ABCMeta.__subclasscheck__(). It should return True, False or NotImplemented. If it returns NotImplemented, the normal algorithm is used. Otherwise, it overrides the normal algorithm (and the outcome is cached).

aslist(self: openvino._pyopenvino.OVAny, dtype: object = None) object

Returns runtime attribute as a list with specified data type.

Parameters

dtype (Union[bool, int, str, float]) – Data type of a list in which runtime attribute will be casted.

Returns

A runtime attribute as a list.

Return type

Union[List[float], List[int], List[str], List[bool]]

astype(self: openvino._pyopenvino.OVAny, arg0: object) object

Returns runtime attribute casted to defined data type.

Parameters

dtype (Union[bool, int, str, float, dict]) – Data type in which runtime attribute will be casted.

Returns

A runtime attribute.

Return type

Any

get(self: openvino._pyopenvino.OVAny) object
Returns

Value of this OVAny.

Return type

Any

set(self: openvino._pyopenvino.OVAny, arg0: object) None
Param

Value to be set in OVAny.

Type

Any

property value
Returns

Value of this OVAny.

Return type

Any