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
14
15
16
use nalgebra::SMatrix;

/// Represents a 2-dimensional buffer.
/// A 2-dimensional buffer is composed by a [`SMatrix`] of values `T`.
pub type Buffer2D<T, const ROWS: usize, const COLUMNS: usize> = SMatrix<T, ROWS, COLUMNS>;

/// Represents a 4-dimensional buffer.
/// A 4-dimensional buffer is composed by an array of [`Buffer2D`] containing an array of values
/// `T`.
pub type Buffer4D<
    T,
    const BATCHES: usize,
    const ROWS: usize,
    const COLUMNS: usize,
    const CHANNELS: usize,
> = [Buffer2D<[T; CHANNELS], ROWS, COLUMNS>; BATCHES];