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

Add SetUseNNAPI interface #33

Merged
merged 1 commit into from
Mar 19, 2021
Merged

Add SetUseNNAPI interface #33

merged 1 commit into from
Mar 19, 2021

Conversation

leondgarse
Copy link
Contributor

@leondgarse leondgarse commented Jul 16, 2020

Add an interface SetUseNNAPI calling C api C.TfLiteInterpreterOptionsSetUseNNAPI, to enable or disable the NN API for the interpreter. It is defined in tensorflow/lite/c/c_api_experimental.h.
NN API delegate is used on android, but my test result of inference time is not better than XNNPACK or even multi thread. Maybe other model can take benefit of this delegate.

@mattn mattn merged commit 743ff91 into mattn:master Mar 19, 2021
@mattn
Copy link
Owner

mattn commented Mar 19, 2021

Thank you.

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

Successfully merging this pull request may close these issues.

2 participants