Skip to content
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

GreedyMemoryPlanner::operator delete(void *) is private #2576

Closed
longhoangth opened this issue May 17, 2024 · 4 comments
Closed

GreedyMemoryPlanner::operator delete(void *) is private #2576

longhoangth opened this issue May 17, 2024 · 4 comments

Comments

@longhoangth
Copy link

src/tensorflow/lite/micro/micro_allocator.cpp:390:55: error: 'static void tflite::GreedyMemoryPlanner::operator delete(void*)' is private within this context

@longhoangth
Copy link
Author

build with tflite-micro-arduino-examples

@ddavis-2015
Copy link
Member

@longhoangth

Can you provide a much more detailed description of your issue?

@longhoangth
Copy link
Author

When I modify the arduino tensorflow lite library to work with esp32s3 on platformio, the build log error is in image below.
Screenshot 2024-05-18 133011

@rascani
Copy link
Collaborator

rascani commented May 20, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants