#[repr(u32)]pub enum QuantizeType {
Undefined = 0,
Fp16 = 1,
Int8 = 2,
Int4 = 3,
}Expand description
Quantization type for vector indexes.
Variants§
Undefined = 0
No quantization.
Fp16 = 1
16-bit floating point quantization (half precision).
Int8 = 2
8-bit integer quantization.
Int4 = 3
4-bit integer quantization.
Trait Implementations§
Source§impl Clone for QuantizeType
impl Clone for QuantizeType
Source§fn clone(&self) -> QuantizeType
fn clone(&self) -> QuantizeType
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 QuantizeType
Source§impl Debug for QuantizeType
impl Debug for QuantizeType
Source§impl Display for QuantizeType
impl Display for QuantizeType
impl Eq for QuantizeType
Source§impl From<QuantizeType> for u32
impl From<QuantizeType> for u32
Source§fn from(qt: QuantizeType) -> Self
fn from(qt: QuantizeType) -> Self
Converts to this type from the input type.
Source§impl From<u32> for QuantizeType
impl From<u32> for QuantizeType
Source§impl PartialEq for QuantizeType
impl PartialEq for QuantizeType
Source§fn eq(&self, other: &QuantizeType) -> bool
fn eq(&self, other: &QuantizeType) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for QuantizeType
Auto Trait Implementations§
impl Freeze for QuantizeType
impl RefUnwindSafe for QuantizeType
impl Send for QuantizeType
impl Sync for QuantizeType
impl Unpin for QuantizeType
impl UnsafeUnpin for QuantizeType
impl UnwindSafe for QuantizeType
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