tanakamasayuki / Arduino_TensorFlowLite_ESP32

Allows you to run machine learning models locally on your ESP32 device.
Apache License 2.0
228 stars 49 forks source link

LSTM TFLite model is not running #20

Open vasanthpradeep opened 7 months ago

vasanthpradeep commented 7 months ago

I am trying to implement a LSTM TFLite model on ESP32. But when I tried to run the model, it is printing an error as follows :

`ets Jul 29 2019 12:21:46

rst:0xc (SW_CPU_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT) configsip: 0, SPIWP:0xee clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00 mode:DIO, clock div:1 load:0x3fff0030,len:1344 load:0x40078000,len:13964 load:0x40080400,len:3600 entry 0x400805f0 Didn't find op for builtin opcode 'REDUCE_ANY' 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 REDUCE_ANY

AllocateTensors() failed

Guru Meditation Error: Core 1 panic'ed (LoadProhibited). Exception was unhandled.

Core 1 register dump: PC : 0x400d2f43 PS : 0x00060630 A0 : 0x800f5490 A1 : 0x3ffce090
A2 : 0x00000014 A3 : 0x3ffcab58 A4 : 0x00000000 A5 : 0x3ffc1b60
A6 : 0x3ffc1b68 A7 : 0x80000001 A8 : 0x800d2f32 A9 : 0x3ffce080
A10 : 0x00000000 A11 : 0x41a00000 A12 : 0x3ffc1bd4 A13 : 0x3ffc1bd4
A14 : 0x00007918 A15 : 0x3ffc1b74 SAR : 0x0000001b EXCCAUSE: 0x0000001c
EXCVADDR: 0x0000000c LBEG : 0x40086365 LEND : 0x40086375 LCOUNT : 0xffffffff

Backtrace: 0x400d2f40:0x3ffce090 0x400f548d:0x3ffce0c0

ELF file SHA256: 073b5aeb2d37d8a4

Rebooting...

`

I think the library is not updated to the latest TF version

can anyone please help me out to rectify this problem.

vasanthpradeep commented 7 months ago

@tanakamasayuki can you please update the library, so that it supports the latest converted, TFLite Model.