pub struct KdaSeqState {
pub conv: DevicePtr,
pub recurrent: DevicePtr,
}Expand description
2026-09-25: The per-sequence state a KDA layer carries. The kernels update both buffers in place.
The conv buffer holds conv_kernel slots per channel. The conv kernels shift the window left
and write the new input into the last slot before convolving, so slot 0 is shifted out
unread. A state kept as conv_kernel - 1 slots (the golden generators’ layout) maps to
slots 1..conv_kernel here, before the shift.
Fields§
§conv: DevicePtr2026-09-25: [conv_dim, conv_kernel] FP32.
recurrent: DevicePtr2026-09-25: [heads, head_dim, head_dim] FP32, K-major (S[k * head_dim + v]).
Trait Implementations§
Source§impl Clone for KdaSeqState
impl Clone for KdaSeqState
Source§fn clone(&self) -> KdaSeqState
fn clone(&self) -> KdaSeqState
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for KdaSeqState
impl Debug for KdaSeqState
impl Copy for KdaSeqState
Auto Trait Implementations§
impl Freeze for KdaSeqState
impl RefUnwindSafe for KdaSeqState
impl Send for KdaSeqState
impl Sync for KdaSeqState
impl Unpin for KdaSeqState
impl UnwindSafe for KdaSeqState
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