microflow 0.1.3

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

#[model("models/speech.tflite")]
struct Speech;

#[test]
fn speech_model() {
    let input = Buffer2D::from_element(0.5);
    let output = matrix![0.15625, 0.2734375, 0.2734375, 0.296875];
    assert_eq!(Speech::predict(input), output);
}