Closed neilshevlin closed 5 months ago
If the fix for this looks right I can make a PR.
Thanks for your feed-back. I agree that it makes sense to add a check before deleting values. However I prefer to make this check first before going into the loop: I committed the corresponding correction
Problem Description
When using any of the converted tensorflow lite binaries with the TFLiteAudioStream I will get the following assert failure:
assert failed: T& audio_tools::Vector<T>::operator[](int) [with T = float] Vector.h:246 (p_data != nullptr)
Device Description
I am using and AI thinker / AudioKitEs8388V1 as my development board.
Sketch
This is just the example sketch. In addition however I have also made use of the following:
tcfg.useAllOpsResolver = true;
To allow for the CONV_2D operator from more modern tf lite models.The result queue is sometimes empty, which leads to the assert fail in Vector.h. However I am not yet familiar enough with this library to know if this is the right implementation for this fix.
What is your development environment
Using platformio
I have checked existing issues, discussions and online documentation