#[non_exhaustive]pub enum Quantization {
F32,
F16,
I8,
}Expand description
In-memory format of stored vectors. Queries stay f32.
F32 is exact, F16 halves memory, I8 quarters it with one
f32 scale per vector. Default F32.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Trait Implementations§
Source§impl Clone for Quantization
impl Clone for Quantization
Source§fn clone(&self) -> Quantization
fn clone(&self) -> Quantization
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for Quantization
Source§impl Debug for Quantization
impl Debug for Quantization
Source§impl Default for Quantization
impl Default for Quantization
Source§fn default() -> Quantization
fn default() -> Quantization
Returns the “default value” for a type. Read more
impl Eq for Quantization
Source§impl PartialEq for Quantization
impl PartialEq for Quantization
impl StructuralPartialEq for Quantization
Auto Trait Implementations§
impl Forget for Quantization
impl Freeze for Quantization
impl Move for Quantization
impl RefUnwindSafe for Quantization
impl Send for Quantization
impl Sync for Quantization
impl Unpin for Quantization
impl UnsafeUnpin for Quantization
impl UnwindSafe for Quantization
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