#[repr(u32)]pub enum QuantizeType {
Undefined = 0,
Fp16 = 1,
Int8 = 2,
Int4 = 3,
Rabitq = 4,
Pq = 5,
}Expand description
Scalar/vector quantization mode.
Variants§
Trait Implementations§
Source§impl Clone for QuantizeType
impl Clone for QuantizeType
impl Copy for QuantizeType
Source§impl Debug for QuantizeType
impl Debug for QuantizeType
Source§impl<'de> Deserialize<'de> for QuantizeType
impl<'de> Deserialize<'de> for QuantizeType
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
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(value: QuantizeType) -> Self
fn from(value: QuantizeType) -> Self
Converts to this type from the input type.
Source§impl From<u32> for QuantizeType
impl From<u32> for QuantizeType
Source§impl Hash for QuantizeType
impl Hash for QuantizeType
Source§impl PartialEq for QuantizeType
impl PartialEq for QuantizeType
Source§impl Serialize for QuantizeType
impl Serialize for QuantizeType
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
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