Struct candle_core::quantized::k_quants::BlockQ5_1
source · #[repr(C)]pub struct BlockQ5_1 { /* private fields */ }
Trait Implementations§
source§impl GgmlType for BlockQ5_1
impl GgmlType for BlockQ5_1
const DTYPE: GgmlDType = GgmlDType::Q5_1
const BLCK_SIZE: usize = 32usize
type VecDotType = BlockQ8_1
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
source§impl PartialEq for BlockQ5_1
impl PartialEq for BlockQ5_1
impl StructuralPartialEq for BlockQ5_1
Auto Trait Implementations§
impl Freeze for BlockQ5_1
impl RefUnwindSafe for BlockQ5_1
impl Send for BlockQ5_1
impl Sync for BlockQ5_1
impl Unpin for BlockQ5_1
impl UnwindSafe for BlockQ5_1
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