pub enum QuantizedBlock {
Q8(Q8Block),
Q4(Q4Block),
Q4_1(Q4_1Block),
F16(Vec<f16>),
F32(Vec<f32>),
}Expand description
Generic quantized block enum.
Variants§
Q8(Q8Block)
Q8_0 block.
Q4(Q4Block)
Q4_0 block.
Q4_1(Q4_1Block)
Q4_1 block.
F16(Vec<f16>)
F16 values (block size 1).
F32(Vec<f32>)
F32 values (original).
Implementations§
Source§impl QuantizedBlock
impl QuantizedBlock
Sourcepub fn quant_type(&self) -> QuantType
pub fn quant_type(&self) -> QuantType
Returns the quantization type of this block.
Trait Implementations§
Source§impl Clone for QuantizedBlock
impl Clone for QuantizedBlock
Source§fn clone(&self) -> QuantizedBlock
fn clone(&self) -> QuantizedBlock
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for QuantizedBlock
impl RefUnwindSafe for QuantizedBlock
impl Send for QuantizedBlock
impl Sync for QuantizedBlock
impl Unpin for QuantizedBlock
impl UnwindSafe for QuantizedBlock
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