pub enum QuantParams<'a> {
PerTensor(PerTensorQuantParams),
PerChannel(PerChannelQuantParams<'a>),
}Expand description
Unified quantization parameters (either per-tensor or per-channel).
Variants§
PerTensor(PerTensorQuantParams)
Per-tensor quantization parameters.
PerChannel(PerChannelQuantParams<'a>)
Per-channel quantization parameters.
Trait Implementations§
Source§impl<'a> Clone for QuantParams<'a>
impl<'a> Clone for QuantParams<'a>
Source§fn clone(&self) -> QuantParams<'a>
fn clone(&self) -> QuantParams<'a>
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 moreAuto Trait Implementations§
impl<'a> Freeze for QuantParams<'a>
impl<'a> RefUnwindSafe for QuantParams<'a>
impl<'a> Send for QuantParams<'a>
impl<'a> Sync for QuantParams<'a>
impl<'a> Unpin for QuantParams<'a>
impl<'a> UnsafeUnpin for QuantParams<'a>
impl<'a> UnwindSafe for QuantParams<'a>
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