pub struct QueryTile<AP: AttentionPrecision, AM: AttentionMatmul<AP>> {
pub fragment: AM::Query,
}Expand description
Query input to the Tile Attention
Fields§
§fragment: AM::QueryImplementations§
Source§impl<AP: AttentionPrecision, AM: AttentionMatmul<AP>> QueryTile<AP, AM>
impl<AP: AttentionPrecision, AM: AttentionMatmul<AP>> QueryTile<AP, AM>
pub fn new(config: AM::Config) -> QueryTile<AP, AM>
Sourcepub fn update(&mut self, tile: &StridedTile<QG<AP>>)
pub fn update(&mut self, tile: &StridedTile<QG<AP>>)
Loads the query data into the fragment
pub fn __expand_new( scope: &mut Scope, config: AM::Config, ) -> <QueryTile<AP, AM> as CubeType>::ExpandType
pub fn __expand_update( scope: &mut Scope, this: <Self as CubeType>::ExpandType, tile: <StridedTile<QG<AP>> as CubeType>::ExpandType, ) -> <() as CubeType>::ExpandType
Trait Implementations§
Source§impl<AP: AttentionPrecision, AM: AttentionMatmul<AP>> CubeType for QueryTile<AP, AM>
impl<AP: AttentionPrecision, AM: AttentionMatmul<AP>> CubeType for QueryTile<AP, AM>
type ExpandType = QueryTileExpand<AP, AM>
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, AM> Freeze for QueryTile<AP, AM>
impl<AP, AM> RefUnwindSafe for QueryTile<AP, AM>
impl<AP, AM> Send for QueryTile<AP, AM>
impl<AP, AM> Sync for QueryTile<AP, AM>
impl<AP, AM> Unpin for QueryTile<AP, AM>
impl<AP, AM> UnsafeUnpin for QueryTile<AP, AM>
impl<AP, AM> UnwindSafe for QueryTile<AP, AM>
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