|
Snapdragon Neural Processing Engine SDK
Reference Guide
|
snpe-onnx-to-dlc currently supports the following operators and parameters:
| Operator | Opset Version Supported | Notes |
|---|---|---|
| Add | 1,6 | (1). Add with a constant input is supported only immediately following an operation which includes a bias-add. |
| AveragePool | 1 | (2) |
| BatchNormalization | 1,6,7 | Neither momentum nor training mode are supported. All inputs after the first must be static. Only the first output is generated. |
| Clip | 1 | - |
| Concat | 1,4 | - |
| Constant | 1 | 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 | (2). Weight and bias inputs must be static. "kernel_shape" which differs from that of weights is not supported. |
| ConvTranspse | 1 | (2). Weight and bias inputs must be static. "strides" must be the same for each axis. |
| Dropout | 1 | Only test mode (i.e. noop) is supported. Mask output is not generated. |
| Elu | 1,6 | - |
| Flatten | 1 | - |
| Gemm | 1 | Gemm is only supported in the case where it is used to emulate FC; transA=0, transB=1, broadcast=1. |
| GlobalAveragePool | 1 | - |
| GlobalMaxPool | 1 | - |
| GRU | 1, 7 | - Custom activations, user-defined activations, clip and linear_before_reset=1 are not supported. |
| InstanceNormalization | 1 | -Inputs after the first must be static. |
| LRN | 1 | - |
| LeakyRelu | 1 | - |
| LSTM | 7 | - Custom activations, user-defined activations, clip and input-forget parameters are not supported. |
| Matmul | 1 | Matmul is only supported when used to interpret an FC layer. The second input must be a set of weights. |
| Max | 1,6,8 | - |
| MaxPool | 1 | (2) |
| Mul | 1 | (1) Mul with a constant input is supported only immediately following BatchNormalization operations. |
| Pad | 1,2 | Only constant padding is supported. |
| PRelu | 1,6,7 | Slope must be static. |
| Relu | 1 | - |
| Reshape | 1,5 | - |
| RNN | 1, 7 | - Custom and user-defined activations (activation_alpha and beta) are not supported. |
| 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 | - |
| Slice | 1 | - |
| Softmax | 1 | Inputs with rank greater than 2 are not supported, and will not be coerced to 2D. |
| Split | 2 | - |
| Squeeze | 1 | - |
| Sum | 1,6,7 | - |
| Tanh | 1 | - |
| Transpose | 1 | - |
| Unsqueeze | 1 | - |
| Upsample | 7 | Only bilinear and nearest neighbor modes are supported. |
| FC | 1 | Both "axis" and "axis_w" must be 1. |
| ScaledTanh | 1 | - |
| ThresholdRelu | 1 | - |
(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.