pub enum QuantScheme {
Symmetric,
Asymmetric,
}Expand description
Quantization scheme.
Variants§
Symmetric
Symmetric: zero_point = 0, range = [-scale127, scale127]
Asymmetric
Asymmetric: zero_point ≠ 0, full [0, 255] range used
Trait Implementations§
Source§impl Clone for QuantScheme
impl Clone for QuantScheme
Source§fn clone(&self) -> QuantScheme
fn clone(&self) -> QuantScheme
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 QuantScheme
Source§impl Debug for QuantScheme
impl Debug for QuantScheme
Source§impl PartialEq for QuantScheme
impl PartialEq for QuantScheme
Source§fn eq(&self, other: &QuantScheme) -> bool
fn eq(&self, other: &QuantScheme) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for QuantScheme
Auto Trait Implementations§
impl Freeze for QuantScheme
impl RefUnwindSafe for QuantScheme
impl Send for QuantScheme
impl Sync for QuantScheme
impl Unpin for QuantScheme
impl UnsafeUnpin for QuantScheme
impl UnwindSafe for QuantScheme
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