#[repr(C)]pub struct BlockQ8K { /* private fields */ }Trait Implementations§
Source§impl GgmlType for BlockQ8K
 
impl GgmlType for BlockQ8K
const DTYPE: GgmlDType = GgmlDType::Q8K
const BLCK_SIZE: usize = 256usize
type VecDotType = BlockQ8K
Source§fn vec_dot(n: usize, xs: &[Self], ys: &[Self::VecDotType]) -> Result<f32>
 
fn vec_dot(n: usize, xs: &[Self], ys: &[Self::VecDotType]) -> Result<f32>
Dot product used as a building block for quantized mat-mul.
n is the number of elements to be considered.
Source§fn vec_dot_unopt(n: usize, xs: &[Self], ys: &[Self::VecDotType]) -> Result<f32>
 
fn vec_dot_unopt(n: usize, xs: &[Self], ys: &[Self::VecDotType]) -> Result<f32>
Generic implementation of the dot product without simd optimizations.
fn from_float(xs: &[f32], ys: &mut [Self]) -> Result<()>
fn to_float(xs: &[Self], ys: &mut [f32]) -> Result<()>
fn zeros() -> Self
fn from_float_imatrix( _xs: &[f32], _ys: &mut [Self], _imatrix_weights: &[f32], _n_per_row: usize, ) -> Result<()>
impl StructuralPartialEq for BlockQ8K
Auto Trait Implementations§
impl Freeze for BlockQ8K
impl RefUnwindSafe for BlockQ8K
impl Send for BlockQ8K
impl Sync for BlockQ8K
impl Unpin for BlockQ8K
impl UnwindSafe for BlockQ8K
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
Source§impl<T> CloneToUninit for Twhere
    T: Clone,
 
impl<T> CloneToUninit for Twhere
    T: Clone,
Source§impl<T> IntoEither for T
 
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
 
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts 
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
 
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts 
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more