Name Date Size #Lines LOC

..--

build/H25-Apr-2025-

canonical/H25-Apr-2025-11,5889,232

scripts/H25-Apr-2025-348290

CMakeLists.txtH A D25-Apr-202535.6 KiB521490

README.mdH A D25-Apr-20252.1 KiB3923

README.md.licenseH A D25-Apr-2025102 54

generate_prebuilts.shH A D25-Apr-2025746 3624

support_library_service.cppH A D25-Apr-2025347 199

README.md

1# Arm NN Support Library Neural Networks driver
2
3This directory contains the Arm NN Support Library for the Android Neural Networks API.
4
5# Passing parameters to the support library runtime.
6
7The support library inherits it's parameters from the Arm NN Android Neural Networks driver. Parameters are passed to it through an environment variable, ARMNN_SL_OPTIONS. A full list of parameters are available ./canonical/DriverOptions.cpp.
8
9# Sample usage
10
11## Running NeuralNetworksSupportLibraryTest
12
13This test suite takes as it's first argument the path to a shared object implementation of the support library. Any library dependencies should be resolvable through the LD_LIBRARY_PATH mechanism. Setting ARMNN_SL_OPTIONS will pass parameters to the Arm NN Support Library Neural Networks driver.
14
15Here we assume that Bash is the current shell and specify "-v" to enable verbose logging and "-c CpuAcc" to direct that the Neon(TM) accelerator be used.
16~~~
17ARMNN_SL_OPTIONS="-v -c CpuAcc" ./NeuralNetworksSupportLibraryTest ./libarmnn_support_library.so
18~~~
19
20## Running TfLite Benchmarking tool
21
22This tools' parameters are described [here](https://www.tensorflow.org/lite/performance/measurement). The support library specific parts are to specify the path to the library and to ensure that ARMNN_SL_OPTIONS is set in the environment.
23
24support for relaxed computation from Float32 to Float16"
25~~~
26ARMNN_SL_OPTIONS="-v -c GpuAcc -f" ./android_aarch64_benchmark_model --graph=./mymodel.tflite --num_threads=1 --use_nnapi=true --num_runs=1 --nnapi_support_library_path=./libarmnn_support_library.so --nnapi_accelerator_name=arm-armnn-sl
27~~~
28
29### License
30
31The Arm NN Support Library Neural Networks driver is provided under the [MIT](https://spdx.org/licenses/MIT.html) license.
32See [LICENSE](LICENSE) for more information. Contributions to this project are accepted under the same license.
33
34Individual files contain the following tag instead of the full license text.
35
36    SPDX-License-Identifier: MIT
37
38This enables machine processing of license information based on the SPDX License Identifiers that are available here: http://spdx.org/licenses/
39

README.md.license

1#
2# Copyright © 2022 ARM Ltd and Contributors. All rights reserved.
3# SPDX-License-Identifier: MIT
4#
5