surmeh01 | 49b9e10 | 2018-05-17 14:11:25 +0100 | [diff] [blame] | 1 | ------ ArmNN for Android NNAPI supported operations ------ |
telsoa01 | 5307bc1 | 2018-03-09 13:51:08 +0000 | [diff] [blame] | 2 | |
Matthew Bentham | a3e23ca | 2019-05-13 12:49:59 +0100 | [diff] [blame] | 3 | This release of ArmNN for Android supports use as a driver for the Android Neural Networks API. It implements the |
Teresa Charlin | e75d09e | 2020-05-22 13:41:04 +0100 | [diff] [blame^] | 4 | android.hardware.neuralnetworks@1.0, android.hardware.neuralnetworks@1.1, android.hardware.neuralnetworks@1.2 and |
| 5 | android.hardware.neuralnetworks@1.3 |
Aron Virginas-Tar | b23732b | 2019-06-17 15:48:45 +0100 | [diff] [blame] | 6 | HAL interfaces. |
telsoa01 | 5307bc1 | 2018-03-09 13:51:08 +0000 | [diff] [blame] | 7 | |
| 8 | For more information on the Android Neural Networks API, see https://developer.android.com/ndk/guides/neuralnetworks/index.html |
| 9 | |
| 10 | For integration and usage documentation, please see README.md. |
| 11 | |
| 12 | --- Support for Android Neural Networks HAL operations --- |
| 13 | |
Teresa Charlin | e75d09e | 2020-05-22 13:41:04 +0100 | [diff] [blame^] | 14 | The following AndroidNN HAL 1.0, 1.1, 1.2 and 1.3 operations are currently supported: |
telsoa01 | 5307bc1 | 2018-03-09 13:51:08 +0000 | [diff] [blame] | 15 | |
| 16 | AndroidNN operator Tensor type supported |
Kevin May | 407718f | 2019-09-09 14:46:41 +0100 | [diff] [blame] | 17 | ABS (FLOAT32) |
Teresa Charlin | e75d09e | 2020-05-22 13:41:04 +0100 | [diff] [blame^] | 18 | ADD (FLOAT32, QUANT8_ASYMM, QUANT8_ASYMM_SIGNED) |
| 19 | ARGMAX (FLOAT32, QUANT8_ASYMM, QUANT8_ASYMM_SIGNED) |
| 20 | ARGMIN (FLOAT32, QUANT8_ASYMM, QUANT8_ASYMM_SIGNED) |
| 21 | AVERAGE_POOL_2D (FLOAT32, QUANT8_ASYMM, QUANT8_ASYMM_SIGNED) |
| 22 | BATCH_TO_SPACE_ND (FLOAT32, QUANT8_ASYMM, QUANT8_ASYMM_SIGNED) |
| 23 | CONCATENATION (FLOAT32, FLOAT16, QUANT8_ASYMM, QUANT8_ASYMM_SIGNED) |
| 24 | CONV_2D (FLOAT32, QUANT8_ASYMM, QUANT8_ASYMM_SIGNED) |
| 25 | DEPTH_TO_SPACE (FLOAT32, FLOAT16, QUANT8_ASYMM, QUANT8_ASYMM_SIGNED) |
| 26 | DEPTHWISE_CONV_2D (FLOAT32, QUANT8_ASYMM, QUANT8_ASYMM_SIGNED) |
| 27 | DEQUANTIZE (FLOAT32 (output only), QUANT8_ASYMM and QUANT8_ASYMM_SIGNED (input only)) |
Aron Virginas-Tar | 9acf579 | 2019-11-18 16:21:23 +0000 | [diff] [blame] | 28 | DIV (FLOAT32, QUANT8_ASYMM) |
Sadik Armagan | 51ba2c6 | 2020-03-31 15:36:25 +0100 | [diff] [blame] | 29 | ELU (FLOAT32, QUANT8_ASYMM) |
Teresa Charlin | e75d09e | 2020-05-22 13:41:04 +0100 | [diff] [blame^] | 30 | EQUAL (FLOAT32, QUANT8_ASYMM, QUANT8_ASYMM_SIGNED) |
| 31 | EXPAND_DIMS (FLOAT32, FLOAT16, QUANT8_ASYMM, QUANT8_ASYMM_SIGNED) |
telsoa01 | 5307bc1 | 2018-03-09 13:51:08 +0000 | [diff] [blame] | 32 | FLOOR (FLOAT32) |
Teresa Charlin | e75d09e | 2020-05-22 13:41:04 +0100 | [diff] [blame^] | 33 | FULLY_CONNECTED (FLOAT32, QUANT8_ASYMM, QUANT8_ASYMM_SIGNED) |
| 34 | GREATER (FLOAT32, QUANT8_ASYMM, QUANT8_ASYMM_SIGNED) |
| 35 | GREATER_EQUAL (FLOAT32, QUANT8_ASYMM, QUANT8_ASYMM_SIGNED) |
| 36 | GROUPED_CONV_2D (FLOAT32, QUANT8_ASYMM, QUANT8_ASYMM_SIGNED) |
| 37 | HARD_SWISH (FLOAT32, QUANT8_ASYMM, QUANT8_ASYMM_SIGNED) |
Aron Virginas-Tar | ad75453 | 2019-10-10 14:02:37 +0100 | [diff] [blame] | 38 | INSTANCE_NORMALIZATION (FLOAT32) |
telsoa01 | 5307bc1 | 2018-03-09 13:51:08 +0000 | [diff] [blame] | 39 | L2_NORMALIZATION (FLOAT32) |
Aron Virginas-Tar | 9acf579 | 2019-11-18 16:21:23 +0000 | [diff] [blame] | 40 | L2_POOL_2D (FLOAT32, QUANT8_ASYMM) |
Teresa Charlin | e75d09e | 2020-05-22 13:41:04 +0100 | [diff] [blame^] | 41 | LESS (FLOAT32, QUANT8_ASYMM, QUANT8_ASYMM_SIGNED) |
| 42 | LESS_EQUAL (FLOAT32, QUANT8_ASYMM, QUANT8_ASYMM_SIGNED) |
telsoa01 | 5307bc1 | 2018-03-09 13:51:08 +0000 | [diff] [blame] | 43 | LOCAL_RESPONSE_NORMALIZATION (FLOAT32) |
Teresa Charlin | e75d09e | 2020-05-22 13:41:04 +0100 | [diff] [blame^] | 44 | LOGISTIC (FLOAT32, QUANT8_ASYMM, QUANT8_ASYMM_SIGNED) |
Aron Virginas-Tar | 75e6779 | 2019-10-15 13:33:03 +0100 | [diff] [blame] | 45 | LOG_SOFTMAX (FLOAT32) |
Ferran Balaguer | d04c043 | 2018-11-15 14:48:05 +0000 | [diff] [blame] | 46 | LSTM (FLOAT32) |
Teresa Charlin | e75d09e | 2020-05-22 13:41:04 +0100 | [diff] [blame^] | 47 | MAXIMUM (FLOAT32, QUANT8_ASYMM, QUANT8_ASYMM_SIGNED) |
| 48 | MAX_POOL_2D (FLOAT32, QUANT8_ASYMM, QUANT8_ASYMM_SIGNED) |
| 49 | MEAN (FLOAT32, QUANT8_ASYMM, QUANT8_ASYMM_SIGNED) |
| 50 | MINIMUM (FLOAT32, QUANT8_ASYMM, QUANT8_ASYMM_SIGNED) |
| 51 | MUL (FLOAT32, QUANT8_ASYMM, QUANT8_ASYMM_SIGNED) |
| 52 | NEG (FLOAT32) |
| 53 | NOT_EQUAL (FLOAT32, QUANT8_ASYMM, QUANT8_ASYMM_SIGNED) |
| 54 | PAD (FLOAT32, FLOAT16, QUANT8_ASYMM, QUANT8_ASYMM_SIGNED) |
Teresa Charlin | e9eeb20 | 2019-11-27 12:55:21 +0000 | [diff] [blame] | 55 | PAD_V2 (FLOAT32, FLOAT16, QUANT8_ASYMM) |
Teresa Charlin | e75d09e | 2020-05-22 13:41:04 +0100 | [diff] [blame^] | 56 | PRELU (FLOAT32, QUANT8_ASYMM, QUANT8_ASYMM_SIGNED) |
| 57 | QUANTIZE (FLOAT32 (input only), QUANT8_ASYMM and QUANT8_ASYMM_SIGNED (output only)) |
Sadik Armagan | 1ba9989 | 2019-08-21 15:03:44 +0100 | [diff] [blame] | 58 | QUANTIZED_16BIT_LSTM (QUANT8_ASYMM) |
Sadik Armagan | 813f230 | 2020-05-19 14:10:30 +0100 | [diff] [blame] | 59 | QUANTIZED_LSTM (QUANT8_ASYMM) |
Teresa Charlin | e75d09e | 2020-05-22 13:41:04 +0100 | [diff] [blame^] | 60 | RELU (FLOAT32, QUANT8_ASYMM, QUANT8_ASYMM_SIGNED) |
| 61 | RELU1 (FLOAT32, QUANT8_ASYMM, QUANT8_ASYMM_SIGNED) |
| 62 | RELU6 (FLOAT32, QUANT8_ASYMM, QUANT8_ASYMM_SIGNED) |
| 63 | RESHAPE (FLOAT32, FLOAT16, QUANT8_ASYMM, QUANT8_ASYMM_SIGNED) |
Aron Virginas-Tar | 9acf579 | 2019-11-18 16:21:23 +0000 | [diff] [blame] | 64 | RESIZE_BILINEAR (FLOAT32, QUANT8_ASYMM) |
| 65 | RESIZE_NEAREST_NEIGHBOR (FLOAT32, QUANT8_ASYMM) |
Aron Virginas-Tar | a97efbb | 2019-09-10 14:46:41 +0100 | [diff] [blame] | 66 | RSQRT (FLOAT32) |
Teresa Charlin | e75d09e | 2020-05-22 13:41:04 +0100 | [diff] [blame^] | 67 | SOFTMAX (FLOAT32, QUANT8_ASYMM, QUANT8_ASYMM_SIGNED) |
| 68 | SPACE_TO_BATCH_ND (FLOAT32, QUANT8_ASYMM, QUANT8_ASYMM_SIGNED) |
| 69 | SPACE_TO_DEPTH (FLOAT32, FLOAT16, QUANT8_ASYMM, QUANT8_ASYMM_SIGNED) |
Sadik Armagan | 701d9a0 | 2019-09-04 15:16:18 +0100 | [diff] [blame] | 70 | SQRT (FLOAT32) |
Teresa Charlin | e75d09e | 2020-05-22 13:41:04 +0100 | [diff] [blame^] | 71 | SQUEEZE (FLOAT32, FLOAT16, QUANT8_ASYMM, QUANT8_ASYMM_SIGNED) |
| 72 | STRIDED_SLICE (FLOAT32, QUANT8_ASYMM, QUANT8_ASYMM_SIGNED) |
| 73 | SUB (FLOAT32, QUANT8_ASYMM, QUANT8_ASYMM_SIGNED) |
| 74 | TANH (FLOAT32, QUANT8_ASYMM, QUANT8_ASYMM_SIGNED) |
| 75 | TRANSPOSE (FLOAT32, QUANT8_ASYMM, QUANT8_ASYMM_SIGNED) |
| 76 | TRANSPOSE_CONV_2D (FLOAT32, QUANT8_ASYMM, QUANT8_ASYMM_SIGNED) |
telsoa01 | 5307bc1 | 2018-03-09 13:51:08 +0000 | [diff] [blame] | 77 | |
Mike Kelly | 56df76c | 2019-06-14 15:51:39 +0100 | [diff] [blame] | 78 | Where operations are not supported by the ArmNN Android NN Driver, the driver indicates this to the framework |
| 79 | appropriately and the framework implements those operations using a CPU implementation. |
Teresa Charlin | e75d09e | 2020-05-22 13:41:04 +0100 | [diff] [blame^] | 80 | |
Aron Virginas-Tar | 9acf579 | 2019-11-18 16:21:23 +0000 | [diff] [blame] | 81 | NOTE: By convention, only those tensor types have been listed above, which are fully supported across all |
Teresa Charlin | e75d09e | 2020-05-22 13:41:04 +0100 | [diff] [blame^] | 82 | ArmNN backends. |
| 83 | - FLOAT16 input tensors are partially supported on most HAL 1.2 operators on the GpuAcc and |
| 84 | CpuRef backends, however not on CpuAcc. |
| 85 | - QUANT8_ASYMM_SIGNED has been added to the list in spite of not being supported in GpuAcc, |
| 86 | as this data type was added as part of HAL 1.3, which is currently not supported by GpuAcc. |