pub enum FusableOp {
Unary(UnaryOp),
Binary(BinaryOp),
Reduce(ReduceOp),
MemoryOp(MemOp),
}Expand description
An operation that can be part of a fused kernel.
Variants§
Unary(UnaryOp)
Element-wise: output[i] = f(input[i])
Binary(BinaryOp)
Element-wise: output[i] = f(a[i], b[i])
Reduce(ReduceOp)
Reduction over a dimension
MemoryOp(MemOp)
Memory operation
Trait Implementations§
impl StructuralPartialEq for FusableOp
Auto Trait Implementations§
impl Freeze for FusableOp
impl RefUnwindSafe for FusableOp
impl Send for FusableOp
impl Sync for FusableOp
impl Unpin for FusableOp
impl UnsafeUnpin for FusableOp
impl UnwindSafe for FusableOp
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