#[non_exhaustive]pub enum OperatorKind {
Show 46 variants
MatMul,
ArgMax {
axis: i32,
nan_mode: NanPropagationMode,
},
Ceil,
Floor,
Clamp {
min_val: [u8; 8],
max_val: [u8; 8],
bound_bytes: u8,
nan_mode: NanPropagationMode,
},
Concat {
axis: i32,
},
Reverse {
axis: i32,
},
Transpose {
perms: [i32; 6],
rank: u8,
},
ReduceMax {
axis: i32,
nan_mode: NanPropagationMode,
},
ReduceMin {
axis: i32,
nan_mode: NanPropagationMode,
},
ReduceProduct {
axis: i32,
},
ReduceSum {
axis: i32,
},
MaxPool2d {
kernel: [i32; 2],
stride: [i32; 2],
pad: [i32; 4],
nan_mode: NanPropagationMode,
},
Sigmoid,
Tanh,
Add,
LogicalAnd,
LogicalOr,
LogicalXor,
Maximum {
nan_mode: NanPropagationMode,
},
Minimum {
nan_mode: NanPropagationMode,
},
Mul,
Pow,
Sub,
Abs,
Cos,
Exp,
Log,
LogicalNot,
Negate,
Reciprocal,
Rsqrt,
Sin,
Select,
Equal,
Greater,
GreaterEqual,
Erf,
Reshape,
Cast,
Gather,
Slice,
Rescale {
scale32: bool,
rounding_mode: RoundingMode,
per_channel: bool,
input_unsigned: bool,
output_unsigned: bool,
},
Const,
Identity,
ConstShape,
}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.
MatMul
ArgMax
Ceil
Floor
Clamp
The bounds are one scalar each in the operand’s own dtype, so they are carried as their
serialized bytes (bound_bytes of each array is significant) rather than a wider type
that would not represent an integer or FP8 bound faithfully.
Concat
Reverse
Transpose
One permutation entry per dimension; rank of perms is significant.
ReduceMax
ReduceMin
ReduceProduct
ReduceSum
MaxPool2d
Sigmoid
Tanh
Add
LogicalAnd
LogicalOr
LogicalXor
Maximum
Fields
§
nan_mode: NanPropagationModeMinimum
Fields
§
nan_mode: NanPropagationModeMul
Pow
Sub
Abs
Cos
Exp
Log
LogicalNot
Negate
Reciprocal
Rsqrt
Sin
Select
Equal
Greater
GreaterEqual
Erf
Reshape
Cast
Gather
Slice
Rescale
Fields
§
rounding_mode: RoundingModeConst
Identity
ConstShape
Implementations§
Source§impl OperatorKind
impl OperatorKind
Trait Implementations§
Source§impl Clone for OperatorKind
impl Clone for OperatorKind
impl Copy for OperatorKind
Source§impl Debug for OperatorKind
impl Debug for OperatorKind
impl Eq for OperatorKind
Source§impl PartialEq for OperatorKind
impl PartialEq for OperatorKind
impl StructuralPartialEq for OperatorKind
Auto Trait Implementations§
impl Freeze for OperatorKind
impl RefUnwindSafe for OperatorKind
impl Send for OperatorKind
impl Sync for OperatorKind
impl Unpin for OperatorKind
impl UnsafeUnpin for OperatorKind
impl UnwindSafe for OperatorKind
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more