IVGCVSW-5605 Doxygen: Use readme.md as mainpage in doxygen
[platform/upstream/armnn.git] / README.md
1 # Introduction
2
3 * [Software tools overview](#software-tools-overview)
4 * [Where to find more information](#where-to-find-more-information)
5 * [Contributions](#contributions)
6 * [Disclaimer](#disclaimer)
7 * [License](#license)
8 * [Third-Party](#third-party)
9
10 Arm NN is a key component of the [machine learning platform](https://mlplatform.org/), which is part of the 
11 [Linaro Machine Intelligence Initiative](https://www.linaro.org/news/linaro-announces-launch-of-machine-intelligence-initiative/). 
12
13 The Arm NN SDK is a set of open-source software and tools that enables machine learning workloads on power-efficient 
14 devices. It provides a bridge between existing neural network frameworks and power-efficient Cortex-A CPUs, 
15 Arm Mali GPUs and Arm Ethos NPUs.
16
17 <img align="center" width="400" src="https://developer.arm.com/-/media/Arm Developer Community/Images/Block Diagrams/Arm-NN/Arm-NN-Frameworks-Diagram.png"/>
18
19 Arm NN SDK utilizes the Compute Library to target programmable cores, such as Cortex-A CPUs and Mali GPUs, 
20 as efficiently as possible. To target Ethos NPUs the NPU-Driver is utilized. We also welcome new contributors to provide 
21 their [own driver and backend](src/backends/README.md). Note, Arm NN does not provide support for Cortex-M CPUs.
22
23 The latest release supports models created with **Caffe**, **TensorFlow**, **TensorFlow Lite** (TfLite) and **ONNX**. 
24 Arm NN analysis a given model and replaces the operations within it with implementations particularly designed for the 
25 hardware you want to execute it on. This results in a great boost of execution speed. How much faster your neural 
26 network can be executed depends on the operations it contains and the available hardware. Below you can see the speedup 
27 we've been experiencing in our experiments with a few common networks.
28
29 <img align="center" width="700" src="https://developer.arm.com/-/media/developer/Other Images/Arm_NN_performance_relative_to_other_NN_frameworks_diagram.png"/>
30
31 Arm NN is written using portable C++14 and the build system uses [CMake](https://cmake.org/), therefore it is possible 
32 to build for a wide variety of target platforms, from a wide variety of host environments.
33
34
35 ## Getting started: Software tools overview
36 Depending on what kind of framework (Tensorflow, Caffe, ONNX) you've been using to create your model there are multiple 
37 software tools available within Arm NN that can serve your needs.
38
39 Generally, there is a **parser** available **for each supported framework**. Each parser allows you to run a models from 
40 one framework e.g. the TfLite-Parser lets you run TfLite models. You can integrate these parsers into your own 
41 application to load, optimize and execute your model. We also provide **python bindings** for our parsers and the Arm NN core.
42 We call the result **PyArmNN**. Therefore your application can be conveniently written in either C++ using the "original"
43 Arm NN library or in Python using PyArmNN. You can find tutorials on how to setup and use our parsers in our doxygen
44 documentation. The latest version can be found in the [wiki section](https://github.com/ARM-software/armnn/wiki/Documentation) 
45 of this repository.
46
47 Admittedly, building Arm NN and its parsers from source is not always easy to accomplish. We are trying to increase our
48 usability by providing Arm NN as a **Debian package**. Our debian package is the most easy way to install the Arm NN Core,
49 the TfLite Parser and PyArmNN (More support is about to come): [Installation via Apt Repository](InstallationViaAptRepository.md)
50
51 The newest member in Arm NNs software toolkit is the **TfLite Delegate**. The delegate can be integrated in TfLite.
52 TfLite will then delegate operations that can be accelerated with Arm NN to Arm NN. Every other operation will still be
53 executed with the usual TfLite runtime. This is our **recommended way to accelerate TfLite models**. As with our parsers
54 there are tutorials in our doxygen documentation that can be found in the [wiki section](https://github.com/ARM-software/armnn/wiki/Documentation).
55
56 If you would like to use **Arm NN on Android** you can follow this guide which explains [how to build Arm NN using the AndroidNDK]().
57 But you might also want to take a look at another repository which implements a hardware abstraction layer (HAL) for 
58 Android. The repository is called [Android-NN-Driver](https://github.com/ARM-software/android-nn-driver) and when 
59 integrated into Android it will automatically run neural networks with Arm NN.
60
61
62 ## Where to find more information
63 The section above introduces the most important tools that Arm NN provides.
64 You can find a complete list in our **doxygen documentation**. The 
65 latest version can be found in the [wiki section](https://github.com/ARM-software/armnn/wiki/Documentation) of our github 
66 repository.
67
68 For FAQs and troubleshooting advice, see [FAQ.md](docs/FAQ.md) 
69 or take a look at previous [github issues](https://github.com/ARM-software/armnn/issues).
70
71
72 ## Note
73 We are currently in the process of removing [boost](https://www.boost.org/) as a dependency to Arm NN. This process 
74 is finished for everything apart from our unit tests. This means you don't need boost to build and use Arm NN but 
75 you need it to execute our unit tests. Boost will soon be removed from Arm NN entirely.
76
77
78 ## Contributions
79 The Arm NN project welcomes contributions. For more details on contributing to Arm NN see the [Contributing page](https://mlplatform.org/contributing/) 
80 on the [MLPlatform.org](https://mlplatform.org/) website, or see the [Contributor Guide](ContributorGuide.md).
81
82 Particularly if you'd like to implement your own backend next to our CPU, GPU and NPU backends there are guides for 
83 backend development: 
84 [Backend development guide](src/backends/README.md), [Dynamic backend development guide](src/dynamic/README.md)
85
86
87 ## Disclaimer
88 The armnn/tests directory contains tests used during Arm NN development. Many of them depend on third-party IP, model 
89 protobufs and image files not distributed with Arm NN. The dependencies of some of the tests are available freely on 
90 the Internet, for those who wish to experiment, but they won't run out of the box.
91
92
93 ## License
94 Arm NN is provided under the [MIT](https://spdx.org/licenses/MIT.html) license.
95 See [LICENSE](LICENSE) for more information. Contributions to this project are accepted under the same license.
96
97 Individual files contain the following tag instead of the full license text.
98
99     SPDX-License-Identifier: MIT
100
101 This enables machine processing of license information based on the SPDX License Identifiers that are available here: http://spdx.org/licenses/
102
103
104 ## Third-party
105 Third party tools used by Arm NN:
106
107 | Tool           | License (SPDX ID) | Description                    | Version | Provenience
108 |----------------|-------------------|------------------------------------------------------------------|-------------|-------------------
109 | cxxopts        | MIT               | A lightweight C++ option parser library | SHA 12e496da3d486b87fa9df43edea65232ed852510 | https://github.com/jarro2783/cxxopts
110 | fmt            | MIT               | {fmt} is an open-source formatting library providing a fast and safe alternative to C stdio and C++ iostreams. | 7.0.1 | https://github.com/fmtlib/fmt
111 | ghc            | MIT               | A header-only single-file std::filesystem compatible helper library | 1.3.2 | https://github.com/gulrak/filesystem
112 | half           | MIT               | IEEE 754 conformant 16-bit half-precision floating point library | 1.12.0 | http://half.sourceforge.net
113 | mapbox/variant | BSD               | A header-only alternative to 'boost::variant' | 1.1.3 | https://github.com/mapbox/variant
114 | stb            | MIT               | Image loader, resize and writer | 2.16 | https://github.com/nothings/stb