pub enum KeyValueTileExpand<AP: AttentionPrecision, AM: AttentionMatmul<AP>> {
Reuse(<ReuseKV<AP, AM> as CubeType>::ExpandType),
Key(<Key<AP, AM> as CubeType>::ExpandType),
Value(<Value<AP, AM> as CubeType>::ExpandType),
}Variants§
Reuse(<ReuseKV<AP, AM> as CubeType>::ExpandType)
Key(<Key<AP, AM> as CubeType>::ExpandType)
Value(<Value<AP, AM> as CubeType>::ExpandType)
Implementations§
Source§impl<AP: AttentionPrecision, AM: AttentionMatmul<AP>> KeyValueTileExpand<AP, AM>
impl<AP: AttentionPrecision, AM: AttentionMatmul<AP>> KeyValueTileExpand<AP, AM>
pub fn __expand_key_method( self, scope: &mut Scope, ) -> <AM::KeyValue as CubeType>::ExpandType
pub fn __expand_key_mut_method( self, scope: &mut Scope, ) -> <AM::KeyValue as CubeType>::ExpandType
pub fn __expand_value_method( self, scope: &mut Scope, ) -> <AM::KeyValue as CubeType>::ExpandType
pub fn __expand_value_mut_method( self, scope: &mut Scope, ) -> <AM::KeyValue as CubeType>::ExpandType
pub fn __expand_new_key_value(scope: &mut Scope, config: AM::Config) -> Self
pub fn __expand_new_key(scope: &mut Scope, config: AM::Config) -> Self
pub fn __expand_new_value(scope: &mut Scope, config: AM::Config) -> Self
pub fn __expand_key( scope: &mut Scope, this: Self, ) -> <AM::KeyValue as CubeType>::ExpandType
pub fn __expand_key_mut( scope: &mut Scope, this: Self, ) -> <AM::KeyValue as CubeType>::ExpandType
pub fn __expand_value( scope: &mut Scope, this: Self, ) -> <AM::KeyValue as CubeType>::ExpandType
pub fn __expand_value_mut( scope: &mut Scope, this: Self, ) -> <AM::KeyValue as CubeType>::ExpandType
Trait Implementations§
Source§impl<AP: AttentionPrecision, AM: AttentionMatmul<AP>> Clone for KeyValueTileExpand<AP, AM>
impl<AP: AttentionPrecision, AM: AttentionMatmul<AP>> Clone for KeyValueTileExpand<AP, AM>
Source§impl<AP: AttentionPrecision, AM: AttentionMatmul<AP>> CubeDebug for KeyValueTileExpand<AP, AM>
impl<AP: AttentionPrecision, AM: AttentionMatmul<AP>> CubeDebug for KeyValueTileExpand<AP, AM>
Source§fn set_debug_name(&self, scope: &mut Scope, name: &'static str)
fn set_debug_name(&self, scope: &mut Scope, name: &'static str)
Set the debug name of this type’s expansion. Should do nothing for types that don’t appear
at runtime
Source§impl<AP: AttentionPrecision, AM: AttentionMatmul<AP>> IntoMut for KeyValueTileExpand<AP, AM>
impl<AP: AttentionPrecision, AM: AttentionMatmul<AP>> IntoMut for KeyValueTileExpand<AP, AM>
Auto Trait Implementations§
impl<AP, AM> Freeze for KeyValueTileExpand<AP, AM>where
<ReuseKV<AP, AM> as CubeType>::ExpandType: Freeze,
<Key<AP, AM> as CubeType>::ExpandType: Freeze,
<Value<AP, AM> as CubeType>::ExpandType: Freeze,
impl<AP, AM> RefUnwindSafe for KeyValueTileExpand<AP, AM>where
<ReuseKV<AP, AM> as CubeType>::ExpandType: RefUnwindSafe,
<Key<AP, AM> as CubeType>::ExpandType: RefUnwindSafe,
<Value<AP, AM> as CubeType>::ExpandType: RefUnwindSafe,
impl<AP, AM> Send for KeyValueTileExpand<AP, AM>where
<ReuseKV<AP, AM> as CubeType>::ExpandType: Send,
<Key<AP, AM> as CubeType>::ExpandType: Send,
<Value<AP, AM> as CubeType>::ExpandType: Send,
impl<AP, AM> Sync for KeyValueTileExpand<AP, AM>where
<ReuseKV<AP, AM> as CubeType>::ExpandType: Sync,
<Key<AP, AM> as CubeType>::ExpandType: Sync,
<Value<AP, AM> as CubeType>::ExpandType: Sync,
impl<AP, AM> Unpin for KeyValueTileExpand<AP, AM>where
<ReuseKV<AP, AM> as CubeType>::ExpandType: Unpin,
<Key<AP, AM> as CubeType>::ExpandType: Unpin,
<Value<AP, AM> as CubeType>::ExpandType: Unpin,
impl<AP, AM> UnsafeUnpin for KeyValueTileExpand<AP, AM>where
<ReuseKV<AP, AM> as CubeType>::ExpandType: UnsafeUnpin,
<Key<AP, AM> as CubeType>::ExpandType: UnsafeUnpin,
<Value<AP, AM> as CubeType>::ExpandType: UnsafeUnpin,
impl<AP, AM> UnwindSafe for KeyValueTileExpand<AP, AM>where
<ReuseKV<AP, AM> as CubeType>::ExpandType: UnwindSafe,
<Key<AP, AM> as CubeType>::ExpandType: UnwindSafe,
<Value<AP, AM> as CubeType>::ExpandType: 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