Skip to main content

ggml_op

Enum ggml_op 

Source
#[non_exhaustive]
#[repr(u32)]
pub enum ggml_op {
Show 97 variants GGML_OP_NONE = 0, GGML_OP_DUP = 1, GGML_OP_ADD = 2, GGML_OP_ADD_ID = 3, GGML_OP_ADD1 = 4, GGML_OP_ACC = 5, GGML_OP_SUB = 6, GGML_OP_MUL = 7, GGML_OP_DIV = 8, GGML_OP_SQR = 9, GGML_OP_SQRT = 10, GGML_OP_LOG = 11, GGML_OP_SIN = 12, GGML_OP_COS = 13, GGML_OP_SUM = 14, GGML_OP_SUM_ROWS = 15, GGML_OP_CUMSUM = 16, GGML_OP_MEAN = 17, GGML_OP_ARGMAX = 18, GGML_OP_COUNT_EQUAL = 19, GGML_OP_REPEAT = 20, GGML_OP_REPEAT_BACK = 21, GGML_OP_CONCAT = 22, GGML_OP_SILU_BACK = 23, GGML_OP_NORM = 24, GGML_OP_RMS_NORM = 25, GGML_OP_RMS_NORM_BACK = 26, GGML_OP_GROUP_NORM = 27, GGML_OP_L2_NORM = 28, GGML_OP_MUL_MAT = 29, GGML_OP_MUL_MAT_ID = 30, GGML_OP_OUT_PROD = 31, GGML_OP_SCALE = 32, GGML_OP_SET = 33, GGML_OP_CPY = 34, GGML_OP_CONT = 35, GGML_OP_RESHAPE = 36, GGML_OP_VIEW = 37, GGML_OP_PERMUTE = 38, GGML_OP_TRANSPOSE = 39, GGML_OP_GET_ROWS = 40, GGML_OP_GET_ROWS_BACK = 41, GGML_OP_SET_ROWS = 42, GGML_OP_DIAG = 43, GGML_OP_DIAG_MASK_INF = 44, GGML_OP_DIAG_MASK_ZERO = 45, GGML_OP_SOFT_MAX = 46, GGML_OP_SOFT_MAX_BACK = 47, GGML_OP_ROPE = 48, GGML_OP_ROPE_BACK = 49, GGML_OP_CLAMP = 50, GGML_OP_CONV_TRANSPOSE_1D = 51, GGML_OP_IM2COL = 52, GGML_OP_IM2COL_BACK = 53, GGML_OP_IM2COL_3D = 54, GGML_OP_CONV_2D = 55, GGML_OP_CONV_3D = 56, GGML_OP_CONV_2D_DW = 57, GGML_OP_CONV_TRANSPOSE_2D = 58, GGML_OP_POOL_1D = 59, GGML_OP_POOL_2D = 60, GGML_OP_POOL_2D_BACK = 61, GGML_OP_UPSCALE = 62, GGML_OP_PAD = 63, GGML_OP_PAD_REFLECT_1D = 64, GGML_OP_ROLL = 65, GGML_OP_ARANGE = 66, GGML_OP_TIMESTEP_EMBEDDING = 67, GGML_OP_ARGSORT = 68, GGML_OP_TOP_K = 69, GGML_OP_LEAKY_RELU = 70, GGML_OP_TRI = 71, GGML_OP_FILL = 72, GGML_OP_FLASH_ATTN_EXT = 73, GGML_OP_FLASH_ATTN_BACK = 74, GGML_OP_SSM_CONV = 75, GGML_OP_SSM_SCAN = 76, GGML_OP_WIN_PART = 77, GGML_OP_WIN_UNPART = 78, GGML_OP_GET_REL_POS = 79, GGML_OP_ADD_REL_POS = 80, GGML_OP_RWKV_WKV6 = 81, GGML_OP_GATED_LINEAR_ATTN = 82, GGML_OP_RWKV_WKV7 = 83, GGML_OP_SOLVE_TRI = 84, GGML_OP_GATED_DELTA_NET = 85, GGML_OP_UNARY = 86, GGML_OP_MAP_CUSTOM1 = 87, GGML_OP_MAP_CUSTOM2 = 88, GGML_OP_MAP_CUSTOM3 = 89, GGML_OP_CUSTOM = 90, GGML_OP_CROSS_ENTROPY_LOSS = 91, GGML_OP_CROSS_ENTROPY_LOSS_BACK = 92, GGML_OP_OPT_STEP_ADAMW = 93, GGML_OP_OPT_STEP_SGD = 94, GGML_OP_GLU = 95, GGML_OP_COUNT = 96,
}

Variants (Non-exhaustive)§

This enum is marked as 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.
§

GGML_OP_NONE = 0

§

GGML_OP_DUP = 1

§

GGML_OP_ADD = 2

§

GGML_OP_ADD_ID = 3

§

GGML_OP_ADD1 = 4

§

GGML_OP_ACC = 5

§

GGML_OP_SUB = 6

§

GGML_OP_MUL = 7

§

GGML_OP_DIV = 8

§

GGML_OP_SQR = 9

§

GGML_OP_SQRT = 10

§

GGML_OP_LOG = 11

§

GGML_OP_SIN = 12

§

GGML_OP_COS = 13

§

GGML_OP_SUM = 14

§

GGML_OP_SUM_ROWS = 15

§

GGML_OP_CUMSUM = 16

§

GGML_OP_MEAN = 17

§

GGML_OP_ARGMAX = 18

§

GGML_OP_COUNT_EQUAL = 19

§

GGML_OP_REPEAT = 20

§

GGML_OP_REPEAT_BACK = 21

§

GGML_OP_CONCAT = 22

§

GGML_OP_SILU_BACK = 23

§

GGML_OP_NORM = 24

§

GGML_OP_RMS_NORM = 25

§

GGML_OP_RMS_NORM_BACK = 26

§

GGML_OP_GROUP_NORM = 27

§

GGML_OP_L2_NORM = 28

§

GGML_OP_MUL_MAT = 29

§

GGML_OP_MUL_MAT_ID = 30

§

GGML_OP_OUT_PROD = 31

§

GGML_OP_SCALE = 32

§

GGML_OP_SET = 33

§

GGML_OP_CPY = 34

§

GGML_OP_CONT = 35

§

GGML_OP_RESHAPE = 36

§

GGML_OP_VIEW = 37

§

GGML_OP_PERMUTE = 38

§

GGML_OP_TRANSPOSE = 39

§

GGML_OP_GET_ROWS = 40

§

GGML_OP_GET_ROWS_BACK = 41

§

GGML_OP_SET_ROWS = 42

§

GGML_OP_DIAG = 43

§

GGML_OP_DIAG_MASK_INF = 44

§

GGML_OP_DIAG_MASK_ZERO = 45

§

GGML_OP_SOFT_MAX = 46

§

GGML_OP_SOFT_MAX_BACK = 47

§

GGML_OP_ROPE = 48

§

GGML_OP_ROPE_BACK = 49

§

GGML_OP_CLAMP = 50

§

GGML_OP_CONV_TRANSPOSE_1D = 51

§

GGML_OP_IM2COL = 52

§

GGML_OP_IM2COL_BACK = 53

§

GGML_OP_IM2COL_3D = 54

§

GGML_OP_CONV_2D = 55

§

GGML_OP_CONV_3D = 56

§

GGML_OP_CONV_2D_DW = 57

§

GGML_OP_CONV_TRANSPOSE_2D = 58

§

GGML_OP_POOL_1D = 59

§

GGML_OP_POOL_2D = 60

§

GGML_OP_POOL_2D_BACK = 61

§

GGML_OP_UPSCALE = 62

§

GGML_OP_PAD = 63

§

GGML_OP_PAD_REFLECT_1D = 64

§

GGML_OP_ROLL = 65

§

GGML_OP_ARANGE = 66

§

GGML_OP_TIMESTEP_EMBEDDING = 67

§

GGML_OP_ARGSORT = 68

§

GGML_OP_TOP_K = 69

§

GGML_OP_LEAKY_RELU = 70

§

GGML_OP_TRI = 71

§

GGML_OP_FILL = 72

§

GGML_OP_FLASH_ATTN_EXT = 73

§

GGML_OP_FLASH_ATTN_BACK = 74

§

GGML_OP_SSM_CONV = 75

§

GGML_OP_SSM_SCAN = 76

§

GGML_OP_WIN_PART = 77

§

GGML_OP_WIN_UNPART = 78

§

GGML_OP_GET_REL_POS = 79

§

GGML_OP_ADD_REL_POS = 80

§

GGML_OP_RWKV_WKV6 = 81

§

GGML_OP_GATED_LINEAR_ATTN = 82

§

GGML_OP_RWKV_WKV7 = 83

§

GGML_OP_SOLVE_TRI = 84

§

GGML_OP_GATED_DELTA_NET = 85

§

GGML_OP_UNARY = 86

§

GGML_OP_MAP_CUSTOM1 = 87

§

GGML_OP_MAP_CUSTOM2 = 88

§

GGML_OP_MAP_CUSTOM3 = 89

§

GGML_OP_CUSTOM = 90

§

GGML_OP_CROSS_ENTROPY_LOSS = 91

§

GGML_OP_CROSS_ENTROPY_LOSS_BACK = 92

§

GGML_OP_OPT_STEP_ADAMW = 93

§

GGML_OP_OPT_STEP_SGD = 94

§

GGML_OP_GLU = 95

§

GGML_OP_COUNT = 96

Trait Implementations§

Source§

impl Clone for ggml_op

Source§

fn clone(&self) -> ggml_op

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 ggml_op

Source§

impl Debug for ggml_op

Source§

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

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

impl Eq for ggml_op

Source§

impl Hash for ggml_op

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 ggml_op

Source§

fn eq(&self, other: &ggml_op) -> 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 StructuralPartialEq for ggml_op

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.