Comparative-Analysis-of-Speech-Synthesis-Models
/
TensorFlowTTS
/examples
/cpptflite
/src
/TfliteBase.h
typedef struct | |
{ | |
float *melData; | |
std::vector<int32_t> melShape; | |
int32_t bytes; | |
} MelGenData; | |
class TfliteBase | |
{ | |
public: | |
uint32_t int_size = sizeof(int32_t); | |
uint32_t float_size = sizeof(float); | |
std::unique_ptr<tflite::Interpreter> interpreter; | |
TfliteBase(const char* modelFilename); | |
~TfliteBase(); | |
private: | |
std::unique_ptr<tflite::FlatBufferModel> model; | |
tflite::ops::builtin::BuiltinOpResolver resolver; | |
void interpreterBuild(const char* modelFilename); | |
}; | |