microflow 0.1.3

A robust and efficient TinyML inference engine
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
use microflow_macros::model;
use nalgebra::matrix;

#[model("models/sine.tflite")]
struct Sine;

#[test]
fn sine_model() {
    let input = matrix![0.5];
    let output = matrix![0.41348344];
    assert_eq!(Sine::predict(input), output);
}