Enum llama_cpp_sys::ggml_op

source ·
#[non_exhaustive]
#[repr(u32)]
pub enum ggml_op {
Show 77 variants GGML_OP_NONE = 0, GGML_OP_DUP = 1, GGML_OP_ADD = 2, GGML_OP_ADD1 = 3, GGML_OP_ACC = 4, GGML_OP_SUB = 5, GGML_OP_MUL = 6, GGML_OP_DIV = 7, GGML_OP_SQR = 8, GGML_OP_SQRT = 9, GGML_OP_LOG = 10, GGML_OP_SUM = 11, GGML_OP_SUM_ROWS = 12, GGML_OP_MEAN = 13, GGML_OP_ARGMAX = 14, GGML_OP_REPEAT = 15, GGML_OP_REPEAT_BACK = 16, GGML_OP_CONCAT = 17, GGML_OP_SILU_BACK = 18, GGML_OP_NORM = 19, GGML_OP_RMS_NORM = 20, GGML_OP_RMS_NORM_BACK = 21, GGML_OP_GROUP_NORM = 22, GGML_OP_MUL_MAT = 23, GGML_OP_MUL_MAT_ID = 24, GGML_OP_OUT_PROD = 25, GGML_OP_SCALE = 26, GGML_OP_SET = 27, GGML_OP_CPY = 28, GGML_OP_CONT = 29, GGML_OP_RESHAPE = 30, GGML_OP_VIEW = 31, GGML_OP_PERMUTE = 32, GGML_OP_TRANSPOSE = 33, GGML_OP_GET_ROWS = 34, GGML_OP_GET_ROWS_BACK = 35, GGML_OP_DIAG = 36, GGML_OP_DIAG_MASK_INF = 37, GGML_OP_DIAG_MASK_ZERO = 38, GGML_OP_SOFT_MAX = 39, GGML_OP_SOFT_MAX_BACK = 40, GGML_OP_ROPE = 41, GGML_OP_ROPE_BACK = 42, GGML_OP_ALIBI = 43, GGML_OP_CLAMP = 44, GGML_OP_CONV_TRANSPOSE_1D = 45, GGML_OP_IM2COL = 46, GGML_OP_CONV_TRANSPOSE_2D = 47, GGML_OP_POOL_1D = 48, GGML_OP_POOL_2D = 49, GGML_OP_UPSCALE = 50, GGML_OP_PAD = 51, GGML_OP_ARANGE = 52, GGML_OP_TIMESTEP_EMBEDDING = 53, GGML_OP_ARGSORT = 54, GGML_OP_LEAKY_RELU = 55, GGML_OP_FLASH_ATTN = 56, GGML_OP_FLASH_FF = 57, GGML_OP_FLASH_ATTN_BACK = 58, GGML_OP_SSM_CONV = 59, GGML_OP_SSM_SCAN = 60, GGML_OP_WIN_PART = 61, GGML_OP_WIN_UNPART = 62, GGML_OP_GET_REL_POS = 63, GGML_OP_ADD_REL_POS = 64, GGML_OP_UNARY = 65, GGML_OP_MAP_UNARY = 66, GGML_OP_MAP_BINARY = 67, GGML_OP_MAP_CUSTOM1_F32 = 68, GGML_OP_MAP_CUSTOM2_F32 = 69, GGML_OP_MAP_CUSTOM3_F32 = 70, GGML_OP_MAP_CUSTOM1 = 71, GGML_OP_MAP_CUSTOM2 = 72, GGML_OP_MAP_CUSTOM3 = 73, GGML_OP_CROSS_ENTROPY_LOSS = 74, GGML_OP_CROSS_ENTROPY_LOSS_BACK = 75, GGML_OP_COUNT = 76,
}

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_ADD1 = 3

§

GGML_OP_ACC = 4

§

GGML_OP_SUB = 5

§

GGML_OP_MUL = 6

§

GGML_OP_DIV = 7

§

GGML_OP_SQR = 8

§

GGML_OP_SQRT = 9

§

GGML_OP_LOG = 10

§

GGML_OP_SUM = 11

§

GGML_OP_SUM_ROWS = 12

§

GGML_OP_MEAN = 13

§

GGML_OP_ARGMAX = 14

§

GGML_OP_REPEAT = 15

§

GGML_OP_REPEAT_BACK = 16

§

GGML_OP_CONCAT = 17

§

GGML_OP_SILU_BACK = 18

§

GGML_OP_NORM = 19

§

GGML_OP_RMS_NORM = 20

§

GGML_OP_RMS_NORM_BACK = 21

§

GGML_OP_GROUP_NORM = 22

§

GGML_OP_MUL_MAT = 23

§

GGML_OP_MUL_MAT_ID = 24

§

GGML_OP_OUT_PROD = 25

§

GGML_OP_SCALE = 26

§

GGML_OP_SET = 27

§

GGML_OP_CPY = 28

§

GGML_OP_CONT = 29

§

GGML_OP_RESHAPE = 30

§

GGML_OP_VIEW = 31

§

GGML_OP_PERMUTE = 32

§

GGML_OP_TRANSPOSE = 33

§

GGML_OP_GET_ROWS = 34

§

GGML_OP_GET_ROWS_BACK = 35

§

GGML_OP_DIAG = 36

§

GGML_OP_DIAG_MASK_INF = 37

§

GGML_OP_DIAG_MASK_ZERO = 38

§

GGML_OP_SOFT_MAX = 39

§

GGML_OP_SOFT_MAX_BACK = 40

§

GGML_OP_ROPE = 41

§

GGML_OP_ROPE_BACK = 42

§

GGML_OP_ALIBI = 43

§

GGML_OP_CLAMP = 44

§

GGML_OP_CONV_TRANSPOSE_1D = 45

§

GGML_OP_IM2COL = 46

§

GGML_OP_CONV_TRANSPOSE_2D = 47

§

GGML_OP_POOL_1D = 48

§

GGML_OP_POOL_2D = 49

§

GGML_OP_UPSCALE = 50

§

GGML_OP_PAD = 51

§

GGML_OP_ARANGE = 52

§

GGML_OP_TIMESTEP_EMBEDDING = 53

§

GGML_OP_ARGSORT = 54

§

GGML_OP_LEAKY_RELU = 55

§

GGML_OP_FLASH_ATTN = 56

§

GGML_OP_FLASH_FF = 57

§

GGML_OP_FLASH_ATTN_BACK = 58

§

GGML_OP_SSM_CONV = 59

§

GGML_OP_SSM_SCAN = 60

§

GGML_OP_WIN_PART = 61

§

GGML_OP_WIN_UNPART = 62

§

GGML_OP_GET_REL_POS = 63

§

GGML_OP_ADD_REL_POS = 64

§

GGML_OP_UNARY = 65

§

GGML_OP_MAP_UNARY = 66

§

GGML_OP_MAP_BINARY = 67

§

GGML_OP_MAP_CUSTOM1_F32 = 68

§

GGML_OP_MAP_CUSTOM2_F32 = 69

§

GGML_OP_MAP_CUSTOM3_F32 = 70

§

GGML_OP_MAP_CUSTOM1 = 71

§

GGML_OP_MAP_CUSTOM2 = 72

§

GGML_OP_MAP_CUSTOM3 = 73

§

GGML_OP_CROSS_ENTROPY_LOSS = 74

§

GGML_OP_CROSS_ENTROPY_LOSS_BACK = 75

§

GGML_OP_COUNT = 76

Trait Implementations§

source§

impl Clone for ggml_op

source§

fn clone(&self) -> ggml_op

Returns a copy 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 ggml_op

source§

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

Formats the value using the given formatter. Read more
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

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

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

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl Copy for ggml_op

source§

impl Eq for ggml_op

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> 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,

§

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>,

§

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>,

§

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.