pub enum PrimitiveOpKind {
Show 48 variants
Add,
Mul,
Neg,
Conj,
Div,
Abs,
Sign,
Maximum,
Minimum,
Compare,
Select,
Clamp,
Exp,
Log,
Sin,
Cos,
Tanh,
Sqrt,
Rsqrt,
Pow,
Expm1,
Log1p,
DotGeneral,
ReduceSum,
ReduceProd,
ReduceMax,
ReduceMin,
Transpose,
Reshape,
BroadcastInDim,
Convert,
ExtractDiag,
EmbedDiag,
Tril,
Triu,
Gather,
GatherDynamicSliceSizes,
Scatter,
Slice,
DynamicSlice,
DynamicUpdateSlice,
Pad,
Concatenate,
Reverse,
ShapeOf,
DynamicTruncate,
PadToMatch,
Constant,
}Expand description
Catalog key for a core primitive operation.
§Examples
use tenferro_core_ops::{descriptor, PrimitiveOpKind};
assert_eq!(descriptor(PrimitiveOpKind::Add).name, "add");Variants§
Add
Mul
Neg
Conj
Div
Abs
Sign
Maximum
Minimum
Compare
Select
Clamp
Exp
Log
Sin
Cos
Tanh
Sqrt
Rsqrt
Pow
Expm1
Log1p
DotGeneral
ReduceSum
ReduceProd
ReduceMax
ReduceMin
Transpose
Reshape
BroadcastInDim
Convert
ExtractDiag
EmbedDiag
Tril
Triu
Gather
GatherDynamicSliceSizes
Scatter
Slice
DynamicSlice
DynamicUpdateSlice
Pad
Concatenate
Reverse
ShapeOf
DynamicTruncate
PadToMatch
Constant
Implementations§
Trait Implementations§
Source§impl Clone for PrimitiveOpKind
impl Clone for PrimitiveOpKind
Source§fn clone(&self) -> PrimitiveOpKind
fn clone(&self) -> PrimitiveOpKind
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PrimitiveOpKind
impl Debug for PrimitiveOpKind
Source§impl Hash for PrimitiveOpKind
impl Hash for PrimitiveOpKind
Source§impl PartialEq for PrimitiveOpKind
impl PartialEq for PrimitiveOpKind
impl Copy for PrimitiveOpKind
impl Eq for PrimitiveOpKind
impl StructuralPartialEq for PrimitiveOpKind
Auto Trait Implementations§
impl Freeze for PrimitiveOpKind
impl RefUnwindSafe for PrimitiveOpKind
impl Send for PrimitiveOpKind
impl Sync for PrimitiveOpKind
impl Unpin for PrimitiveOpKind
impl UnsafeUnpin for PrimitiveOpKind
impl UnwindSafe for PrimitiveOpKind
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