pub struct SlidingWindowAttentionConfig {Show 23 fields
pub batch: usize,
pub query_len: usize,
pub key_len: usize,
pub heads: usize,
pub kv_heads: usize,
pub head_dim: usize,
pub query_start: usize,
pub key_start: usize,
pub window: usize,
pub query_batch_stride: usize,
pub key_batch_stride: usize,
pub value_batch_stride: usize,
pub output_batch_stride: usize,
pub query_sequence_stride: usize,
pub key_sequence_stride: usize,
pub value_sequence_stride: usize,
pub output_sequence_stride: usize,
pub query_head_stride: usize,
pub key_head_stride: usize,
pub value_head_stride: usize,
pub output_head_stride: usize,
pub scale: f32,
pub output_scale: f32,
}Fields§
§batch: usize§query_len: usize§key_len: usize§heads: usize§kv_heads: usize§head_dim: usize§query_start: usize§key_start: usize§window: usize§query_batch_stride: usize§key_batch_stride: usize§value_batch_stride: usize§output_batch_stride: usize§query_sequence_stride: usize§key_sequence_stride: usize§value_sequence_stride: usize§output_sequence_stride: usize§query_head_stride: usize§key_head_stride: usize§value_head_stride: usize§output_head_stride: usize§scale: f32§output_scale: f32Trait Implementations§
Source§impl Clone for SlidingWindowAttentionConfig
impl Clone for SlidingWindowAttentionConfig
Source§fn clone(&self) -> SlidingWindowAttentionConfig
fn clone(&self) -> SlidingWindowAttentionConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for SlidingWindowAttentionConfig
Source§impl Debug for SlidingWindowAttentionConfig
impl Debug for SlidingWindowAttentionConfig
Source§impl PartialEq for SlidingWindowAttentionConfig
impl PartialEq for SlidingWindowAttentionConfig
Source§fn eq(&self, other: &SlidingWindowAttentionConfig) -> bool
fn eq(&self, other: &SlidingWindowAttentionConfig) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for SlidingWindowAttentionConfig
Auto Trait Implementations§
impl Freeze for SlidingWindowAttentionConfig
impl RefUnwindSafe for SlidingWindowAttentionConfig
impl Send for SlidingWindowAttentionConfig
impl Sync for SlidingWindowAttentionConfig
impl Unpin for SlidingWindowAttentionConfig
impl UnsafeUnpin for SlidingWindowAttentionConfig
impl UnwindSafe for SlidingWindowAttentionConfig
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