jomjol / jomjol-tflite-wrapper

Example of tflite c++ class wrapper
MIT License
1 stars 1 forks source link

Error: insn does not satisfy its constraints #3

Open ToanNguyen215 opened 5 months ago

ToanNguyen215 commented 5 months ago

i run your code in platform.io but the error appear. Can you help me to fix it, thank you ! image

ToanNguyen215 commented 5 months ago

Verbose mode can be enabled via -v, --verbose option CONFIGURATION: https://docs.platformio.org/page/boards/espressif32/esp32cam.html PLATFORM: Espressif 32 (6.6.0) > AI Thinker ESP32-CAM HARDWARE: ESP32 240MHz, 320KB RAM, 4MB Flash DEBUG: Current (cmsis-dap) External (cmsis-dap, esp-bridge, esp-prog, iot-bus-jtag, jlink, minimodule, olimex-arm-usb-ocd, olimex-arm-usb-ocd-h, olimex-arm-usb-tiny-h, olimex-jtag-tiny, tumpa) PACKAGES:

ToanNguyen215 commented 5 months ago

Building in release mode Compiling .pio\build\esp32cam\components\tflite-lib\tensorflow\lite\micro\kernels\depthwise_conv.o Compiling .pio\build\esp32cam\components\tflite-lib\tensorflow\lite\micro\kernels\log_softmax.o Compiling .pio\build\esp32cam\components\tflite-lib\tensorflow\lite\micro\kernels\logical.o Compiling .pio\build\esp32cam\components\tflite-lib\tensorflow\lite\micro\kernels\logical_common.o In file included from components\tflite-lib\tensorflow\lite\micro\kernels\depthwise_conv.cc:22: components\tflite-lib/tensorflow/lite/kernels/internal/reference/depthwiseconv_float.h: In function 'void tflite::reference_ops::DepthwiseConv(const tflite::DepthwiseParams&, const tflite::RuntimeShape&, const float, const tflite::RuntimeShape&, const float, const tflite::RuntimeShape&, const float, const tflite::RuntimeShape&, float)':
components\tflite-lib/tensorflow/lite/kernels/internal/reference/depthwiseconv_float.h:95:1: error: insn does not satisfy its constraints: 95 | } | ^ (insn 1396 40 392 19 (set (reg/v:SF 20 f1 [orig:66 total ] [66]) (mem/u/c:SF (symbol_ref/u:SI ("*.LC1") [flags 0x2]) [0 S4 A32])) "components\tflite-lib/tensorflow/lite/kernels/internal/reference/depthwiseconv_float.h":64:19 49 {movsf_internal} (expr_list:REG_EQUAL (const_double:SF 0.0 [0x0.0p+0]) (nil))) during RTL pass: postreload components\tflite-lib/tensorflow/lite/kernels/internal/reference/depthwiseconv_float.h:95:1: internal compiler error: in extract_constrain_insn, at recog.cc:2692 libbacktrace could not find executable to open Please submit a full bug report, with preprocessed source (by using -freport-bug). See https://gcc.gnu.org/bugs/ for instructions. *** [.pio\build\esp32cam\components\tflite-lib\tensorflow\lite\micro\kernels\depthwise_conv.o] Error 1 ======================================================================= [FAILED] Took 14.74 seconds =======================================================================