Zhans Wei Lab · Research · Projects · About

Embedded Intelligence

TinyFlat Inference Engine

Integer-only 1D CNN runtime in C for 8-bit AVR microcontrollers

The runtime behind the TinyFlat paper. Weights live in flash (PROGMEM), activations use two alternating INT8 buffers, and convolution, ReLU and max pooling run in one fused loop. An optimized kernel copies one channel of weights to SRAM and replaces 64-bit requantisation with two 32-bit multiplications, which speeds up TinyFlat-8 by 1.34×. Outputs match the Python integer reference bit for bit.

Stack: C, avr-gcc, simavr, PyTorch. Year: 2026.

Related research: TinyFlat: Ultra-Lightweight ECG Classification on 8-bit Microcontrollers