[][src]Enum onednn_sys::dnnl_primitive_kind_t

#[repr(u32)]
#[non_exhaustive]pub enum dnnl_primitive_kind_t {
    dnnl_undefined_primitive,
    dnnl_reorder,
    dnnl_shuffle,
    dnnl_concat,
    dnnl_sum,
    dnnl_convolution,
    dnnl_deconvolution,
    dnnl_eltwise,
    dnnl_softmax,
    dnnl_pooling,
    dnnl_lrn,
    dnnl_batch_normalization,
    dnnl_layer_normalization,
    dnnl_inner_product,
    dnnl_rnn,
    dnnl_gemm,
    dnnl_binary,
    dnnl_logsoftmax,
    dnnl_matmul,
    dnnl_resampling,
}

Kinds of primitives. Used to implement a way to extend the library with new primitives without changing the ABI.

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_undefined_primitive

Undefined primitive

dnnl_reorder

A reorder primitive.

dnnl_shuffle

A shuffle primitive.

dnnl_concat

A (out-of-place) concat primitive.

dnnl_sum

A sum primitive.

dnnl_convolution

A convolution primitive.

dnnl_deconvolution

A deconvolution primitive.

dnnl_eltwise

An element-wise primitive.

dnnl_softmax

A softmax primitive.

dnnl_pooling

A pooling primitive.

dnnl_lrn

An LRN primitive.

dnnl_batch_normalization

A batch normalization primitive.

dnnl_layer_normalization

A layer normalization primitive.

dnnl_inner_product

An inner product primitive.

dnnl_rnn

A rnn primitive.

dnnl_gemm

A matrix multiplication primitive (internal).

dnnl_binary

A binary primitive.

dnnl_logsoftmax

A logsoftmax primitive.

dnnl_matmul

A matrix multiplication primitive.

dnnl_resampling

A resampling primitive.

Trait Implementations

impl Clone for dnnl_primitive_kind_t[src]

impl Copy for dnnl_primitive_kind_t[src]

impl Debug for dnnl_primitive_kind_t[src]

impl Eq for dnnl_primitive_kind_t[src]

impl Hash for dnnl_primitive_kind_t[src]

impl PartialEq<dnnl_primitive_kind_t> for dnnl_primitive_kind_t[src]

impl StructuralEq for dnnl_primitive_kind_t[src]

impl StructuralPartialEq for dnnl_primitive_kind_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.