EloquentTinyML icon indicating copy to clipboard operation
EloquentTinyML copied to clipboard

'Eloquent' does not name a type

Open hanyc93 opened this issue 2 years ago • 1 comments

I install the library via: Arduino IDE > Tools > Manage Libraries Board: ESP32 Dev Module

Error when compile:

SineExample:11:1: error: 'Eloquent' does not name a type Eloquent::TinyML::TfLite<NUMBER_OF_INPUTS, NUMBER_OF_OUTPUTS, TENSOR_ARENA_SIZE> ml; ^ C:\Users\ADMINI~1\AppData\Local\Temp\arduino_modified_sketch_199840\SineExample.ino: In function 'void setup()': SineExample:16:5: error: 'ml' was not declared in this scope ml.begin(sine_model); ^ C:\Users\ADMINI~1\AppData\Local\Temp\arduino_modified_sketch_199840\SineExample.ino: In function 'void loop()': SineExample:25:27: error: 'ml' was not declared in this scope float predicted = ml.predict(input); ^ exit status 1 'Eloquent' does not name a type

hanyc93 avatar Apr 19 '22 03:04 hanyc93

try using version 0.5. I also got this error and reverted to an older version to be able to run

SAOKIM99 avatar Apr 27 '22 06:04 SAOKIM99

This is due to a breaking change in the API. Install version 2.4.3 then

#include <EloquentTinyML.h>
#include <eloquent_tinyml/tensorflow.h>

Eloquent::TinyML::TensorFlow::TensorFlow<N_INPUTS, N_OUTPUTS, TENSOR_ARENA_SIZE> tf;

eloquentarduino avatar Sep 02 '22 06:09 eloquentarduino

This is due to a breaking change in the API. Install version 2.4.3 then

#include <EloquentTinyML.h>
#include <eloquent_tinyml/tensorflow.h>

Eloquent::TinyML::TensorFlow::TensorFlow<N_INPUTS, N_OUTPUTS, TENSOR_ARENA_SIZE> tf;

Solved cool!

YangSongL1n avatar Dec 14 '22 07:12 YangSongL1n