pub struct TmaWeightLoader<MP: MatmulPrecision, S: StageConfig> {
pub tensor_view: MappedTensorReader<MP::EI>,
pub stage: Stage<MP::ES, TmaWeightTiling>,
/* private fields */
}
Fields§
§tensor_view: MappedTensorReader<MP::EI>
§stage: Stage<MP::ES, TmaWeightTiling>
Implementations§
Source§impl<MP: MatmulPrecision, S: StageConfig> TmaWeightLoader<MP, S>
impl<MP: MatmulPrecision, S: StageConfig> TmaWeightLoader<MP, S>
pub fn new<G: GlobalConfig>( tensor: TensorMap<MP::EI>, x: u32, y: u32, quantization: CubeOption<Quantization<MP>>, runtime_args: &RuntimeArgs, config: G, ) -> Self
pub fn fill_stage(this: &mut Self, barrier: &Barrier<MP::ES>, config: S)
pub fn reader(this: &Self) -> TmaWeightReader<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, quantization: <CubeOption<Quantization<MP>> as CubeType>::ExpandType, runtime_args: <RuntimeArgs as CubeType>::ExpandType, 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: S, ) -> <() as CubeType>::ExpandType
pub fn __expand_reader( context: &mut Scope, this: <Self as CubeType>::ExpandType, ) -> <TmaWeightReader<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 TmaWeightLoader<MP, S>
impl<MP: MatmulPrecision, S: StageConfig> CubeType for TmaWeightLoader<MP, S>
type ExpandType = TmaWeightLoaderExpand<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 TmaWeightLoader<MP, S>
impl<MP, S> RefUnwindSafe for TmaWeightLoader<MP, S>where
S: RefUnwindSafe,
<MP as MatmulPrecision>::EI: RefUnwindSafe,
<MP as MatmulPrecision>::ES: RefUnwindSafe,
impl<MP, S> Send for TmaWeightLoader<MP, S>
impl<MP, S> Sync for TmaWeightLoader<MP, S>
impl<MP, S> Unpin for TmaWeightLoader<MP, S>
impl<MP, S> UnwindSafe for TmaWeightLoader<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