pub struct QueryReader<AP: AttentionPrecision> { /* private fields */ }Implementations§
Source§impl<AP: AttentionPrecision> QueryReader<AP>
impl<AP: AttentionPrecision> QueryReader<AP>
pub fn new(q_offset: u32, query: View<Line<QG<AP>>, Coords2d>) -> Self
pub fn get_tile<S: StageAttentionConfig>( &self, tile: Coords2d, config: S, ) -> StridedTile<QG<AP>>
pub fn __expand_new( scope: &mut Scope, q_offset: <u32 as CubeType>::ExpandType, query: <View<Line<QG<AP>>, Coords2d> as CubeType>::ExpandType, ) -> <Self as CubeType>::ExpandType
pub fn __expand_get_tile<S: StageAttentionConfig>( scope: &mut Scope, this: <Self as CubeType>::ExpandType, tile: <Coords2d as CubeType>::ExpandType, config: S, ) -> <StridedTile<QG<AP>> as CubeType>::ExpandType
Trait Implementations§
Source§impl<AP: AttentionPrecision> CubeType for QueryReader<AP>
impl<AP: AttentionPrecision> CubeType for QueryReader<AP>
type ExpandType = QueryReaderExpand<AP>
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.
Auto Trait Implementations§
impl<AP> Freeze for QueryReader<AP>where
View<Line<<<<AP as AttentionSpec>::Precision as AttentionPrecision>::Query as QueryPrecision>::Global>, (u32, u32)>: Freeze,
impl<AP> RefUnwindSafe for QueryReader<AP>where
View<Line<<<<AP as AttentionSpec>::Precision as AttentionPrecision>::Query as QueryPrecision>::Global>, (u32, u32)>: RefUnwindSafe,
impl<AP> Send for QueryReader<AP>where
View<Line<<<<AP as AttentionSpec>::Precision as AttentionPrecision>::Query as QueryPrecision>::Global>, (u32, u32)>: Send,
impl<AP> Sync for QueryReader<AP>where
View<Line<<<<AP as AttentionSpec>::Precision as AttentionPrecision>::Query as QueryPrecision>::Global>, (u32, u32)>: Sync,
impl<AP> Unpin for QueryReader<AP>where
View<Line<<<<AP as AttentionSpec>::Precision as AttentionPrecision>::Query as QueryPrecision>::Global>, (u32, u32)>: Unpin,
impl<AP> UnsafeUnpin for QueryReader<AP>where
View<Line<<<<AP as AttentionSpec>::Precision as AttentionPrecision>::Query as QueryPrecision>::Global>, (u32, u32)>: UnsafeUnpin,
impl<AP> UnwindSafe for QueryReader<AP>where
View<Line<<<<AP as AttentionSpec>::Precision as AttentionPrecision>::Query as QueryPrecision>::Global>, (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