Snapdragon Neural Processing Engine SDK
Reference Guide
|
snpe-onnx-to-dlc currently supports the following operators and parameters:
Operator | Opset Version Supported | Notes |
---|---|---|
Abs | 1,6 | - |
Add | 1,6,7 | (1). Add with a constant input is supported only immediately following an operation which includes a bias-add. |
And | 1,7 | - |
AveragePool | 1,7,10,11 | (2) |
ArgMax | 1,11 | - |
ArgMin | 1,11 | - |
BatchNormalization | 1,6,7,9,12 | Neither momentum nor training mode are supported. All inputs after the first must be static. Only the first output is generated. |
Ceil | 1,6,13 | - |
Clip | 1,6,11,12 | - |
Concat | 1,4,11 | - |
Constant | 1,9 | Constant ops are interpreted at conversion time when used to represent weights/biases. Otherwise they are left in the network as inputs to later ops. |
Conv | 1,11 | (2). Weight and bias inputs must be static. "kernel_shape" which differs from that of weights is not supported. |
ConvTranspose | 1 | (2). Weight and bias inputs must be static. "strides" must be the same for each axis. |
Div | 1,6,7 | (1) |
Dropout | 1,6,7,10 | Only test mode (i.e. noop) is supported. Mask output is not generated. |
Elu | 1,6 | - |
Equal | 1,7,11 | - |
Exp | 1,6 | - |
Flatten | 1,9,11 | - |
Floor | 1,6 | - |
Gemm | 1,6,7,9,11 | Gemm is only supported in the case where it is used to emulate FC; transA=0, transB=1, broadcast=1. |
GlobalAveragePool | 1 | - |
GlobalMaxPool | 1 | - |
Greater | 1,7,9 | - |
GreaterOrEqual | 12 | - |
GRU | 1,7 | - Custom activations, user-defined activations, clip and linear_before_reset=1 are not supported. |
Identity | 1 | - |
InstanceNormalization | 1,6 | -Inputs after the first must be static. |
LRN | 1 | - |
LeakyRelu | 1,6 | - |
Less | 1,7,9 | - |
LessOrEqual | 12 | - |
Log | 1,6 | - |
LpNormalization | 1 | - Only support attribute p=2 |
LpPool | 1,2,11 | - |
LSTM | 1,7 | - Custom activations, user-defined activations, clip and input-forget parameters are not supported. |
Matmul | 1,9 | Matmul is only supported when used to interpret an FC layer. The second input must be a set of weights. |
Max | 1,6,8,12 | (1) |
MaxPool | 1,8,10,11 | (2). Only support Dilations = 1. Only support single output, doesn't support Indices output. |
MaxRoiPool | 1 | - |
Min | 1,6,8 | - |
Mul | 1,6,7 | (1) Mul with a constant input is supported only immediately following BatchNormalization operations. |
Neg | 1,6 | - |
Not | 1 | - |
Or | 1,7 | - |
Pad | 1,2,11 | Only constant padding is supported. |
Pow | 1,7,12 | - |
PRelu | 1,6,7,9 | Slope must be static. |
Relu | 1,6 | - |
ReduceMax | 1,11,12 | - |
ReduceMean | 1,11 | - |
ReduceMin | 1,11,12,13 | - |
ReduceSum | 1,11 | - |
Reshape | 1,5 | - |
Resize | 10,11 | Input to Resize node should be 4D |
RNN | 1, 7 | - Custom and user-defined activations (activation_alpha and beta) are not supported. |
Round | 11 | - |
Shape | 1 | Shape is only supported at conversion time. The input to Shape and all operators which manipulate the resulting output shape (eg slice, concat, etc) are also computed at conversion time. |
Sigmoid | 1,6 | - |
Sin | 7 | - |
Slice | 1,10,11 | - |
Softmax | 1,11 | Axis is only allowed to be input_rank -1 or -1, which is last dimension. |
Split | 1,2,11 | - |
Squeeze | 1,11 | - |
Sqrt | 1,6 | - |
Sub | 1,6,7 | (1) |
Sum | 1,6,8 | (1) |
Tanh | 1,6 | - |
Tile | 1.6 | - |
TopK | 1,10,11 | - |
Transpose | 1 | - |
Unsqueeze | 1,11 | - |
Upsample | 1,7,9 | Only bilinear and nearest neighbor modes are supported. |
FC | 1 | Both "axis" and "axis_w" must be 1. |
ScaledTanh | 1,6 | Scaledtanh is removed in ONNX release v1.5.0 |
ThresholdRelu | 1 | - |
spacetodepth | 1,13 | - |
(1) Broadcast is not supported in the general case.
(2) "auto_pad" value of SAME_UPPER is not supported. Asymmetric "pads" with "xi_begin" values other than 0 are not supported.