Enum ov_element_type_e

Source
#[repr(u32)]
pub enum ov_element_type_e {
Show 26 variants UNDEFINED = 0, OV_BOOLEAN = 1, BF16 = 2, F16 = 3, F32 = 4, F64 = 5, I4 = 6, I8 = 7, I16 = 8, I32 = 9, I64 = 10, U1 = 11, U2 = 12, U3 = 13, U4 = 14, U6 = 15, U8 = 16, U16 = 17, U32 = 18, U64 = 19, NF4 = 20, F8E4M3 = 21, F8E5M3 = 22, STRING = 23, F4E2M1 = 24, F8E8M0 = 25,
}
Expand description

@enum ov_element_type_e @ingroup ov_base_c_api @brief This enum contains codes for element type, which is aligned with ov::element::Type_t in src/core/include/openvino/core/type/element_type.hpp

Variants§

§

UNDEFINED = 0

!< Undefined element type

§

OV_BOOLEAN = 1

!< boolean element type

§

BF16 = 2

!< bf16 element type

§

F16 = 3

!< f16 element type

§

F32 = 4

!< f32 element type

§

F64 = 5

!< f64 element type

§

I4 = 6

!< i4 element type

§

I8 = 7

!< i8 element type

§

I16 = 8

!< i16 element type

§

I32 = 9

!< i32 element type

§

I64 = 10

!< i64 element type

§

U1 = 11

!< binary element type

§

U2 = 12

!< u2 element type

§

U3 = 13

!< u3 element type

§

U4 = 14

!< u4 element type

§

U6 = 15

!< u6 element type

§

U8 = 16

!< u8 element type

§

U16 = 17

!< u16 element type

§

U32 = 18

!< u32 element type

§

U64 = 19

!< u64 element type

§

NF4 = 20

!< nf4 element type

§

F8E4M3 = 21

!< f8e4m3 element type

§

F8E5M3 = 22

!< f8e5m2 element type

§

STRING = 23

!< string element type

§

F4E2M1 = 24

!< f4e2m1 element type

§

F8E8M0 = 25

!< f8e8m0 element type

Implementations§

Source§

impl ov_element_type_e

Source

pub const DYNAMIC: ov_element_type_e = ov_element_type_e::UNDEFINED

Trait Implementations§

Source§

impl Clone for ov_element_type_e

Source§

fn clone(&self) -> ov_element_type_e

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for ov_element_type_e

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Hash for ov_element_type_e

Source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · Source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
Source§

impl PartialEq for ov_element_type_e

Source§

fn eq(&self, other: &ov_element_type_e) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl Copy for ov_element_type_e

Source§

impl Eq for ov_element_type_e

Source§

impl StructuralPartialEq for ov_element_type_e

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.