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

Support Android NNAPI. #622

Merged
merged 1 commit into from
Mar 1, 2024
Merged

Conversation

csukuangfj
Copy link
Collaborator

To use Android NNAPI, you need to do the following two steps:

  1. Change
    -DANDROID_PLATFORM=android-21 ..

    to
 -DANDROID_PLATFORM=android-27 .. 
  1. Use nnapi instead of cpu for the provider.

An example is to change


to

 var provider: String = "nnapi", 

@csukuangfj csukuangfj merged commit e2397cd into k2-fsa:master Mar 1, 2024
0 of 224 checks passed
@csukuangfj csukuangfj deleted the android-nnapi branch March 1, 2024 08:39
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.

1 participant