blob: 8d56edd92cbac9dabb1755a336358dee12d7a14a [file] [log] [blame]
surmeh0149b9e102018-05-17 14:11:25 +01001------ ArmNN for Android NNAPI supported operations ------
telsoa015307bc12018-03-09 13:51:08 +00002
3This release of ArmNN for Android supports use as a driver for the Android Neural Networks API. It implements the android.hardware.neuralnetworks@1.0 interface.
telsoa01ce3e84a2018-08-31 09:31:35 +01004android.hardware.neuralnetworks@1.1 models available in Android P can be executed if they return true from the utility method compliantWithV1_0(model).
telsoa015307bc12018-03-09 13:51:08 +00005
6For more information on the Android Neural Networks API, see https://developer.android.com/ndk/guides/neuralnetworks/index.html
7
8For integration and usage documentation, please see README.md.
9
10--- Support for Android Neural Networks HAL operations ---
11
12The following AndroidNN operations are currently supported.
13
14AndroidNN operator Tensor type supported
Matthew Bentham378333d2018-10-01 16:07:27 +010015ADD (FLOAT32,QUANT8_ASYMM)
telsoa015307bc12018-03-09 13:51:08 +000016AVERAGE_POOL_2D (FLOAT32,QUANT8_ASYMM)
17CONCATENATION (FLOAT32)
surmeh0149b9e102018-05-17 14:11:25 +010018CONV_2D (FLOAT32,QUANT8_ASYMM)
19DEPTHWISE_CONV_2D* (FLOAT32,QUANT8_ASYMM)
telsoa015307bc12018-03-09 13:51:08 +000020FLOOR (FLOAT32)
Matthew Bentham378333d2018-10-01 16:07:27 +010021FULLY_CONNECTED (FLOAT32,QUANT8_ASYMM)
telsoa015307bc12018-03-09 13:51:08 +000022L2_NORMALIZATION (FLOAT32)
23L2_POOL_2D (FLOAT32)
24LOCAL_RESPONSE_NORMALIZATION (FLOAT32)
25LOGISTIC (FLOAT32,QUANT8_ASYMM)
26MAX_POOL_2D (FLOAT32,QUANT8_ASYMM)
Matthew Bentham378333d2018-10-01 16:07:27 +010027MUL (FLOAT32,QUANT8_ASYMM)
telsoa015307bc12018-03-09 13:51:08 +000028RELU (FLOAT32,QUANT8_ASYMM)
29RELU1 (FLOAT32,QUANT8_ASYMM)
30RELU6 (FLOAT32,QUANT8_ASYMM)
31RESHAPE (FLOAT32,QUANT8_ASYMM)
32RESIZE_BILINEAR (FLOAT32)
33SOFTMAX (FLOAT32,QUANT8_ASYMM)
saoste01b8471482018-10-10 09:44:51 +010034SQUEEZE (FLOAT32,QUANT8_ASYMM)
telsoa015307bc12018-03-09 13:51:08 +000035TANH (FLOAT32)
saoste01fe463152018-10-18 17:49:56 +010036TRANSPOSE (FLOAT32,QUANT8_ASYMM)
telsoa01ce3e84a2018-08-31 09:31:35 +010037LSTM (FLOAT32)
telsoa015307bc12018-03-09 13:51:08 +000038
surmeh0149b9e102018-05-17 14:11:25 +010039* Depthwise convolution only supports a value of 1 for the depth multiplier. In addition, the QUANT8_ASYMM version only supports 3x3 kernels.
telsoa015307bc12018-03-09 13:51:08 +000040
41--- Unsupported operators ---
42
telsoa01ce3e84a2018-08-31 09:31:35 +010043The following AndroidNN 1.0 operations are currently not supported.
telsoa015307bc12018-03-09 13:51:08 +000044
45DEPTH_TO_SPACE
46DEQUANTIZE
47EMBEDDING_LOOKUP
48HASHTABLE_LOOKUP
49LSH_PROJECTION
telsoa015307bc12018-03-09 13:51:08 +000050RNN
51SPACE_TO_DEPTH
52SVDF
53
54Where operations are not supported by the ArmNN Android NN Driver, the driver indicates this to the framework appropriately and the framework implements those operations using a CPU implementation.
telsoa01ce3e84a2018-08-31 09:31:35 +010055
56The following AndroidNN 1.1 operations are currently not supported.
57
58BATCH_TO_SPACE_ND
59DIV
60MEAN
61PAD
62SPACE_TO_BATCH_ND
telsoa01ce3e84a2018-08-31 09:31:35 +010063STRIDED_SLICE
64SUB
telsoa01ce3e84a2018-08-31 09:31:35 +010065
66Where any of these operations are present the model will return false from the compliantWithV1_0(model) and the driver will not currently be utilised.