blob: a47edf5ff9bc4cfd7bfa04516b923253b83953c1 [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)
telsoa01ce3e84a2018-08-31 09:31:35 +010036LSTM (FLOAT32)
telsoa015307bc12018-03-09 13:51:08 +000037
surmeh0149b9e102018-05-17 14:11:25 +010038* 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 +000039
40--- Unsupported operators ---
41
telsoa01ce3e84a2018-08-31 09:31:35 +010042The following AndroidNN 1.0 operations are currently not supported.
telsoa015307bc12018-03-09 13:51:08 +000043
44DEPTH_TO_SPACE
45DEQUANTIZE
46EMBEDDING_LOOKUP
47HASHTABLE_LOOKUP
48LSH_PROJECTION
telsoa015307bc12018-03-09 13:51:08 +000049RNN
50SPACE_TO_DEPTH
51SVDF
52
53Where 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 +010054
55The following AndroidNN 1.1 operations are currently not supported.
56
57BATCH_TO_SPACE_ND
58DIV
59MEAN
60PAD
61SPACE_TO_BATCH_ND
telsoa01ce3e84a2018-08-31 09:31:35 +010062STRIDED_SLICE
63SUB
64TRANSPOSE
65
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.