pub enum ReductionPattern {
LayerNorm,
Softmax,
Generic,
}Expand description
The classified shape of a fused reduction region.
Classification is a descriptive label derived from the member kernel function names; it never affects whether a region is fusible (that decision is purely structural). It is used to tag the fused kernel and to let the codegen layer pick a specialised template.
Variants§
LayerNorm
mean → subtract → variance → normalize → scale/shift (two reductions).
Softmax
max → subtract → exp → sum → divide (two reductions, one exp).
Generic
A reduction-broadcast region that does not match a known template.
Implementations§
Trait Implementations§
Source§impl Clone for ReductionPattern
impl Clone for ReductionPattern
Source§fn clone(&self) -> ReductionPattern
fn clone(&self) -> ReductionPattern
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for ReductionPattern
Source§impl Debug for ReductionPattern
impl Debug for ReductionPattern
Source§impl Display for ReductionPattern
impl Display for ReductionPattern
impl Eq for ReductionPattern
Source§impl PartialEq for ReductionPattern
impl PartialEq for ReductionPattern
impl StructuralPartialEq for ReductionPattern
Auto Trait Implementations§
impl Freeze for ReductionPattern
impl RefUnwindSafe for ReductionPattern
impl Send for ReductionPattern
impl Sync for ReductionPattern
impl Unpin for ReductionPattern
impl UnsafeUnpin for ReductionPattern
impl UnwindSafe for ReductionPattern
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