Jan Eilers | 31a7c89 | 2021-01-29 14:18:13 +0000 | [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 | @page delegate TfLite Delegate |
| 10 | @tableofcontents |
| 11 | |
| 12 | |
| 13 | @section delegateintro About the delegate |
| 14 | 'armnnDelegate' is a library for accelerating certain TensorFlow Lite (TfLite) operators on Arm hardware. It can be |
| 15 | integrated in TfLite using its delegation mechanism. TfLite will then delegate the execution of operators supported by |
| 16 | Arm NN to Arm NN. |
| 17 | |
| 18 | The main difference to our @ref S6_tf_lite_parser is the amount of operators you can run with it. If none of the active |
| 19 | backends support an operation in your model you won't be able to execute it with our parser. In contrast to that, TfLite |
| 20 | only delegates operations to the armnnDelegate if it does support them and otherwise executes them itself. In other |
| 21 | words, every TfLite model can be executed and every operation in your model that we can accelerate will be accelerated. |
| 22 | That is the reason why the armnnDelegate is our recommended way to accelerate TfLite models. |
| 23 | |
| 24 | If you need help building the armnnDelegate, please take a look at our [build guide](delegate/BuildGuideNative.md). |
| 25 | An example how to setup TfLite to integrate the armnnDelegate can be found in this |
| 26 | guide: [Integrate the delegate into python](delegate/IntegrateDelegateIntoPython.md) |
| 27 | |
| 28 | |
| 29 | @section delegatesupport Supported Operators |
| 30 | This reference guide provides a list of TensorFlow Lite operators the Arm NN SDK currently supports. |
| 31 | |
| 32 | @subsection delegatefullysupported Fully supported |
| 33 | |
| 34 | The Arm NN SDK TensorFlow Lite delegate currently supports the following operators: |
| 35 | |
| 36 | - ABS |
| 37 | |
| 38 | - ADD |
| 39 | |
| 40 | - ARGMAX |
| 41 | |
| 42 | - ARGMIN |
| 43 | |
| 44 | - AVERAGE_POOL_2D, Supported Fused Activation: RELU , RELU6 , TANH, NONE |
| 45 | |
Matthew Sloyan | a35b40b | 2021-02-05 17:22:28 +0000 | [diff] [blame] | 46 | - BATCH_TO_SPACE_ND |
| 47 | |
Sadik Armagan | 937565b | 2021-04-21 14:03:28 +0100 | [diff] [blame] | 48 | - CAST |
| 49 | |
Jan Eilers | 31a7c89 | 2021-01-29 14:18:13 +0000 | [diff] [blame] | 50 | - CONCATENATION, Supported Fused Activation: RELU , RELU6 , TANH, NONE |
| 51 | |
| 52 | - CONV_2D, Supported Fused Activation: RELU , RELU6 , TANH, NONE |
| 53 | |
Matthew Sloyan | 81ec994 | 2021-10-12 10:26:30 +0100 | [diff] [blame] | 54 | - CONV_3D, Supported Fused Activation: RELU , RELU6 , TANH, NONE |
| 55 | |
Jan Eilers | 31a7c89 | 2021-01-29 14:18:13 +0000 | [diff] [blame] | 56 | - DEPTH_TO_SPACE |
| 57 | |
| 58 | - DEPTHWISE_CONV_2D, Supported Fused Activation: RELU , RELU6 , TANH, NONE |
| 59 | |
| 60 | - DEQUANTIZE |
| 61 | |
| 62 | - DIV |
| 63 | |
| 64 | - EQUAL |
| 65 | |
| 66 | - ELU |
| 67 | |
| 68 | - EXP |
| 69 | |
| 70 | - FULLY_CONNECTED, Supported Fused Activation: RELU , RELU6 , TANH, NONE |
| 71 | |
Sadik Armagan | 788e2c6 | 2021-02-10 16:26:44 +0000 | [diff] [blame] | 72 | - FLOOR |
| 73 | |
Jan Eilers | 31a7c89 | 2021-01-29 14:18:13 +0000 | [diff] [blame] | 74 | - GATHER |
| 75 | |
Teresa Charlin | d5c0ed2 | 2022-04-25 18:23:41 +0100 | [diff] [blame] | 76 | - GATHER_ND |
| 77 | |
Jan Eilers | 31a7c89 | 2021-01-29 14:18:13 +0000 | [diff] [blame] | 78 | - GREATER |
| 79 | |
| 80 | - GREATER_OR_EQUAL |
| 81 | |
| 82 | - HARD_SWISH |
| 83 | |
| 84 | - LESS |
| 85 | |
| 86 | - LESS_OR_EQUAL |
| 87 | |
| 88 | - LOCAL_RESPONSE_NORMALIZATION |
| 89 | |
| 90 | - LOGICAL_AND |
Jan Eilers | 1121c6b | 2021-02-19 09:38:03 +0000 | [diff] [blame] | 91 | |
Jan Eilers | 31a7c89 | 2021-01-29 14:18:13 +0000 | [diff] [blame] | 92 | - LOGICAL_NOT |
Jan Eilers | 1121c6b | 2021-02-19 09:38:03 +0000 | [diff] [blame] | 93 | |
Jan Eilers | 31a7c89 | 2021-01-29 14:18:13 +0000 | [diff] [blame] | 94 | - LOGICAL_OR |
| 95 | |
| 96 | - LOGISTIC |
| 97 | |
| 98 | - LOG_SOFTMAX |
| 99 | |
Jan Eilers | 1121c6b | 2021-02-19 09:38:03 +0000 | [diff] [blame] | 100 | - LSTM |
| 101 | |
Jan Eilers | 31a7c89 | 2021-01-29 14:18:13 +0000 | [diff] [blame] | 102 | - L2_NORMALIZATION |
| 103 | |
| 104 | - L2_POOL_2D |
| 105 | |
| 106 | - MAXIMUM |
| 107 | |
| 108 | - MAX_POOL_2D, Supported Fused Activation: RELU , RELU6 , TANH, NONE |
| 109 | |
| 110 | - MEAN |
| 111 | |
| 112 | - MINIMUM |
| 113 | |
Matthew Sloyan | af3a4ef | 2021-10-22 15:48:12 +0100 | [diff] [blame] | 114 | - MIRROR_PAD |
| 115 | |
Jan Eilers | 31a7c89 | 2021-01-29 14:18:13 +0000 | [diff] [blame] | 116 | - MUL |
| 117 | |
| 118 | - NEG |
| 119 | |
| 120 | - NOT_EQUAL |
| 121 | |
Kevin May | c7bd7e8 | 2021-05-10 12:46:40 +0100 | [diff] [blame] | 122 | - PACK |
| 123 | |
Jan Eilers | 31a7c89 | 2021-01-29 14:18:13 +0000 | [diff] [blame] | 124 | - PAD |
| 125 | |
Jan Eilers | 1121c6b | 2021-02-19 09:38:03 +0000 | [diff] [blame] | 126 | - PRELU |
| 127 | |
Jan Eilers | 31a7c89 | 2021-01-29 14:18:13 +0000 | [diff] [blame] | 128 | - QUANTIZE |
| 129 | |
Jan Eilers | 1121c6b | 2021-02-19 09:38:03 +0000 | [diff] [blame] | 130 | - RANK |
| 131 | |
| 132 | - REDUCE_MAX |
| 133 | |
| 134 | - REDUCE_MIN |
| 135 | |
Jan Eilers | 31a7c89 | 2021-01-29 14:18:13 +0000 | [diff] [blame] | 136 | - RESHAPE |
| 137 | |
| 138 | - RESIZE_BILINEAR |
| 139 | |
| 140 | - RESIZE_NEAREST_NEIGHBOR |
| 141 | |
| 142 | - RELU |
| 143 | |
| 144 | - RELU6 |
| 145 | |
| 146 | - RSQRT |
| 147 | |
Matthew Sloyan | e369dbd | 2021-08-19 12:05:44 +0100 | [diff] [blame] | 148 | - SHAPE |
| 149 | |
Jan Eilers | 31a7c89 | 2021-01-29 14:18:13 +0000 | [diff] [blame] | 150 | - SOFTMAX |
| 151 | |
Matthew Sloyan | a35b40b | 2021-02-05 17:22:28 +0000 | [diff] [blame] | 152 | - SPACE_TO_BATCH_ND |
| 153 | |
Jan Eilers | 31a7c89 | 2021-01-29 14:18:13 +0000 | [diff] [blame] | 154 | - SPACE_TO_DEPTH |
| 155 | |
| 156 | - SPLIT |
| 157 | |
| 158 | - SPLIT_V |
| 159 | |
| 160 | - SQRT |
| 161 | |
Jan Eilers | 1121c6b | 2021-02-19 09:38:03 +0000 | [diff] [blame] | 162 | - STRIDED_SLICE |
| 163 | |
Jan Eilers | 31a7c89 | 2021-01-29 14:18:13 +0000 | [diff] [blame] | 164 | - SUB |
| 165 | |
Jan Eilers | 1121c6b | 2021-02-19 09:38:03 +0000 | [diff] [blame] | 166 | - SUM |
| 167 | |
Jan Eilers | 31a7c89 | 2021-01-29 14:18:13 +0000 | [diff] [blame] | 168 | - TANH |
| 169 | |
| 170 | - TRANSPOSE |
| 171 | |
| 172 | - TRANSPOSE_CONV |
| 173 | |
Narumol Prangnawarat | bd575b2 | 2021-08-31 16:53:54 +0100 | [diff] [blame] | 174 | - UNIDIRECTIONAL_SEQUENCE_LSTM |
| 175 | |
Kevin May | c7bd7e8 | 2021-05-10 12:46:40 +0100 | [diff] [blame] | 176 | - UNPACK |
| 177 | |
Jan Eilers | 31a7c89 | 2021-01-29 14:18:13 +0000 | [diff] [blame] | 178 | More machine learning operators will be supported in future releases. |
| 179 | **/ |
| 180 | } |