pub struct TensorOutputExpand<Q: FloatLine, K: FloatLine, V: FloatLine, M: NumericLine, O: FloatLine, GA: AttentionArgs> { /* private fields */ }Expand description
Expand type for tensor output.
Implementations§
Source§impl<Q: FloatLine, K: FloatLine, V: FloatLine, M: NumericLine, O: FloatLine, GA: AttentionArgs> TensorOutputExpand<Q, K, V, M, O, GA>
impl<Q: FloatLine, K: FloatLine, V: FloatLine, M: NumericLine, O: FloatLine, GA: AttentionArgs> TensorOutputExpand<Q, K, V, M, O, GA>
pub fn __expand_write_method( self, scope: &mut Scope, coordinate: <usize as RudaType>::ExpandType, val: <Vector<O::T, O::N> as RudaType>::ExpandType, ) -> <() as RudaType>::ExpandType
pub fn __expand_shape_method( self, scope: &mut Scope, axis: <usize as RudaType>::ExpandType, ) -> <usize as RudaType>::ExpandType
pub fn __expand_stride_method( self, scope: &mut Scope, dim: <usize as RudaType>::ExpandType, ) -> <usize as RudaType>::ExpandType
pub fn __expand_rank_method( self, scope: &mut Scope, ) -> <usize as RudaType>::ExpandType
pub fn __expand_len_method( self, scope: &mut Scope, ) -> <usize as RudaType>::ExpandType
pub fn __expand_buffer_len_method( self, scope: &mut Scope, ) -> <usize as RudaType>::ExpandType
pub fn __expand_vector_size_method(self, scope: &mut Scope) -> VectorSize
pub fn __expand_new( scope: &mut Scope, state: <GA::State<Q, K, V, M, O> as RudaType>::ExpandType, ) -> <TensorOutput<Q, K, V, M, O, GA> as RudaType>::ExpandType
pub fn __expand_write( scope: &mut Scope, this: Self, coordinate: <usize as RudaType>::ExpandType, val: <Vector<O::T, O::N> as RudaType>::ExpandType, ) -> <() as RudaType>::ExpandType
pub fn __expand_shape( scope: &mut Scope, this: Self, axis: <usize as RudaType>::ExpandType, ) -> <usize as RudaType>::ExpandType
pub fn __expand_stride( scope: &mut Scope, this: Self, dim: <usize as RudaType>::ExpandType, ) -> <usize as RudaType>::ExpandType
pub fn __expand_rank( scope: &mut Scope, this: Self, ) -> <usize as RudaType>::ExpandType
pub fn __expand_len( scope: &mut Scope, this: Self, ) -> <usize as RudaType>::ExpandType
pub fn __expand_buffer_len( scope: &mut Scope, this: Self, ) -> <usize as RudaType>::ExpandType
pub fn __expand_vector_size(scope: &mut Scope, this: Self) -> VectorSize
Trait Implementations§
Source§impl<Q: FloatLine, K: FloatLine, V: FloatLine, M: NumericLine, O: FloatLine, GA: AttentionArgs> Clone for TensorOutputExpand<Q, K, V, M, O, GA>
impl<Q: FloatLine, K: FloatLine, V: FloatLine, M: NumericLine, O: FloatLine, GA: AttentionArgs> Clone for TensorOutputExpand<Q, K, V, M, O, GA>
Source§impl<Q: FloatLine, K: FloatLine, V: FloatLine, M: NumericLine, O: FloatLine, GA: AttentionArgs> IntoMut for TensorOutputExpand<Q, K, V, M, O, GA>
impl<Q: FloatLine, K: FloatLine, V: FloatLine, M: NumericLine, O: FloatLine, GA: AttentionArgs> IntoMut for TensorOutputExpand<Q, K, V, M, O, GA>
Source§fn into_mut(self, scope: &mut Scope) -> Self
fn into_mut(self, scope: &mut Scope) -> Self
Convert the variable into a potentially new mutable variable in
scope, copying if needed.fn expand_inactive_value(self, _scope: &mut Scope) -> Self
fn expand_reference(self, _scope: &mut Scope, _writable: bool) -> Self
fn expand_absent_reference(self, _scope: &mut Scope, _writable: bool) -> Self
fn expand_reference_value(self, _scope: &mut Scope) -> Self
fn expand_reborrow(self, _scope: &mut Scope, _writable: bool) -> Self
fn expand_return_reference(self, scope: &mut Scope, writable: bool) -> Self
fn expand_deref(self, _scope: &mut Scope) -> Self
Source§impl<Q: FloatLine, K: FloatLine, V: FloatLine, M: NumericLine, O: FloatLine, GA: AttentionArgs> RudaDebug for TensorOutputExpand<Q, K, V, M, O, GA>
impl<Q: FloatLine, K: FloatLine, V: FloatLine, M: NumericLine, O: FloatLine, GA: AttentionArgs> RudaDebug for TensorOutputExpand<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: FloatLine, K: FloatLine, V: FloatLine, M: NumericLine, O: FloatLine, MA: AttentionArgs> VectorizedExpand for TensorOutputExpand<Q, K, V, M, O, MA>
impl<Q: FloatLine, K: FloatLine, V: FloatLine, M: NumericLine, O: FloatLine, MA: AttentionArgs> VectorizedExpand for TensorOutputExpand<Q, K, V, M, O, MA>
fn vector_size(&self) -> VectorSize
fn __expand_vector_size_method(&self, _scope: &mut Scope) -> usize
Source§impl<Q: FloatLine, K: FloatLine, V: FloatLine, M: NumericLine, O: FloatLine, MA: AttentionArgs> VirtualTensorOperationsExpand<<O as FloatLine>::T, <O as FloatLine>::N> for TensorOutputExpand<Q, K, V, M, O, MA>
impl<Q: FloatLine, K: FloatLine, V: FloatLine, M: NumericLine, O: FloatLine, MA: AttentionArgs> VirtualTensorOperationsExpand<<O as FloatLine>::T, <O as FloatLine>::N> for TensorOutputExpand<Q, K, V, M, O, MA>
fn __expand_read_method( &self, _scope: &mut Scope, _index: NativeExpand<usize>, ) -> NativeExpand<Vector<O::T, O::N>>
fn __expand_read_window_method( &self, _context: &mut Scope, _start: NativeExpand<usize>, _end: NativeExpand<usize>, ) -> SliceExpand<Vector<O::T, O::N>, ReadOnly>
fn __expand_write_method( &self, scope: &mut Scope, index: NativeExpand<usize>, val: NativeExpand<Vector<O::T, O::N>>, )
fn __expand_shape_method( &self, scope: &mut Scope, axis: NativeExpand<usize>, ) -> NativeExpand<usize>
fn __expand_stride_method( &self, scope: &mut Scope, axis: NativeExpand<usize>, ) -> NativeExpand<usize>
fn __expand_rank_method(&self, scope: &mut Scope) -> NativeExpand<usize>
fn __expand_len_method(&self, scope: &mut Scope) -> NativeExpand<usize>
fn __expand_buffer_len_method(&self, scope: &mut Scope) -> NativeExpand<usize>
fn __expand_as_tensor_map_method( &self, scope: &mut Scope, ) -> ComptimeOptionExpand<TensorMap<O::T, Tiled>>
Auto Trait Implementations§
impl<Q, K, V, M, O, GA> Freeze for TensorOutputExpand<Q, K, V, M, O, GA>
impl<Q, K, V, M, O, GA> RefUnwindSafe for TensorOutputExpand<Q, K, V, M, O, GA>
impl<Q, K, V, M, O, GA> Send for TensorOutputExpand<Q, K, V, M, O, GA>
impl<Q, K, V, M, O, GA> Sync for TensorOutputExpand<Q, K, V, M, O, GA>
impl<Q, K, V, M, O, GA> Unpin for TensorOutputExpand<Q, K, V, M, O, GA>
impl<Q, K, V, M, O, GA> UnsafeUnpin for TensorOutputExpand<Q, K, V, M, O, GA>
impl<Q, K, V, M, O, GA> UnwindSafe for TensorOutputExpand<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