Skip to content

Latest commit

 

History

History
21 lines (14 loc) · 788 Bytes

NNAPI-ExecutionProvider.md

File metadata and controls

21 lines (14 loc) · 788 Bytes

NNAPI Execution Provider

Android Neural Networks API (NNAPI) is a unified interface to CPU, GPU, and NN accelerators on Android.

Minimum requirements

The NNAPI EP requires Android devices with Android 8.1 or higher, it is recommended to use Android devices with Android 9 or higher to achieve optimal performance.

Build NNAPI EP

For build instructions, please see the BUILD page.

Using NNAPI EP in C/C++

Ort::Env env = Ort::Env{ORT_LOGGING_LEVEL_ERROR, "Default"};
Ort::SessionOptions sf;
Ort::ThrowOnError(OrtSessionOptionsAppendExecutionProvider_Nnapi(sf));
Ort::Session session(env, model_path, sf);

The C API details are here.