pub enum OpClass {
MatMul,
Convolution,
Attention,
Reduction,
Elementwise,
Memory,
}Expand description
Routable operation classes used by BackendRegistry::route.
This is a coarse routing key, not the full op set: it lets a consumer ask “which backend should run my GEMMs?” so that, for example, dense linear algebra can be pinned to a Tensor-Core backend while element-wise work goes to whatever is cheapest.
Variants§
MatMul
Dense matrix multiply (gemm / batched_gemm).
Convolution
Convolution (conv2d_forward).
Attention
Scaled dot-product attention.
Reduction
Axis reductions.
Elementwise
Element-wise unary / binary / softmax.
Memory
Host/device memory transfers.
Implementations§
Trait Implementations§
impl Copy for OpClass
impl Eq for OpClass
impl StructuralPartialEq for OpClass
Auto Trait Implementations§
impl Freeze for OpClass
impl RefUnwindSafe for OpClass
impl Send for OpClass
impl Sync for OpClass
impl Unpin for OpClass
impl UnsafeUnpin for OpClass
impl UnwindSafe for OpClass
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