onnxruntime/docs/reference/execution-providers/NNAPI-ExecutionProvider.md
Edward Chen da44699790
EP documentation updates (#6253)
* Add CUDA EP documentation file.

* Update nav_orders.

* Address PR comments, update.

* Remove usage of set_nuphar_settings().

* Add default values of configuration options.
2021-01-13 13:11:53 -08:00

950 B

title parent grand_parent nav_order
NNAPI Execution Providers Reference 6

NNAPI Execution Provider

{: .no_toc }

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

Contents

{: .no_toc }

  • TOC placeholder {:toc}

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.