pub enum QuantType {
None,
Dfp,
Affine,
Unknown(u32),
}Expand description
Quantization method used for a tensor.
Most RKNN INT8 models use Affine quantization,
where each value is converted via f32 = (i8 - zp) * scale.
Variants§
None
No quantization (float model).
Dfp
Dynamic fixed-point quantization.
Affine
Affine quantization: value = (raw - zp) * scale. The most common type.
Unknown(u32)
Unrecognized quantization type ID from the RKNN runtime.
Trait Implementations§
impl Copy for QuantType
impl Eq for QuantType
impl StructuralPartialEq for QuantType
Auto Trait Implementations§
impl Freeze for QuantType
impl RefUnwindSafe for QuantType
impl Send for QuantType
impl Sync for QuantType
impl Unpin for QuantType
impl UnwindSafe for QuantType
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