tensorflow-micropython-examples icon indicating copy to clipboard operation
tensorflow-micropython-examples copied to clipboard

Investigate issues with optional ops breaking esp32 firmwares

Open mocleiri opened this issue 3 years ago • 2 comments

Something is not working with what I merged for #28.

When I flash esp32 now there are repeated LoadProhibited errors and restarts. I was able to control-c and see this text:

Didn't find op for builtin opcode 'RESHAPE' version '1'. An older version of this builtin might be supported. Are you using an old TFLite binary with a newer model?

Failed to get registration from op code RESHAPE
 
AllocateTensors() failed!
Starting
Guru Meditation Error: Core  0 panic'ed (LoadProhibited). Exception was unhandled.

I may have to revert so that the esp32 builds work.

mocleiri avatar Jan 19 '22 04:01 mocleiri

I reverted the change but will use this issue to try and solve the root cause. I tried but was unable to reproduce using the unix port.

mocleiri avatar Jan 19 '22 05:01 mocleiri

In testing I needed to add RESHAPE and DEPTHWISE_CONV_2D to get micro-speech to work. I'm also having issues getting the ulab custom header approach to work right. If I have the exact alternate header approach it won't be added but it does seem to work if I include the tflm_ops.h file directly.

But then it will have to exist in all of the board/build directories.

mocleiri avatar Feb 07 '22 04:02 mocleiri