xref: /aosp_15_r20/external/armnn/delegate/armnnDelegateJNI/README.md (revision 89c4ff92f2867872bb9e2354d150bf0c8c502810)
1*89c4ff92SAndroid Build Coastguard Worker# The Arm NN TensorFlow Lite delegate JNI (Experimental)
2*89c4ff92SAndroid Build Coastguard Worker
3*89c4ff92SAndroid Build Coastguard WorkerNOTE: This library is an experimental feature. We cannot guarentee full support for this.
4*89c4ff92SAndroid Build Coastguard Worker
5*89c4ff92SAndroid Build Coastguard Worker'armnnDelegateJNI' is a library for accelerating certain TensorFlow Lite operators on Arm hardware specifically through Android
6*89c4ff92SAndroid Build Coastguard Workerapplications. Each release is packaged in an AAR which can be found on Maven Central.
7*89c4ff92SAndroid Build Coastguard WorkerThe pre-built library contains the ArmNN Core, ArmNN Utils, Neon backend, CL Backend, and the ArmNN Delegate.
8*89c4ff92SAndroid Build Coastguard WorkerIt is essential to only build these. The backends you choose are optional.
9*89c4ff92SAndroid Build Coastguard Worker
10*89c4ff92SAndroid Build Coastguard WorkerIt requires a static build which can be switched on through setting BUILD_SHARED_LIBS=OFF. You will also have to set
11*89c4ff92SAndroid Build Coastguard WorkerCMAKE_ANDROID_STL_TYPE=c++_static when building ArmNN.
12*89c4ff92SAndroid Build Coastguard Worker
13*89c4ff92SAndroid Build Coastguard WorkerBUILD_DELEGATE_JNI_INTERFACE will also have to be set to true.
14*89c4ff92SAndroid Build Coastguard Worker
15*89c4ff92SAndroid Build Coastguard WorkerTo download the prebuilt ArmNN Delegate JNI AAR from Maven Central, please go to [ArmNN Maven Central Release Page](https://search.maven.org/artifact/io.github.arm-software/armnn.delegate).
16