Skip to content

Commit af8a2fe

Browse files
committed
fix library.properties
1 parent 708186e commit af8a2fe

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

examples/SineExample/SineExample.ino

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,24 @@
11
#include <EloquentTinyML.h>
2+
// sine_model.h contains the array you exported from the previous step with xxd or tinymlgen
23
#include "sine_model.h"
34

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

810
Eloquent::TinyML::TinyML<
911
NUMBER_OF_INPUTS,
1012
NUMBER_OF_OUTPUTS,
11-
TENSOR_ARENA_SIZE> ml(sine_model_quantized_tflite);
13+
TENSOR_ARENA_SIZE> ml(sine_model);
1214

1315

1416
void setup() {
1517
Serial.begin(115200);
1618
}
1719

1820
void loop() {
21+
// pick up a random x and predict its sine
1922
float x = 3.14 * random(100) / 100;
2023
float y = sin(x);
2124
float input[1] = { x };

library.properties

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name=EloquentTinyML
22
version=0.0.1
3-
author=Simone Salerno <github.com/eloquentarduino>
4-
maintainer=Simone Salerno <github.com/eloquentarduino>
3+
author=Simone Salerno,eloquentarduino@gmail.com
4+
maintainer=Simone Salerno,eloquentarduino@gmail.com
55
sentence=An eloquent interface to Tensorflow Lite for Microcontrollers
66
paragraph=
77
category=Other

0 commit comments

Comments
 (0)