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/person_detect.tflite")]
struct PersonDetect;

#[test]
fn person_detect_model() {
    let input = [Buffer2D::from_element([0.5])];
    let output = matrix![0.8046875, 0.1953125];
    assert_eq!(PersonDetect::predict(input), output);
}