Open fadelgaber opened 3 years ago
This is for the ESP32 platform only. https://github.com/tensorflow/tensorflow/tree/master/tensorflow/lite/micro/examples/hello_world#deploy-to-sparkfun-edge
There was a way to move for the edge on this page.
Hello, I am receiving some errors when compiling for ESP32, hope you can help me figure out what's the issuesas I've been trying to solve it without any success. This is the error I keep getting:
C:\Users\...\debug_log_numbers.cpp: In function 'char* {anonymous}::FastFloatToBufferLeft(float, char*)':
C:\Users\...\debug_log_numbers.cpp:117:53: warning: dereferencing type-punned pointer will break strict-aliasing rules [-Wstrict-aliasing]
const uint32_t u = *reinterpret_cast<uint32_t*>(&f);
^
C:\Users\...\micro_interpreter.cpp: In member function 'TfLiteTensor* tflite::MicroInterpreter::input(size_t)':
C:\Users\...\micro_interpreter.cpp:230:14: warning: comparison of unsigned expression < 0 is always false [-Wtype-limits]
if ((index < 0) || (index >= length)) {
^
C:\Users\...\micro_interpreter.cpp: In member function 'TfLiteTensor* tflite::MicroInterpreter::output(size_t)':
C:\Users\...\micro_interpreter.cpp:241:14: warning: comparison of unsigned expression < 0 is always false [-Wtype-limits]
if ((index < 0) || (index >= outputs->size())) {
^
C:\Users\...\micro_interpreter.cpp: In member function 'TfLiteTensor* tflite::MicroInterpreter::tensor(size_t)':
C:\Users\...\micro_interpreter.cpp:251:14: warning: comparison of unsigned expression < 0 is always false [-Wtype-limits]
if ((index < 0) || (index >= tensors_size())) {
^
C:\Users\...\micro_interpreter.cpp: In member function 'tflite::pairTfLiteNodeAndRegistration tflite::MicroInterpreter::node_and_registration(int)':
C:\Users\...\micro_interpreter.cpp:267:15: warning: comparison of unsigned expression < 0 is always false [-Wtype-limits]
if (index < 0 || index >= opcodes->size()) {
^
C:\Users\...\micro_allocator.cpp: In member function 'TfLiteStatus tflite::MicroAllocator::RegisterPreallocatedInput(uint8_t*, size_t)':
C:\Users\...\micro_allocator.cpp:100:40: warning: comparison of unsigned expression < 0 is always false [-Wtype-limits]
if (buffer == nullptr || input_index < 0 ||
^
C:\Users\...\micro_allocator.cpp: In member function 'TfLiteStatus tflite::MicroAllocator::AllocateNodeAndRegistrations(const tflite::OpResolver&, tflite::NodeAndRegistration**)':
C:\Users\...\micro_allocator.cpp:136:15: warning: comparison of unsigned expression < 0 is always false [-Wtype-limits]
if (index < 0 || index >= opcodes->size()) {
^
C:\Users\...\micro_allocator.cpp: In member function 'TfLiteStatus tflite::MicroAllocator::InitializeRuntimeTensor(const tflite::Tensor&, const flatbuffers::Vector<flatbuffers::Offset<tflite::Buffer> >*, tflite::ErrorReporter*, TfLiteTensor*, uint8_t*)':
C:\Users\...\micro_allocator.cpp:399:18: warning: unused variable 'array_size' [-Wunused-variable]
if (size_t array_size = array->size()) {
^
C:\Users\...\filterbank.c: In function 'FilterbankSqrt':
C:\Users\...\filterbank.c:121:25: error: pointer targets in initialization differ in signedness [-Werror=pointer-sign]
const int64_t* work = state->work + 1;
^
cc1.exe: some warnings being treated as errors
exit status 1
Error compiling for board ESP32 Dev Module.
Getting the following errors/warnings when compiling for a SparkFun Edge board. Compiler seems to not be happy about a lot of things, any fix to this?