Struct tflitec::tensor::QuantizationParameters
source · [−]Expand description
Parameters that determine the mapping of quantized values to real values.
Quantized values can be mapped to float values using the following conversion:
realValue = scale * (quantizedValue - zeroPoint).
Fields
scale: f32The difference between real values corresponding to consecutive quantized
values differing by 1. For example, the range of quantized values for u8
data type is [0, 255].
zero_point: i32The quantized value that corresponds to the real 0 value.
Trait Implementations
This method tests for self and other values to be equal, and is used
by ==. Read more
This method tests for !=.
This method returns an ordering between self and other values if one exists. Read more
This method tests less than (for self and other) and is used by the < operator. Read more
This method tests less than or equal to (for self and other) and is used by the <=
operator. Read more
This method tests greater than (for self and other) and is used by the > operator. Read more
Auto Trait Implementations
impl RefUnwindSafe for QuantizationParameters
impl Send for QuantizationParameters
impl Sync for QuantizationParameters
impl Unpin for QuantizationParameters
impl UnwindSafe for QuantizationParameters
Blanket Implementations
Mutably borrows from an owned value. Read more