openvino.runtime.OVAny¶
-
class
openvino.runtime.
OVAny
¶ Bases:
openvino.pyopenvino.OVAny
OVAny wrapper.
Wrapper provides some useful overloads for simple built-in Python types.
Access to the OVAny value is direct if it is a built-in Python data type.
- Example
any = OVAny([1, 2]) print(any[0]) Output: 2
Otherwise if OVAny value is a custom data type (for example user class), access to the value is possible by get() method or property ‘value’.
- Example
class Test: def __init__(self): self.data = "test" any = OVAny(Test()) print(any.value.data)
-
__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__
()__getattribute__
(name, /)Return getattr(self, name).
__getitem__
(key)__gt__
(value, /)Return self>value.
__init__
(self, arg0)This method is called when a class is subclassed.
__le__
(value, /)Return self<=value.
__len__
()__lt__
(value, /)Return self<value.
__ne__
(value, /)Return self!=value.
__new__
(**kwargs)Create and return a new object.
Helper for pickle.
__reduce_ex__
(protocol, /)Helper for pickle.
__repr__
(self)__set__
(val)__setattr__
(name, value, /)Implement setattr(self, name, value).
__setitem__
(key, val)Size of object in memory, in bytes.
__str__
()Return str(self).
Abstract classes can override this to customize issubclass().
get
(self)- return
Value of this OVAny.
set
(self, arg0)- param
Value to be set in OVAny.
Attributes
- 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.
__eq__(self: openvino.pyopenvino.OVAny, arg0: openvino.pyopenvino.OVAny) -> bool
__eq__(self: openvino.pyopenvino.OVAny, arg0: ov::Any) -> bool
__eq__(self: openvino.pyopenvino.OVAny, arg0: object) -> bool
-
__format__
(format_spec, /)¶ Default object formatter.
-
__ge__
(value, /)¶ Return self>=value.
-
__get__
() → Any¶
-
__getattribute__
(name, /)¶ Return getattr(self, name).
-
__getitem__
(key: Union[str, int]) → Any¶
-
__gt__
(value, /)¶ Return self>value.
-
__hash__
= None¶
-
__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__
() → int¶
-
__lt__
(value, /)¶ Return self<value.
-
__ne__
(value, /)¶ Return self!=value.
-
__new__
(**kwargs)¶ Create and return a new object. See help(type) for accurate signature.
-
__pybind11_module_local_v4_gcc_libstdcpp_cxxabi1011__
= <capsule object NULL>¶
-
__reduce__
()¶ Helper for pickle.
-
__reduce_ex__
(protocol, /)¶ Helper for pickle.
-
__repr__
(self: openvino.pyopenvino.OVAny) → str¶
-
__set__
(val: Any) → None¶
-
__setattr__
(name, value, /)¶ Implement setattr(self, name, value).
-
__setitem__
(key: Union[str, int], val: Any) → 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).
-
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