How do I optimize memory usage for a neural network running on an ARM Cortex-M4 using CMSIS-NN?
@Middleware & OS
How do I optimize memory usage for a neural network running on an ARM Cortex-M4 using CMSIS-NN? My current model runs out of memory. Here's my code:
4 Replies
Solution
Did you consider reuse buffers for intermediate and output data
No but I think I'll try it out, they're temporary right?
Yes, exactly. you can save memory since they are only needed temporarily during computation.
Thanks, this was helpful I tried it out 👇