majianjia / nnom

A higher-level Neural Network library for microcontrollers.
Apache License 2.0
815 stars 235 forks source link

fixes __NNOM_USAT #207

Closed cosw0t closed 6 months ago

cosw0t commented 7 months ago

correct implementation of unsigned saturation function should use (1 << bit) -1) as upper limit