majianjia / nnom

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

replace free() with nnom_free() in output layer #197

Closed songdaw closed 1 year ago

songdaw commented 1 year ago

free() in output layer will cause core dump if use static memory block, so change to nnom_free().

define NNOM_USING_STATIC_MEMORY

log: Model version: 0.4.3 free(): invalid pointer Aborted (core dumped)

majianjia commented 1 year ago

Looks good to me, thanks