#[repr(C)]pub struct TfLiteQuantizationParams {
pub scale: f32,
pub zero_point: i32,
}
Expand description
Legacy. Will be deprecated in favor of TfLiteAffineQuantization
.
If per-layer quantization is specified this field will still be populated in
addition to TfLiteAffineQuantization
.
Parameters for asymmetric quantization. Quantized values can be converted
back to float using: real_value = scale * (quantized_value - zero_point)
Fields§
§scale: f32
§zero_point: i32
Trait Implementations§
Source§impl Clone for TfLiteQuantizationParams
impl Clone for TfLiteQuantizationParams
Source§fn clone(&self) -> TfLiteQuantizationParams
fn clone(&self) -> TfLiteQuantizationParams
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 moreSource§impl Debug for TfLiteQuantizationParams
impl Debug for TfLiteQuantizationParams
Source§impl Default for TfLiteQuantizationParams
impl Default for TfLiteQuantizationParams
Source§fn default() -> TfLiteQuantizationParams
fn default() -> TfLiteQuantizationParams
Returns the “default value” for a type. Read more
Source§impl PartialEq for TfLiteQuantizationParams
impl PartialEq for TfLiteQuantizationParams
impl Copy for TfLiteQuantizationParams
impl StructuralPartialEq for TfLiteQuantizationParams
Auto Trait Implementations§
impl Freeze for TfLiteQuantizationParams
impl RefUnwindSafe for TfLiteQuantizationParams
impl Send for TfLiteQuantizationParams
impl Sync for TfLiteQuantizationParams
impl Unpin for TfLiteQuantizationParams
impl UnwindSafe for TfLiteQuantizationParams
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