pub enum OpKind {
Contract,
BatchedGemm,
Reduce,
Trace,
Permute,
ElementwiseMul,
}Expand description
Classification of tensor operations, used to query preferred compute devices for a given operation on a given memory space.
Variants§
Contract
General tensor contraction.
BatchedGemm
Batched GEMM (matrix-matrix multiply).
Reduce
Reduction (sum, max, min) over one or more modes.
Trace
Trace (diagonal contraction of paired modes).
Permute
Mode permutation (transpose).
ElementwiseMul
Element-wise multiplication.
Trait Implementations§
impl Copy for OpKind
impl Eq for OpKind
impl StructuralPartialEq for OpKind
Auto Trait Implementations§
impl Freeze for OpKind
impl RefUnwindSafe for OpKind
impl Send for OpKind
impl Sync for OpKind
impl Unpin for OpKind
impl UnwindSafe for OpKind
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