@eloquentarduino I am trying to take an inference for a neural network on ESP 32 DEV KIT but it's throwing an error that is not understandable.
Please find my code below:
#include <EloquentTinyML.h>
#include <eloquent_tinyml/tensorflow.h>
#include "test_model.h"
#define NUMBER_OF_INPUTS 7200
#define NUMBER_OF_OUTPUTS 4
#define TENSOR_ARENA_SIZE 2*1024
Eloquent::TinyML::TensorFlow::TensorFlow<NUMBER_OF_INPUTS, NUMBER_OF_OUTPUTS, TENSOR_ARENA_SIZE> ml;
void setup() {
Serial.begin(115200);
ml.begin(test_model);
}
void loop() {
float x_test[7200] = {0.000000, 0.000139, ........ , 0.999722, 0.999861};
float y_pred[4] = {0, 0, 0, 0};
float predicted = ml.predict(x_test, y_pred);
Serial.print("\t predicted: ");
Serial.println(predicted);
delay(10000);
}
below is my model summary:
