Skip to content

Commit

Permalink
fix library.properties
Browse files Browse the repository at this point in the history
  • Loading branch information
agrimagsrl committed Jan 29, 2020
1 parent 708186e commit af8a2fe
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
5 changes: 4 additions & 1 deletion examples/SineExample/SineExample.ino
Original file line number Diff line number Diff line change
@@ -1,21 +1,24 @@
#include <EloquentTinyML.h>
// sine_model.h contains the array you exported from the previous step with xxd or tinymlgen
#include "sine_model.h"

#define NUMBER_OF_INPUTS 1
#define NUMBER_OF_OUTPUTS 1
// in future projects you may need to tweek this value: it's a trial and error process
#define TENSOR_ARENA_SIZE 2*1024

Eloquent::TinyML::TinyML<
NUMBER_OF_INPUTS,
NUMBER_OF_OUTPUTS,
TENSOR_ARENA_SIZE> ml(sine_model_quantized_tflite);
TENSOR_ARENA_SIZE> ml(sine_model);


void setup() {
Serial.begin(115200);
}

void loop() {
// pick up a random x and predict its sine
float x = 3.14 * random(100) / 100;
float y = sin(x);
float input[1] = { x };
Expand Down
4 changes: 2 additions & 2 deletions library.properties
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name=EloquentTinyML
version=0.0.1
author=Simone Salerno <github.com/eloquentarduino>
maintainer=Simone Salerno <github.com/eloquentarduino>
author=Simone Salerno,eloquentarduino@gmail.com
maintainer=Simone Salerno,eloquentarduino@gmail.com
sentence=An eloquent interface to Tensorflow Lite for Microcontrollers
paragraph=
category=Other
Expand Down

0 comments on commit af8a2fe

Please sign in to comment.