arduino-audio-tools
Loading...
Searching...
No Matches
Static Public Member Functions | List of all members
TfLiteQuantizer Class Reference

Quantizer that helps to quantize and dequantize between float and int8. More...

#include <TfLiteAudioStream.h>

Static Public Member Functions

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)
 

Detailed Description

Quantizer that helps to quantize and dequantize between float and int8.

Author
Phil Schatzmann

Member Function Documentation

◆ 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: