pub struct GraphW<'a> {
pub idx: usize,
pub kind: u8,
pub row_scale: &'a [f32],
pub data: &'a [f32],
}Expand description
One weight in the whole-token graph: tensor idx + a codec tag (0=q8_row, 1=q1, 2=q4_tiled, 3=q1t, 4=f32) + per-row scales (q8_row only) + the raw f32 data (kind 4 only — small unquantized projections like GDN in_proj_a/b).
Fields§
§idx: usize§kind: u8§row_scale: &'a [f32]§data: &'a [f32]Auto Trait Implementations§
impl<'a> Freeze for GraphW<'a>
impl<'a> RefUnwindSafe for GraphW<'a>
impl<'a> Send for GraphW<'a>
impl<'a> Sync for GraphW<'a>
impl<'a> Unpin for GraphW<'a>
impl<'a> UnsafeUnpin for GraphW<'a>
impl<'a> UnwindSafe for GraphW<'a>
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