pub struct SymmetricQuantization<E: Float + Send + Sync, Q: PrimInt + Send + Sync> {
pub scale: E,
/* private fields */
}Expand description
Symmetric quantization scheme.
Fields§
§scale: EThe scaling factor.
Implementations§
Trait Implementations§
Source§impl<E: Clone + Float + Send + Sync, Q: Clone + PrimInt + Send + Sync> Clone for SymmetricQuantization<E, Q>
impl<E: Clone + Float + Send + Sync, Q: Clone + PrimInt + Send + Sync> Clone for SymmetricQuantization<E, Q>
Source§fn clone(&self) -> SymmetricQuantization<E, Q>
fn clone(&self) -> SymmetricQuantization<E, Q>
Returns a copy 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 moreSource§impl<E: Debug + Float + Send + Sync, Q: Debug + PrimInt + Send + Sync> Debug for SymmetricQuantization<E, Q>
impl<E: Debug + Float + Send + Sync, Q: Debug + PrimInt + Send + Sync> Debug for SymmetricQuantization<E, Q>
Source§impl<'de, E, Q: PrimInt + Send + Sync> Deserialize<'de> for SymmetricQuantization<E, Q>
impl<'de, E, Q: PrimInt + Send + Sync> Deserialize<'de> for SymmetricQuantization<E, Q>
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<E: Float + Send + Sync, Q: PrimInt + Send + Sync> PartialEq for SymmetricQuantization<E, Q>
impl<E: Float + Send + Sync, Q: PrimInt + Send + Sync> PartialEq for SymmetricQuantization<E, Q>
Source§impl<E: Float + Send + Sync, Q: PrimInt + Send + Sync> Quantization<E, Q> for SymmetricQuantization<E, Q>
impl<E: Float + Send + Sync, Q: PrimInt + Send + Sync> Quantization<E, Q> for SymmetricQuantization<E, Q>
impl<E: Copy + Float + Send + Sync, Q: Copy + PrimInt + Send + Sync> Copy for SymmetricQuantization<E, Q>
impl<E: Float + Send + Sync, Q: PrimInt + Send + Sync> Eq for SymmetricQuantization<E, Q>
Auto Trait Implementations§
impl<E, Q> Freeze for SymmetricQuantization<E, Q>where
E: Freeze,
impl<E, Q> RefUnwindSafe for SymmetricQuantization<E, Q>where
E: RefUnwindSafe,
Q: RefUnwindSafe,
impl<E, Q> Send for SymmetricQuantization<E, Q>
impl<E, Q> Sync for SymmetricQuantization<E, Q>
impl<E, Q> Unpin for SymmetricQuantization<E, Q>
impl<E, Q> UnwindSafe for SymmetricQuantization<E, Q>where
E: UnwindSafe,
Q: UnwindSafe,
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.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