pub struct QMatrix {
pub rows: usize,
pub k: usize,
pub q: Vec<i8>,
pub scale: Vec<f32>,
}Expand description
A matrix rounded to INT8 row by row, in the layout of the module docs.
Fields§
§rows: usizeRows.
k: usizeValues per row.
q: Vec<i8>[rows.div_ceil(8)][k.div_ceil(8)][4][2][8].
scale: Vec<f32>max |row| / 127 for each row, so a row is its values times its scale.
Implementations§
Trait Implementations§
impl StructuralPartialEq for QMatrix
Auto Trait Implementations§
impl Freeze for QMatrix
impl RefUnwindSafe for QMatrix
impl Send for QMatrix
impl Sync for QMatrix
impl Unpin for QMatrix
impl UnsafeUnpin for QMatrix
impl UnwindSafe for QMatrix
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