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
Source§fn clone(&self) -> MatmulTransformPolicy
fn clone(&self) -> MatmulTransformPolicy
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 MatmulTransformPolicy
Source§impl Debug for MatmulTransformPolicy
impl Debug for MatmulTransformPolicy
Source§impl Default for MatmulTransformPolicy
impl Default for MatmulTransformPolicy
Source§fn default() -> MatmulTransformPolicy
fn default() -> MatmulTransformPolicy
Returns the “default value” for a type. Read more
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