pub struct AttnRun {
pub q: Vec<f32>,
pub kv_rows: Vec<f32>,
pub idx: Vec<i32>,
pub topk: usize,
pub o: Vec<f32>,
pub out: Vec<f32>,
}Expand description
2026-09-25: The intermediates the tests compare, plus the output. o is
sparse_attn’s result before the inverse rotation, the golden’s sa_o.
Fields§
§q: Vec<f32>§kv_rows: Vec<f32>§idx: Vec<i32>§topk: usize§o: Vec<f32>§out: Vec<f32>Auto Trait Implementations§
impl Freeze for AttnRun
impl RefUnwindSafe for AttnRun
impl Send for AttnRun
impl Sync for AttnRun
impl Unpin for AttnRun
impl UnwindSafe for AttnRun
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