tflite-micro
tflite-micro copied to clipboard
GreedyMemoryPlanner::operator delete(void *) is private
src/tensorflow/lite/micro/micro_allocator.cpp:390:55: error: 'static void tflite::GreedyMemoryPlanner::operator delete(void*)' is private within this context
build with tflite-micro-arduino-examples
@longhoangth
Can you provide a much more detailed description of your issue?
When I modify the arduino tensorflow lite library to work with esp32s3 on platformio, the build log error is in image below.
This is by design. The GreedyMemoryPlanner, like several other TFLM objects, is designed to be allocated from the arena provided to the MicroInterpreter. It is typically allocated here: https://github.com/tensorflow/tflite-micro/blob/main/tensorflow/lite/micro/micro_allocator.cc#L88-L90. Notice how it is constructed with placement new.