Skip to main content

LayerType

Enum LayerType 

Source
#[repr(i32)]
pub enum LayerType {
Show 57 variants kCONVOLUTION = 0, kCAST = 1, kACTIVATION = 2, kPOOLING = 3, kLRN = 4, kSCALE = 5, kSOFTMAX = 6, kDECONVOLUTION = 7, kCONCATENATION = 8, kELEMENTWISE = 9, kPLUGIN = 10, kUNARY = 11, kPADDING = 12, kSHUFFLE = 13, kREDUCE = 14, kTOPK = 15, kGATHER = 16, kMATRIX_MULTIPLY = 17, kRAGGED_SOFTMAX = 18, kCONSTANT = 19, kIDENTITY = 20, kPLUGIN_V2 = 21, kSLICE = 22, kSHAPE = 23, kPARAMETRIC_RELU = 24, kRESIZE = 25, kTRIP_LIMIT = 26, kRECURRENCE = 27, kITERATOR = 28, kLOOP_OUTPUT = 29, kSELECT = 30, kFILL = 31, kQUANTIZE = 32, kDEQUANTIZE = 33, kCONDITION = 34, kCONDITIONAL_INPUT = 35, kCONDITIONAL_OUTPUT = 36, kSCATTER = 37, kEINSUM = 38, kASSERTION = 39, kONE_HOT = 40, kNON_ZERO = 41, kGRID_SAMPLE = 42, kNMS = 43, kREVERSE_SEQUENCE = 44, kNORMALIZATION = 45, kPLUGIN_V3 = 46, kSQUEEZE = 47, kUNSQUEEZE = 48, kCUMULATIVE = 49, kDYNAMIC_QUANTIZE = 50, kATTENTION_INPUT = 51, kATTENTION_OUTPUT = 52, kROTARY_EMBEDDING = 53, kKVCACHE_UPDATE = 54, kMOE = 55, kDIST_COLLECTIVE = 56,
}
Expand description

! ! \enum LayerType ! ! \brief The type values of layer classes. ! ! \see ILayer::getType() !

Variants§

§

kCONVOLUTION = 0

!< Convolution layer.

§

kCAST = 1

!< Cast layer

§

kACTIVATION = 2

!< Activation layer.

§

kPOOLING = 3

!< Pooling layer.

§

kLRN = 4

!< LRN layer.

§

kSCALE = 5

!< Scale layer.

§

kSOFTMAX = 6

!< SoftMax layer.

§

kDECONVOLUTION = 7

!< Deconvolution layer.

§

kCONCATENATION = 8

!< Concatenation layer.

§

kELEMENTWISE = 9

!< Elementwise layer.

§

kPLUGIN = 10

!< Plugin layer.

§

kUNARY = 11

!< UnaryOp operation Layer.

§

kPADDING = 12

!< Padding layer.

§

kSHUFFLE = 13

!< Shuffle layer.

§

kREDUCE = 14

!< Reduce layer.

§

kTOPK = 15

!< TopK layer.

§

kGATHER = 16

!< Gather layer.

§

kMATRIX_MULTIPLY = 17

!< Matrix multiply layer.

§

kRAGGED_SOFTMAX = 18

!< Ragged softmax layer.

§

kCONSTANT = 19

!< Constant layer.

§

kIDENTITY = 20

!< Identity layer.

§

kPLUGIN_V2 = 21

!< PluginV2 layer.

§

kSLICE = 22

!< Slice layer.

§

kSHAPE = 23

!< Shape layer.

§

kPARAMETRIC_RELU = 24

!< Parametric ReLU layer.

§

kRESIZE = 25

!< Resize Layer.

§

kTRIP_LIMIT = 26

!< Loop Trip limit layer

§

kRECURRENCE = 27

!< Loop Recurrence layer

§

kITERATOR = 28

!< Loop Iterator layer

§

kLOOP_OUTPUT = 29

!< Loop output layer

§

kSELECT = 30

!< Select layer.

§

kFILL = 31

!< Fill layer

§

kQUANTIZE = 32

!< Quantize layer

§

kDEQUANTIZE = 33

!< Dequantize layer

§

kCONDITION = 34

!< Condition layer

§

kCONDITIONAL_INPUT = 35

!< Conditional Input layer

§

kCONDITIONAL_OUTPUT = 36

!< Conditional Output layer

§

kSCATTER = 37

!< Scatter layer

§

kEINSUM = 38

!< Einsum layer

§

kASSERTION = 39

!< Assertion layer

§

kONE_HOT = 40

!< OneHot layer

§

kNON_ZERO = 41

!< NonZero layer

§

kGRID_SAMPLE = 42

!< Grid sample layer

§

kNMS = 43

!< NMS layer

§

kREVERSE_SEQUENCE = 44

!< Reverse sequence layer

§

kNORMALIZATION = 45

!< Normalization layer

§

kPLUGIN_V3 = 46

!< PluginV3 layer.

§

kSQUEEZE = 47

!< Squeeze Layer.

§

kUNSQUEEZE = 48

!< Unsqueeze Layer.

§

kCUMULATIVE = 49

!< Cumulative layer.

§

kDYNAMIC_QUANTIZE = 50

!< Dynamic Quantize layer.

§

kATTENTION_INPUT = 51

!< Attention Input.

§

kATTENTION_OUTPUT = 52

!< Attention Output.

§

kROTARY_EMBEDDING = 53

!< Rotary Embedding layer.

§

kKVCACHE_UPDATE = 54

!< KV Cache Update layer.

§

kMOE = 55

!< MoE layer.

§

kDIST_COLLECTIVE = 56

!< DistCollective layer.

Trait Implementations§

Source§

impl Clone for LayerType

Source§

fn clone(&self) -> LayerType

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

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

Performs copy-assignment from source. Read more
Source§

impl Copy for LayerType

Source§

impl Debug for LayerType

Source§

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

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

impl Eq for LayerType

Source§

impl From<LayerType> for LayerType

Source§

fn from(value: LayerType) -> Self

Converts to this type from the input type.
Source§

impl Hash for LayerType

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 Into<LayerType> for LayerType

Source§

fn into(self) -> LayerType

Converts this type into the (usually inferred) input type.
Source§

impl Ord for LayerType

Source§

fn cmp(&self, other: &LayerType) -> Ordering

This method returns an Ordering between self and other. Read more
1.21.0 (const: unstable) · Source§

fn max(self, other: Self) -> Self
where Self: Sized,

Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§

fn min(self, other: Self) -> Self
where Self: Sized,

Compares and returns the minimum of two values. Read more
1.50.0 (const: unstable) · Source§

fn clamp(self, min: Self, max: Self) -> Self
where Self: Sized,

Restrict a value to a certain interval. Read more
Source§

impl PartialEq for LayerType

Source§

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

Tests for self and other values to be equal, and is used by ==.
1.0.0 (const: unstable) · 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 PartialOrd for LayerType

Source§

fn partial_cmp(&self, other: &LayerType) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 (const: unstable) · Source§

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

Tests less than (for self and other) and is used by the < operator. Read more
1.0.0 (const: unstable) · Source§

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

Tests less than or equal to (for self and other) and is used by the <= operator. Read more
1.0.0 (const: unstable) · Source§

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

Tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 (const: unstable) · Source§

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

Tests greater than or equal to (for self and other) and is used by the >= operator. Read more
Source§

impl StructuralPartialEq for LayerType

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.