-
Notifications
You must be signed in to change notification settings - Fork 83
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
esp_nn.h File During Compilation with -D ESP_NN (TFMIC-34) #91
Comments
@pravee625 is this issue still valid after #93 is addressed? |
@vikramdattu Yes, I am still unable to compile with -D ESP_NN if declared in my platformio.ini file if ESP_NN is declared in platformio.ini
and I am unable to find that file in the current repo... |
Hi @pravee625 esp-tflite-micro/idf_component.yml Lines 10 to 12 in e63e91b
For platform.io, can you please follow this piece of documentation? |
Thanks for the help @vikramdattu. My code is working fine, and esp_nn is successfully integrated. You can close this issue as well as the other issue: #90. The previous issue was also caused by esp_nn optimizations not being included. Now, my inference time has decreased from 900ms to 200ms. |
Hi @pravee625 thanks for the confirmation. Closing this issue! |
When I include the -D ESP_NN flag in my platformio.ini, I encounter the following error during compilation:
Compiling .pio\build\esp-wrover-kit\libde0\tfmicro\tensorflow\lite\micro\kernels\esp_nn\add.cc.o
Compiling .pio\build\esp-wrover-kit\libde0\tfmicro\tensorflow\lite\micro\kernels\esp_nn\conv.cc.o
lib/tfmicro/tensorflow/lite/micro/kernels/esp_nn/add.cc:34:10: fatal error: esp_nn.h: No such file or directory
#include <esp_nn.h>
^~~~~~~~~~
compilation terminated.
Compiling .pio\build\esp-wrover-kit\libde0\tfmicro\tensorflow\lite\micro\kernels\esp_nn\depthwise_conv.cc.o
*** [.pio\build\esp-wrover-kit\libde0\tfmicro\tensorflow\lite\micro\kernels\esp_nn\add.cc.o] Error 1
lib/tfmicro/tensorflow/lite/micro/kernels/esp_nn/conv.cc:30:10: fatal error: esp_nn.h: No such file or directory
#include <esp_nn.h>
^~~~~~~~~~
compilation terminated.
*** [.pio\build\esp-wrover-kit\libde0\tfmicro\tensorflow\lite\micro\kernels\esp_nn\conv.cc.o] Error 1
lib/tfmicro/tensorflow/lite/micro/kernels/esp_nn/depthwise_conv.cc:30:10: fatal error: esp_nn.h: No such file or directory
#include <esp_nn.h>
^~~~~~~~~~
compilation terminated.
*** [.pio\build\esp-wrover-kit\libde0\tfmicro\tensorflow\lite\micro\kernels\esp_nn\depthwise_conv.cc.o] Error 1
========================================================= [FAILED] Took 31.34 seconds =========================================================
When I remove the -D ESP_NN flag from my platformio.ini, the compilation is successful.
Is the esp_nn.h file not present in the esp-tflite-micro library?
How can I properly include the ESP-NN library while compiling in PlatformIO?
I am attaching my platformio.ini file for your reference
The text was updated successfully, but these errors were encountered: