ARM-software/CMSIS-NN
CMSIS-NN Library
What it solves
CMSIS-NN provides a collection of highly optimized neural network kernels designed to maximize performance and minimize memory usage on Arm Cortex-M processors. It bridges the gap between high-level machine learning frameworks and the resource-constrained hardware of microcontrollers.
How it works
The library implements neural network operations using specialized instructions tailored to specific Arm processor features. It automatically selects the best implementation based on the hardware:
- Pure C: A baseline implementation for all processors.
- DSP Extension: Uses SIMD (Single Instruction Multiple Data) instructions for processors like Cortex-M4 or M33.
- MVE Extension: Uses Arm Helium technology for high-performance vector processing on cores like Cortex-M55 or M85.
It is designed to be bit-exact with TensorFlow Lite for Microcontrollers (TFLM) and supports integer quantization (int8, int16, and int4). It also includes experimental support for float16 and float32 operations, primarily for MVE-enabled devices.
Who it’s for
This library is for developers building AI and machine learning applications for Arm Cortex-M based embedded systems. It is ideal for those who need to run neural networks efficiently on hardware with limited memory and processing power.
Highlights
- Optimized kernels for common operations like Conv2D, DepthwiseConv2D, Fully Connected, and Pooling.
- Support for multiple data types including int8, int16, int4, and experimental float16/float32.
- Hardware-aware optimization paths for DSP and MVE (Helium) extensions.
- Python bindings available for easier integration and Ahead-of-Time (AOT) weight preparation.
- Designed for seamless integration with TensorFlow Lite for Microcontrollers.
Related
- Project
- Project
- Project
- Project
- Project