openvino.runtime.Type

class openvino.runtime.Type

Bases: pybind11_builtins.pybind11_object

openvino.runtime.Type wraps ov::element::Type

__init__(*args, **kwargs)

Methods

__delattr__(name, /)

Implement delattr(self, name).

__dir__()

Default dir() implementation.

__eq__(self, arg0)

__format__(format_spec, /)

Default object formatter.

__ge__(value, /)

Return self>=value.

__getattribute__(name, /)

Return getattr(self, name).

__gt__(value, /)

Return self>value.

__hash__(self)

__init__(*args, **kwargs)

__init_subclass__

This method is called when a class is subclassed.

__le__(value, /)

Return self<=value.

__lt__(value, /)

Return self<value.

__ne__(value, /)

Return self!=value.

__new__(**kwargs)

__reduce__()

Helper for pickle.

__reduce_ex__(protocol, /)

Helper for pickle.

__repr__(self)

__setattr__(name, value, /)

Implement setattr(self, name, value).

__sizeof__()

Size of object in memory, in bytes.

__str__()

Return str(self).

__subclasshook__

Abstract classes can override this to customize issubclass().

get_type_name(self)

Attributes

bf16

bitwidth

boolean

f16

f32

f64

i16

i32

i64

i8

is_real

u1

u16

u32

u64

u8

undefined

__class__

alias of pybind11_builtins.pybind11_type

__delattr__(name, /)

Implement delattr(self, name).

__dir__()

Default dir() implementation.

__eq__(self: openvino.pyopenvino.Type, arg0: openvino.pyopenvino.Type) bool
__format__(format_spec, /)

Default object formatter.

__ge__(value, /)

Return self>=value.

__getattribute__(name, /)

Return getattr(self, name).

__gt__(value, /)

Return self>value.

__hash__(self: openvino.pyopenvino.Type) int
__init__(*args, **kwargs)
__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.

__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.Type) str
__setattr__(name, value, /)

Implement setattr(self, name, value).

__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).

bf16 = <Type: 'bfloat1616'>
property bitwidth
boolean = <Type: 'char8'>
f16 = <Type: 'float1616'>
f32 = <Type: 'float32'>
f64 = <Type: 'double64'>
get_type_name(self: openvino.pyopenvino.Type) str
i16 = <Type: 'int16_t16'>
i32 = <Type: 'int32_t32'>
i64 = <Type: 'int64_t64'>
i8 = <Type: 'int8_t8'>
property is_real
u1 = <Type: 'uuint1_t1'>
u16 = <Type: 'uuint16_t16'>
u32 = <Type: 'uuint32_t32'>
u64 = <Type: 'uuint64_t64'>
u8 = <Type: 'uuint8_t8'>
undefined = <Type: 'undefined'>