pub struct PlaneWriter<EG: Numeric> {
pub tensor_writer: TensorWriter<EG>,
}
Expand description
Writes tiles from out shared memory to output global memory using a plane for each tile
Fields§
§tensor_writer: TensorWriter<EG>
Implementations§
Source§impl<EG: Numeric> PlaneWriter<EG>
impl<EG: Numeric> PlaneWriter<EG>
pub fn new( tensor: VirtualTensor<EG, ReadWrite>, x_offset: u32, y_offset: u32, batch_offset: u32, ) -> Self
pub fn __expand_new( scope: &mut Scope, tensor: <VirtualTensor<EG, ReadWrite> as CubeType>::ExpandType, x_offset: <u32 as CubeType>::ExpandType, y_offset: <u32 as CubeType>::ExpandType, batch_offset: <u32 as CubeType>::ExpandType, ) -> <Self as CubeType>::ExpandType
Trait Implementations§
Source§impl<EG: Numeric> CubeType for PlaneWriter<EG>
impl<EG: Numeric> CubeType for PlaneWriter<EG>
type ExpandType = PlaneWriterExpand<EG>
Source§fn into_mut(scope: &mut Scope, expand: Self::ExpandType) -> Self::ExpandType
fn into_mut(scope: &mut Scope, expand: Self::ExpandType) -> Self::ExpandType
Wrapper around the init method, necessary to type inference.
Source§impl<EG: Numeric> GlobalWriter<EG> for PlaneWriter<EG>
impl<EG: Numeric> GlobalWriter<EG> for PlaneWriter<EG>
Source§fn write<G: GlobalConfig>(
this: &mut Self,
out_smem_slice: Slice<Line<EG>>,
tile_row: u32,
tile_col: u32,
config: G,
)
fn write<G: GlobalConfig>( this: &mut Self, out_smem_slice: Slice<Line<EG>>, tile_row: u32, tile_col: u32, config: G, )
Writes the given slice to global memory, at a position that depends on
plane and accumulator indexes.
fn __expand_write<G: GlobalConfig>( scope: &mut Scope, this: <Self as CubeType>::ExpandType, out_smem_slice: <Slice<Line<EG>> as CubeType>::ExpandType, tile_row: <u32 as CubeType>::ExpandType, tile_col: <u32 as CubeType>::ExpandType, config: G, ) -> <() as CubeType>::ExpandType
Auto Trait Implementations§
impl<EG> Freeze for PlaneWriter<EG>
impl<EG> RefUnwindSafe for PlaneWriter<EG>where
EG: RefUnwindSafe,
impl<EG> Send for PlaneWriter<EG>
impl<EG> Sync for PlaneWriter<EG>
impl<EG> Unpin for PlaneWriter<EG>where
EG: Unpin,
impl<EG> UnwindSafe for PlaneWriter<EG>where
EG: 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