pub struct Key<AP: AttentionPrecision, AM: AttentionMatmul<AP>> {
pub fragment: AM::KeyValue,
}Fields§
§fragment: AM::KeyValueImplementations§
Source§impl<AP: AttentionPrecision, AM: AttentionMatmul<AP>> Key<AP, AM>
impl<AP: AttentionPrecision, AM: AttentionMatmul<AP>> Key<AP, AM>
pub fn new(config: AM::Config) -> Self
pub fn __expand_new( scope: &mut Scope, config: AM::Config, ) -> <Self as CubeType>::ExpandType
Trait Implementations§
Source§impl<AP: AttentionPrecision, AM: AttentionMatmul<AP>> CubeType for Key<AP, AM>
impl<AP: AttentionPrecision, AM: AttentionMatmul<AP>> CubeType for Key<AP, AM>
type ExpandType = KeyExpand<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 Key<AP, AM>
impl<AP, AM> RefUnwindSafe for Key<AP, AM>
impl<AP, AM> Send for Key<AP, AM>
impl<AP, AM> Sync for Key<AP, AM>
impl<AP, AM> Unpin for Key<AP, AM>
impl<AP, AM> UnsafeUnpin for Key<AP, AM>
impl<AP, AM> UnwindSafe for Key<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