pub struct TensorKeyExpand<Q: Float, K: Float, V: Float, M: Numeric, O: Float, GA: AttentionArgs> { /* private fields */ }Implementations§
Source§impl<Q: Float, K: Float, V: Float, M: Numeric, O: Float, MA: AttentionArgs> TensorKeyExpand<Q, K, V, M, O, MA>
impl<Q: Float, K: Float, V: Float, M: Numeric, O: Float, MA: AttentionArgs> TensorKeyExpand<Q, K, V, M, O, MA>
pub fn __expand_read_window_method( self, scope: &mut Scope, start: <u32 as CubeType>::ExpandType, end: <u32 as CubeType>::ExpandType, ) -> <Slice<Line<K>> as CubeType>::ExpandType ⓘ
pub fn __expand_read_method( self, scope: &mut Scope, coordinate: <u32 as CubeType>::ExpandType, ) -> <Line<K> as CubeType>::ExpandType
pub fn __expand_shape_method( self, scope: &mut Scope, axis: <u32 as CubeType>::ExpandType, ) -> <u32 as CubeType>::ExpandType
pub fn __expand_stride_method( self, scope: &mut Scope, axis: <u32 as CubeType>::ExpandType, ) -> <u32 as CubeType>::ExpandType
pub fn __expand_rank_method( self, scope: &mut Scope, ) -> <u32 as CubeType>::ExpandType
pub fn __expand_len_method( self, scope: &mut Scope, ) -> <u32 as CubeType>::ExpandType
pub fn __expand_buffer_len_method( self, scope: &mut Scope, ) -> <u32 as CubeType>::ExpandType
pub fn __expand_as_tensor_map_method( self, scope: &mut Scope, ) -> <CubeOption<TensorMap<K>> as CubeType>::ExpandType
pub fn __expand_line_size_method(self, scope: &mut Scope) -> u32
pub fn __expand_new( scope: &mut Scope, state: <MA::State<Q, K, V, M, O> as CubeType>::ExpandType, ) -> <TensorKey<Q, K, V, M, O, MA> as CubeType>::ExpandType
pub fn __expand_read_window( scope: &mut Scope, this: Self, start: <u32 as CubeType>::ExpandType, end: <u32 as CubeType>::ExpandType, ) -> <Slice<Line<K>> as CubeType>::ExpandType ⓘ
pub fn __expand_read( scope: &mut Scope, this: Self, coordinate: <u32 as CubeType>::ExpandType, ) -> <Line<K> as CubeType>::ExpandType
pub fn __expand_shape( scope: &mut Scope, this: Self, axis: <u32 as CubeType>::ExpandType, ) -> <u32 as CubeType>::ExpandType
pub fn __expand_stride( scope: &mut Scope, this: Self, axis: <u32 as CubeType>::ExpandType, ) -> <u32 as CubeType>::ExpandType
pub fn __expand_rank( scope: &mut Scope, this: Self, ) -> <u32 as CubeType>::ExpandType
pub fn __expand_len( scope: &mut Scope, this: Self, ) -> <u32 as CubeType>::ExpandType
pub fn __expand_buffer_len( scope: &mut Scope, this: Self, ) -> <u32 as CubeType>::ExpandType
pub fn __expand_as_tensor_map( scope: &mut Scope, this: Self, ) -> <CubeOption<TensorMap<K>> as CubeType>::ExpandType
pub fn __expand_line_size(scope: &mut Scope, this: Self) -> u32
Trait Implementations§
Source§impl<Q: Float, K: Float, V: Float, M: Numeric, O: Float, GA: AttentionArgs> Clone for TensorKeyExpand<Q, K, V, M, O, GA>
impl<Q: Float, K: Float, V: Float, M: Numeric, O: Float, GA: AttentionArgs> Clone for TensorKeyExpand<Q, K, V, M, O, GA>
Source§impl<Q: Float, K: Float, V: Float, M: Numeric, O: Float, GA: AttentionArgs> CubeDebug for TensorKeyExpand<Q, K, V, M, O, GA>
impl<Q: Float, K: Float, V: Float, M: Numeric, O: Float, GA: AttentionArgs> CubeDebug for TensorKeyExpand<Q, K, V, M, O, GA>
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<Q: Float, K: Float, V: Float, M: Numeric, O: Float, GA: AttentionArgs> IntoMut for TensorKeyExpand<Q, K, V, M, O, GA>
impl<Q: Float, K: Float, V: Float, M: Numeric, O: Float, GA: AttentionArgs> IntoMut for TensorKeyExpand<Q, K, V, M, O, GA>
Source§impl<Q: Float, K: Float, V: Float, M: Numeric, O: Float, MA: AttentionArgs> LinedExpand for TensorKeyExpand<Q, K, V, M, O, MA>
impl<Q: Float, K: Float, V: Float, M: Numeric, O: Float, MA: AttentionArgs> LinedExpand for TensorKeyExpand<Q, K, V, M, O, MA>
Source§impl<Q: Float, K: Float, V: Float, M: Numeric, O: Float, MA: AttentionArgs> VirtualTensorOperationsExpand<K> for TensorKeyExpand<Q, K, V, M, O, MA>
impl<Q: Float, K: Float, V: Float, M: Numeric, O: Float, MA: AttentionArgs> VirtualTensorOperationsExpand<K> for TensorKeyExpand<Q, K, V, M, O, MA>
fn __expand_read_method( &self, scope: &mut Scope, index: ExpandElementTyped<u32>, ) -> ExpandElementTyped<Line<K>>
fn __expand_read_window_method( &self, context: &mut Scope, start: ExpandElementTyped<u32>, end: ExpandElementTyped<u32>, ) -> SliceExpand<Line<K>, ReadOnly>
fn __expand_write_method( &self, _scope: &mut Scope, _index: ExpandElementTyped<u32>, _value: ExpandElementTyped<Line<K>>, )
fn __expand_shape_method( &self, scope: &mut Scope, axis: ExpandElementTyped<u32>, ) -> ExpandElementTyped<u32>
fn __expand_stride_method( &self, scope: &mut Scope, axis: ExpandElementTyped<u32>, ) -> ExpandElementTyped<u32>
fn __expand_rank_method(&self, scope: &mut Scope) -> ExpandElementTyped<u32>
fn __expand_len_method(&self, scope: &mut Scope) -> ExpandElementTyped<u32>
fn __expand_buffer_len_method( &self, scope: &mut Scope, ) -> ExpandElementTyped<u32>
fn __expand_as_tensor_map_method( &self, scope: &mut Scope, ) -> CubeOptionExpand<TensorMap<K>>
Auto Trait Implementations§
impl<Q, K, V, M, O, GA> Freeze for TensorKeyExpand<Q, K, V, M, O, GA>
impl<Q, K, V, M, O, GA> RefUnwindSafe for TensorKeyExpand<Q, K, V, M, O, GA>
impl<Q, K, V, M, O, GA> Send for TensorKeyExpand<Q, K, V, M, O, GA>
impl<Q, K, V, M, O, GA> Sync for TensorKeyExpand<Q, K, V, M, O, GA>
impl<Q, K, V, M, O, GA> Unpin for TensorKeyExpand<Q, K, V, M, O, GA>
impl<Q, K, V, M, O, GA> UnsafeUnpin for TensorKeyExpand<Q, K, V, M, O, GA>
impl<Q, K, V, M, O, GA> UnwindSafe for TensorKeyExpand<Q, K, V, M, O, GA>
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