[][src]Enum onednn_sys::dnnl_data_type_t

#[repr(u32)]
#[non_exhaustive]pub enum dnnl_data_type_t {
    dnnl_data_type_undef,
    dnnl_f16,
    dnnl_bf16,
    dnnl_f32,
    dnnl_s32,
    dnnl_s8,
    dnnl_u8,
}

Data type specification

Variants (Non-exhaustive)

Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
dnnl_data_type_undef

Undefined data type, used for empty memory descriptors.

dnnl_f16

16-bit/half-precision floating point.

dnnl_bf16

non-standard 16-bit (bfloat16 w/ 7 bit mantissa) floating point.

dnnl_f32

32-bit/single-precision floating point.

dnnl_s32

32-bit signed integer.

dnnl_s8

8-bit signed integer.

dnnl_u8

8-bit unsigned integer.

Trait Implementations

impl Clone for dnnl_data_type_t[src]

impl Copy for dnnl_data_type_t[src]

impl Debug for dnnl_data_type_t[src]

impl Eq for dnnl_data_type_t[src]

impl Hash for dnnl_data_type_t[src]

impl PartialEq<dnnl_data_type_t> for dnnl_data_type_t[src]

impl StructuralEq for dnnl_data_type_t[src]

impl StructuralPartialEq for dnnl_data_type_t[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.