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