pub struct LoadingStrategy<T: TilingOrder> { /* private fields */ }
Expand description
Loads the content of all tiles in the tensor view using all planes, iterating with steps determined by the plane’s dimension.
Trait Implementations§
Source§impl<T: Clone + TilingOrder> Clone for LoadingStrategy<T>
impl<T: Clone + TilingOrder> Clone for LoadingStrategy<T>
Source§fn clone(&self) -> LoadingStrategy<T>
fn clone(&self) -> LoadingStrategy<T>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl<T: TilingOrder> CubeType for LoadingStrategy<T>
impl<T: TilingOrder> CubeType for LoadingStrategy<T>
type ExpandType = LoadingStrategyExpand<T>
Source§fn init(scope: &mut Scope, expand: Self::ExpandType) -> Self::ExpandType
fn init(scope: &mut Scope, expand: Self::ExpandType) -> Self::ExpandType
Wrapper around the init method, necessary to type inference.
Source§impl<TO: TilingOrder> LoadingValidation for LoadingStrategy<TO>
impl<TO: TilingOrder> LoadingValidation for LoadingStrategy<TO>
fn check<C: GlobalConfig>( config: &C, ident: Ident, ) -> Result<(), InvalidConfigError>
Source§impl<TO: TilingOrder> SyncBufferLoadingStrategy for LoadingStrategy<TO>
impl<TO: TilingOrder> SyncBufferLoadingStrategy for LoadingStrategy<TO>
Source§type TilingLayout = ContiguousTilingLayout<TO>
type TilingLayout = ContiguousTilingLayout<TO>
The layout describing how data is tiled across the stage.
Source§type Job<MP: MatmulPrecision> = Job
type Job<MP: MatmulPrecision> = Job
The LoadingJob for this strategy.
Source§fn new_job<MP: MatmulPrecision, G: GlobalConfig>(
buffer_index: u32,
input_ident: InputIdent,
config: G,
) -> Job
fn new_job<MP: MatmulPrecision, G: GlobalConfig>( buffer_index: u32, input_ident: InputIdent, config: G, ) -> Job
Returns the job with preliminary calculations done.
fn __expand_new_job<MP: MatmulPrecision, G: GlobalConfig>( context: &mut Scope, buffer_index: u32, input_ident: InputIdent, config: G, ) -> <Job as CubeType>::ExpandType
impl<T: Copy + TilingOrder> Copy for LoadingStrategy<T>
Auto Trait Implementations§
impl<T> Freeze for LoadingStrategy<T>
impl<T> RefUnwindSafe for LoadingStrategy<T>where
T: RefUnwindSafe,
impl<T> Send for LoadingStrategy<T>
impl<T> Sync for LoadingStrategy<T>
impl<T> Unpin for LoadingStrategy<T>where
T: Unpin,
impl<T> UnwindSafe for LoadingStrategy<T>where
T: UnwindSafe,
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