AmbiqAI / neuralSPOT

NeuralSPOT is Ambiq's AI SDK and Toolkit
https://ambiq.com
BSD 3-Clause "New" or "Revised" License
24 stars 6 forks source link

AutoDeploy hangs when TFLM AllocateTensors() fails #98

Closed apage224 closed 7 months ago

apage224 commented 1 year ago

On certain models, the reported arena size by TFLM is insufficient and will result in subsequent AllocateTensors call to fail. This will cause AutoDeploy to hang when then trying to feed input stimulus.

For insufficient tensor arena, we might want to provide additional arena padding CLI argument. For latter issue, AutoDeploy should verify TFLM model initialization is successful before attempting to send inputs.