pub struct TmaLoader<MP: MatmulPrecision, S: StageConfig> {
pub tensor_view: MappedTensorReader<MP::EI>,
pub stage: Stage<MP::ES, TmaTiling>,
/* private fields */
}
Fields§
§tensor_view: MappedTensorReader<MP::EI>
§stage: Stage<MP::ES, TmaTiling>
Implementations§
Source§impl<MP: MatmulPrecision, S: StageConfig> TmaLoader<MP, S>
impl<MP: MatmulPrecision, S: StageConfig> TmaLoader<MP, S>
pub fn new<G: GlobalConfig>( tensor: TensorMap<MP::EI>, x: u32, y: u32, batch: u32, quantization: CubeOption<Quantization<MP>>, ident: InputIdent, config: G, ) -> Self
pub fn fill_stage(this: &mut Self, barrier: &Barrier<MP::ES>, config: Config<S>)
pub fn reader(this: &Self) -> TmaReader<MP>
pub fn advance_view(this: &mut Self, k_offset: u32)
pub fn __expand_new<G: GlobalConfig>( context: &mut Scope, tensor: <TensorMap<MP::EI> as CubeType>::ExpandType, x: <u32 as CubeType>::ExpandType, y: <u32 as CubeType>::ExpandType, batch: <u32 as CubeType>::ExpandType, quantization: <CubeOption<Quantization<MP>> as CubeType>::ExpandType, ident: InputIdent, config: G, ) -> <Self as CubeType>::ExpandType
pub fn __expand_fill_stage( context: &mut Scope, this: <Self as CubeType>::ExpandType, barrier: <Barrier<MP::ES> as CubeType>::ExpandType, config: Config<S>, ) -> <() as CubeType>::ExpandType
pub fn __expand_reader( context: &mut Scope, this: <Self as CubeType>::ExpandType, ) -> <TmaReader<MP> as CubeType>::ExpandType
pub fn __expand_advance_view( context: &mut Scope, this: <Self as CubeType>::ExpandType, k_offset: <u32 as CubeType>::ExpandType, ) -> <() as CubeType>::ExpandType
Trait Implementations§
Source§impl<MP: MatmulPrecision, S: StageConfig> CubeType for TmaLoader<MP, S>
impl<MP: MatmulPrecision, S: StageConfig> CubeType for TmaLoader<MP, S>
type ExpandType = TmaLoaderExpand<MP, S>
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.
Auto Trait Implementations§
impl<MP, S> Freeze for TmaLoader<MP, S>
impl<MP, S> RefUnwindSafe for TmaLoader<MP, S>where
S: RefUnwindSafe,
<MP as MatmulPrecision>::EI: RefUnwindSafe,
<MP as MatmulPrecision>::ES: RefUnwindSafe,
impl<MP, S> Send for TmaLoader<MP, S>
impl<MP, S> Sync for TmaLoader<MP, S>
impl<MP, S> Unpin for TmaLoader<MP, S>
impl<MP, S> UnwindSafe for TmaLoader<MP, S>where
S: UnwindSafe,
<MP as MatmulPrecision>::EI: UnwindSafe,
<MP as MatmulPrecision>::ES: 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