pub struct Quantizer3Bit {
pub scales: Vec<f32>,
pub block_size: usize,
pub activation_lut: Option<[f32; 8]>,
}Expand description
3-bit quantizer for reflex signals
Uses signed int4 container with values restricted to -4..3. Optimized for LUT-based activation.
Fields§
§scales: Vec<f32>Per-block scale factors
block_size: usizeBlock size (typically 32)
activation_lut: Option<[f32; 8]>LUT for activation (optional)
Implementations§
Source§impl Quantizer3Bit
impl Quantizer3Bit
Sourcepub fn with_activation_lut(self, lut: [f32; 8]) -> Self
pub fn with_activation_lut(self, lut: [f32; 8]) -> Self
Set activation LUT (e.g., for ReLU)
Trait Implementations§
Source§impl Clone for Quantizer3Bit
impl Clone for Quantizer3Bit
Source§fn clone(&self) -> Quantizer3Bit
fn clone(&self) -> Quantizer3Bit
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 Quantizer3Bit
impl RefUnwindSafe for Quantizer3Bit
impl Send for Quantizer3Bit
impl Sync for Quantizer3Bit
impl Unpin for Quantizer3Bit
impl UnwindSafe for Quantizer3Bit
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