Jan Eilers | 3309c33 | 2021-08-17 13:50:08 +0100 | [diff] [blame] | 1 | /// Copyright (c) 2021 ARM Limited and Contributors. All rights reserved. |
| 2 | /// |
| 3 | /// SPDX-License-Identifier: MIT |
| 4 | /// |
| 5 | |
| 6 | namespace armnn |
| 7 | { |
| 8 | /** |
| 9 | This is a very simple example which uses the Arm NN SDK API to create a neural network which consists of |
| 10 | nothing else but a single fully connected layer with a single weights value. It's as minimalistic as it can get. |
| 11 | |
| 12 | @note Most of our users won't use our API to create a network manually. Usually you would use one of our software |
| 13 | tools like the @ref S6_tf_lite_parser "TfLite Parser" that will translate a TfLite model into Arm NN for you. |
| 14 | Still it's a very nice example to see how an Arm NN network is created, optimized and executed. |
| 15 | |
| 16 | (You can find more complex examples using the TfLite Parser in samples/ObjectDetection and |
| 17 | samples/SpeechRecognition. And another example using @ref md_python_pyarmnn_README "PyArmnn" in |
| 18 | samples/ImageClassification) |
| 19 | @example SimpleSample.cpp |
| 20 | **/ |
| 21 | |
| 22 | /** |
| 23 | This is simple example that shows how to use a dynamic backend. Dynamic Backends can be compiled as standalone |
| 24 | against Arm NN and can be loaded by Arm NN dynamically at runtime. This way you can quickly integrate new backends |
| 25 | without having to worry or recompile Arm NN. |
| 26 | |
| 27 | This example makes use of a very simplistic dynamic backend called 'SampleDynamic'. There is a guide that tells you |
| 28 | more about dynamic backends and how this particular backend was created so you can create a dynamic backend |
| 29 | yourself @ref md_src_dynamic_README. |
| 30 | @example DynamicSample.cpp |
| 31 | **/ |
| 32 | |
| 33 | /** |
| 34 | This example is basically a copy of the SimpleSample example. But it makes use of a CustomAllocator to allocate |
| 35 | memory for the inputs, outputs and inter layer memory. |
| 36 | |
| 37 | @note This is currently an experimental interface |
| 38 | @example CustomMemoryAllocatorSample.cpp |
| 39 | **/ |
| 40 | |
Jan Eilers | e38c418 | 2021-09-02 13:12:11 +0100 | [diff] [blame] | 41 | /** |
| 42 | Yet another variant of the SimpleSample application. In this little sample app you will be shown how to run a |
| 43 | network multiple times asynchronously. |
| 44 | |
| 45 | @note This is currently an experimental interface |
| 46 | @example AsyncExecutionSample.cpp |
| 47 | **/ |
| 48 | |
Jan Eilers | 3309c33 | 2021-08-17 13:50:08 +0100 | [diff] [blame] | 49 | } |