Quantizer that helps to quantize and dequantize between float and int8.
More...
#include <TfLiteAudioStream.h>
|
| static float | clip (float value, float range) |
| |
| static float | dequantize (int8_t value, float scale, float zero_point) |
| |
| static float | dequantizeToNewRange (int8_t value, float scale, float zero_point, float new_range) |
| |
| static int8_t | quantize (float value, float scale, float zero_point) |
| |
Quantizer that helps to quantize and dequantize between float and int8.
- Author
- Phil Schatzmann
- Copyright
- GPLv3
◆ clip()
| static float clip |
( |
float |
value, |
|
|
float |
range |
|
) |
| |
|
inlinestatic |
◆ dequantize()
| static float dequantize |
( |
int8_t |
value, |
|
|
float |
scale, |
|
|
float |
zero_point |
|
) |
| |
|
inlinestatic |
◆ dequantizeToNewRange()
| static float dequantizeToNewRange |
( |
int8_t |
value, |
|
|
float |
scale, |
|
|
float |
zero_point, |
|
|
float |
new_range |
|
) |
| |
|
inlinestatic |
◆ quantize()
| static int8_t quantize |
( |
float |
value, |
|
|
float |
scale, |
|
|
float |
zero_point |
|
) |
| |
|
inlinestatic |
The documentation for this class was generated from the following file: