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
Remove unused MicroInterpreter::tensor() API. #49114
Remove unused MicroInterpreter::tensor() API. #49114
Conversation
Thanks for contributing to TensorFlow Lite Micro. To keep this process moving along, we'd like to make sure that you have completed the items on this list:
We would like to have a discussion on the Github issue first to determine the best path forward, and then proceed to the PR review. |
The implementation for this function was always allocating a persistent buffer which would mean that calling this function repeatedly would unexpectedly result in an error as a result of running out of space in the arena (basically a memory leak). Additionally, it appears that the function was only being used to test the ResetVariableTensor API.
d69d158
to
52cd43c
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we have any way to test ResetVariableTensor once we remove its test here? Other than that looks good.
Not immediately. I have filed a bug for that -- will figure out how we can test it in a bit. |
Got it. I suspect we can add a test along with subgraph support. |
The implementation for this function was always allocating a persistent buffer which would mean that calling this function repeatedly would unexpectedly result in an error as a result of running out of space in the arena (basically a memory leak).
Additionally, it appears that the function was only being used to test ResetVariableTensor and that test case has also been removed with this change.
http://b/187845286 will be used to add a unit test for ResetVaiableTensor.