pub struct KvCacheAppendDescriptor {
pub batch_size: i32,
pub num_heads: i32,
pub new_len: i32,
pub max_cache_len: i32,
pub d_k: i32,
pub d_v: i32,
pub element: ElementKind,
}Expand description
Descriptor for a KV-cache append op.
Fields§
§batch_size: i32Batch size (B).
num_heads: i32Number of attention heads (H).
new_len: i32Number of new K/V rows to append per sample (L_new).
max_cache_len: i32Capacity of the cache along the sequence axis (L_max).
d_k: i32Head dimension of K (D_k).
d_v: i32Head dimension of V (D_v). May differ from d_k.
element: ElementKindElement type — must match the plan’s type parameter.
Trait Implementations§
Source§impl Clone for KvCacheAppendDescriptor
impl Clone for KvCacheAppendDescriptor
Source§fn clone(&self) -> KvCacheAppendDescriptor
fn clone(&self) -> KvCacheAppendDescriptor
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 KvCacheAppendDescriptor
Auto Trait Implementations§
impl Freeze for KvCacheAppendDescriptor
impl RefUnwindSafe for KvCacheAppendDescriptor
impl Send for KvCacheAppendDescriptor
impl Sync for KvCacheAppendDescriptor
impl Unpin for KvCacheAppendDescriptor
impl UnsafeUnpin for KvCacheAppendDescriptor
impl UnwindSafe for KvCacheAppendDescriptor
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