pub struct Q1gRepack {
pub data: Vec<u8>,
pub groups: usize,
pub differing: usize,
pub max_rel: f64,
pub over_tol: usize,
}Expand description
Outcome of a q1 → q1g repack (repack_q1_to_q1g).
Fields§
§data: Vec<u8>The q1g payload. Always built: a group whose four tile scales
differ carries its representative (see repack_q1_to_q1g), so the
caller decides from the counts whether to keep it.
groups: usize128-groups in the tensor.
differing: usizeGroups whose four 32-tile scales are NOT byte-identical — the only groups whose decoded weights differ from the source.
max_rel: f64Largest |s_tile − s_group| / s_group over the differing groups
(0 when none differ; infinite when the representative is zero or
a scale is non-finite).
over_tol: usizeDiffering groups beyond the caller’s relative tolerance.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Q1gRepack
impl RefUnwindSafe for Q1gRepack
impl Send for Q1gRepack
impl Sync for Q1gRepack
impl Unpin for Q1gRepack
impl UnsafeUnpin for Q1gRepack
impl UnwindSafe for Q1gRepack
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