pub struct QueryReader<AP: AttentionPrecision> { /* private fields */ }Implementations§
Source§impl<AP: AttentionPrecision> QueryReader<AP>
impl<AP: AttentionPrecision> QueryReader<AP>
pub fn new( stage_q_offset: u32, query: View<Vector<QG<AP>, QGS<AP>>, Coords2d>, gmem_config: GlobalMemoryConfig, ) -> Self
pub fn get_tile<P: AttentionPartitioner>( &self, tile: Coords2d, tile_size: AttentionTileSize, partition_seq_q: u32, partition_head_dim: u32, ) -> StridedTile<QG<AP>, QGS<AP>>
pub fn head_dim(&self) -> u32
pub fn get_staged_tile<P: AttentionPartitioner>( &self, tile: Coords2d, tile_size: AttentionTileSize, partition_seq_q: u32, plane_dim: u32, num_planes: u32, ) -> StridedTile<QG<AP>, QGS<AP>>
pub fn __expand_new( scope: &mut Scope, stage_q_offset: <u32 as RudaType>::ExpandType, query: <View<Vector<QG<AP>, QGS<AP>>, Coords2d> as RudaType>::ExpandType, gmem_config: GlobalMemoryConfig, ) -> <Self as RudaType>::ExpandType
pub fn __expand_get_tile<P: AttentionPartitioner>( scope: &mut Scope, this: <Self as RudaType>::ExpandType, tile: <Coords2d as RudaType>::ExpandType, tile_size: AttentionTileSize, partition_seq_q: u32, partition_head_dim: u32, ) -> <StridedTile<QG<AP>, QGS<AP>> as RudaType>::ExpandType
pub fn __expand_head_dim( scope: &mut Scope, this: <Self as RudaType>::ExpandType, ) -> <u32 as RudaType>::ExpandType
pub fn __expand_get_staged_tile<P: AttentionPartitioner>( scope: &mut Scope, this: <Self as RudaType>::ExpandType, tile: <Coords2d as RudaType>::ExpandType, tile_size: AttentionTileSize, partition_seq_q: u32, plane_dim: u32, num_planes: u32, ) -> <StridedTile<QG<AP>, QGS<AP>> as RudaType>::ExpandType
Trait Implementations§
Source§impl<AP: AttentionPrecision> RudaType for QueryReader<AP>
impl<AP: AttentionPrecision> RudaType for QueryReader<AP>
type ExpandType = QueryReaderExpand<AP>
fn __expand_inactive_value(scope: &mut Scope) -> Self::ExpandType
fn __expand_absent_reference( _scope: &mut Scope, _writable: bool, ) -> Self::ExpandType
Auto Trait Implementations§
impl<AP> Freeze for QueryReader<AP>where
View<Vector<<<<AP as AttentionSpec>::Precision as AttentionPrecision>::Query as QueryPrecision>::Global, <<<AP as AttentionSpec>::Precision as AttentionPrecision>::Query as QueryPrecision>::GlobalSize>, (u32, u32)>: Freeze,
impl<AP> RefUnwindSafe for QueryReader<AP>where
View<Vector<<<<AP as AttentionSpec>::Precision as AttentionPrecision>::Query as QueryPrecision>::Global, <<<AP as AttentionSpec>::Precision as AttentionPrecision>::Query as QueryPrecision>::GlobalSize>, (u32, u32)>: RefUnwindSafe,
impl<AP> Send for QueryReader<AP>where
View<Vector<<<<AP as AttentionSpec>::Precision as AttentionPrecision>::Query as QueryPrecision>::Global, <<<AP as AttentionSpec>::Precision as AttentionPrecision>::Query as QueryPrecision>::GlobalSize>, (u32, u32)>: Send,
impl<AP> Sync for QueryReader<AP>where
View<Vector<<<<AP as AttentionSpec>::Precision as AttentionPrecision>::Query as QueryPrecision>::Global, <<<AP as AttentionSpec>::Precision as AttentionPrecision>::Query as QueryPrecision>::GlobalSize>, (u32, u32)>: Sync,
impl<AP> Unpin for QueryReader<AP>where
View<Vector<<<<AP as AttentionSpec>::Precision as AttentionPrecision>::Query as QueryPrecision>::Global, <<<AP as AttentionSpec>::Precision as AttentionPrecision>::Query as QueryPrecision>::GlobalSize>, (u32, u32)>: Unpin,
impl<AP> UnsafeUnpin for QueryReader<AP>where
View<Vector<<<<AP as AttentionSpec>::Precision as AttentionPrecision>::Query as QueryPrecision>::Global, <<<AP as AttentionSpec>::Precision as AttentionPrecision>::Query as QueryPrecision>::GlobalSize>, (u32, u32)>: UnsafeUnpin,
impl<AP> UnwindSafe for QueryReader<AP>where
View<Vector<<<<AP as AttentionSpec>::Precision as AttentionPrecision>::Query as QueryPrecision>::Global, <<<AP as AttentionSpec>::Precision as AttentionPrecision>::Query as QueryPrecision>::GlobalSize>, (u32, u32)>: 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