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