1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
|
------ ArmNN for Android NNAPI supported operations ------
This 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.
android.hardware.neuralnetworks@1.1 models available in Android P can be executed if they return true from the utility method compliantWithV1_0(model).
For more information on the Android Neural Networks API, see https://developer.android.com/ndk/guides/neuralnetworks/index.html
For integration and usage documentation, please see README.md.
--- Support for Android Neural Networks HAL operations ---
The following AndroidNN operations are currently supported.
AndroidNN operator Tensor type supported
ADD (FLOAT32)
AVERAGE_POOL_2D (FLOAT32,QUANT8_ASYMM)
CONCATENATION (FLOAT32)
CONV_2D (FLOAT32,QUANT8_ASYMM)
DEPTHWISE_CONV_2D* (FLOAT32,QUANT8_ASYMM)
FLOOR (FLOAT32)
FULLY_CONNECTED (FLOAT32)
L2_NORMALIZATION (FLOAT32)
L2_POOL_2D (FLOAT32)
LOCAL_RESPONSE_NORMALIZATION (FLOAT32)
LOGISTIC (FLOAT32,QUANT8_ASYMM)
MAX_POOL_2D (FLOAT32,QUANT8_ASYMM)
MUL (FLOAT32)
RELU (FLOAT32,QUANT8_ASYMM)
RELU1 (FLOAT32,QUANT8_ASYMM)
RELU6 (FLOAT32,QUANT8_ASYMM)
RESHAPE (FLOAT32,QUANT8_ASYMM)
RESIZE_BILINEAR (FLOAT32)
SOFTMAX (FLOAT32,QUANT8_ASYMM)
TANH (FLOAT32)
LSTM (FLOAT32)
* Depthwise convolution only supports a value of 1 for the depth multiplier. In addition, the QUANT8_ASYMM version only supports 3x3 kernels.
--- Unsupported operators ---
The following AndroidNN 1.0 operations are currently not supported.
DEPTH_TO_SPACE
DEQUANTIZE
EMBEDDING_LOOKUP
HASHTABLE_LOOKUP
LSH_PROJECTION
RNN
SPACE_TO_DEPTH
SVDF
Where 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.
The following AndroidNN 1.1 operations are currently not supported.
BATCH_TO_SPACE_ND
DIV
MEAN
PAD
SPACE_TO_BATCH_ND
SQUEEZE
STRIDED_SLICE
SUB
TRANSPOSE
Where any of these operations are present the model will return false from the compliantWithV1_0(model) and the driver will not currently be utilised.
|