pub enum LaneQuantizer {
Bit3(Quantizer3Bit),
Bit5(Quantizer5Bit),
Bit7(Quantizer7Bit),
}Expand description
Unified quantizer that selects appropriate implementation
Variants§
Implementations§
Source§impl LaneQuantizer
impl LaneQuantizer
Sourcepub fn for_lane(lane: PrecisionLane, block_size: usize) -> Self
pub fn for_lane(lane: PrecisionLane, block_size: usize) -> Self
Create quantizer for a specific lane
Sourcepub fn lane(&self) -> PrecisionLane
pub fn lane(&self) -> PrecisionLane
Get the precision lane
Trait Implementations§
Source§impl Clone for LaneQuantizer
impl Clone for LaneQuantizer
Source§fn clone(&self) -> LaneQuantizer
fn clone(&self) -> LaneQuantizer
Returns a duplicate 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 moreAuto Trait Implementations§
impl Freeze for LaneQuantizer
impl RefUnwindSafe for LaneQuantizer
impl Send for LaneQuantizer
impl Sync for LaneQuantizer
impl Unpin for LaneQuantizer
impl UnwindSafe for LaneQuantizer
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