pub enum MatmulTransformPolicy {
BetterTiling,
Never,
}Variants§
BetterTiling
Merge the batches into the rows when the fold is a pure view and the merged problem tiles better: per-batch rows that already fill row tiles stay batched (a batched matmul beats one big matmul at that scale), tiny row counts merge when that brings the output closer to square.
Never
Never transform.
Implementations§
Source§impl MatmulTransformPolicy
impl MatmulTransformPolicy
Sourcepub fn action(
&self,
analysis: &MatmulTransformAnalysis,
) -> MatmulTransformAction
pub fn action( &self, analysis: &MatmulTransformAnalysis, ) -> MatmulTransformAction
The action to take for a matmul with the given analysis.
Trait Implementations§
Source§impl Clone for MatmulTransformPolicy
impl Clone for MatmulTransformPolicy
impl Copy for MatmulTransformPolicy
Source§impl Debug for MatmulTransformPolicy
impl Debug for MatmulTransformPolicy
Auto Trait Implementations§
impl Freeze for MatmulTransformPolicy
impl RefUnwindSafe for MatmulTransformPolicy
impl Send for MatmulTransformPolicy
impl Sync for MatmulTransformPolicy
impl Unpin for MatmulTransformPolicy
impl UnsafeUnpin for MatmulTransformPolicy
impl UnwindSafe for MatmulTransformPolicy
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