# 算子库支持情况


- MindSpore Lite支持不同硬件后端的算子列表

| 算子名称                            | CPU                                                 | FT04 | FT78        | PNNA  |
| ----------------------------------- |--------------------------------------------------- | --------- | ----------------------- | ----------------------- |
| Abs                                 | FP16<br>FP32<br/>Int32<br/>Int8<br/>UInt8           |       |            | FP32<br/>Int8       |
| AbsGrad                             |FP32                                                |          |         |                        |
| Activation                          | FP16<br/>FP32<br/>Int32<br/>Int8<br/>UInt8          |       |            | FP32<br/>Int8       |
| ActivationGrad                      |FP16<br/>FP32                                       |          |                        |                        |
| Adam                                |FP32                                                |          |                        |                        |
| AddFusion                           |FP16<br/>FP32<br/>Int32<br/>Int8<br/>UInt8<br/>Bool | FP16<br/>FP32<br/>Int32<br/>Int16<br/>Cplx64      | FP32<br/>FP64<br/>Int8<br/>Int32<br/>Int16<br/>Cplx64<br/>Cplx128  | FP32<br/>Int8 |
| AdderFusion                       | FP32                           |          |                        |                        |
| AddGrad                             | FP32                                                |          |                        |                        |
| AddN                                | FP16<br/>FP32                                       |          |        | FP32<br/>Int8    |
| Affine                              | FP32                                                |          |                        |                    |
| All                                 | FP32                                                |          |                        |                        |
| AllGather                           | FP32                                                |         |                        |                        |
| ApplyMomentum                       | FP32                                 | FP16<br/>FP32         | FP32           |                    |
| Assert                              | FP16<br/>FP32<br/>Bool                              | Int32         | Int32                      |                        |
| Assign                              | FP32                                                |          |                       |                    |
| ArgmaxFusion                        | FP16<br/>FP32<br/>Int8<br/>UInt8                    |       |            | FP32<br/>Int8      |
| ArgminFusion                        | FP16<br/>FP32<br/>Int8<br/>UInt8                    |       |            | FP32<br/>Int8      |
| AvgPoolFusion                       | FP16<br/>FP32<br/>Int8<br/>UInt8                    |       |           | FP32<br/>Int8       |
|Attention                          |  -               |          | FP32             | -            |
| AvgPoolGrad                         | FP16<br/>FP32                                       |          |                        |                        |
| BatchNorm                           |  FP16<br/>FP32<br/>Int8<br/>UInt8                    |          |            |       |
| BatchNormGrad                       | FP16<br/>FP32                                       |          |                        |                        |
| BatchToSpace                        | FP32<br/>Int8<br/>UInt8                             |          |            | FP32<br/>Int8    |
| BatchToSpaceND                      | FP16<br/>FP32<br/>Int8<br/>UInt8                    |          |           |            |
| BiasAdd                             | FP16<br/>FP32<br/>Int8<br/>UInt8                    |          |           |       |
| BiasAddGrad                         | FP16<br/>FP32                                       |          |                        |                        |
| BinaryCrossEntropy                  | FP32                                                |          |                        |                    |
| BinaryCrossEntropyGrad              | FP32                                                |          |                        |                        |
| BroadcastTo                         | FP16<br/>FP32<br/>Int32<br/>Bool                    |          |                        |                        |
| Call                                | FP16<br/>FP32<br/>Int32<br/>Bool                    |          |                        |                    |
| Cast                                | FP16<br/>FP32<br/>Int32<br/>Int8<br/>UInt8<br/>Bool |       |           |        |
| Ceil                                | FP16<br/>FP32<br/>Int8<br/>UInt8                    |       |            | FP32<br/>Int8       |
| Clip                                | FP32<br/>Int32    |          |        | FP32<br/>Int8        |
| Concat                              | FP16<br/>FP32<br/>Int32<br/>Int8<br/>UInt8<br/>Bool |       |     | FP32<br/>Int8      |
| ConstantOfShape                     | FP16<br/>FP32<br/>Int32               |          |                        |                        |
| Conv2DFusion                        | FP16<br/>FP32<br/>Int8<br/>UInt8                    |       |            | FP32<br/>Int8       |
| Conv2DBackpropFilterFusion          | FP16<br/>FP32                                       |          |                        |                        |
| Conv2DBackpropInputFusion           | FP16<br/>FP32                         |          |                        |                        |
| Conv2dTransposeFusion               | FP16<br/>FP32<br/>Int8<br/>UInt8                    |       |            | FP32<br/>Int8       |
| Cos                                 | FP16<br/>FP32<br/>Int8<br/>UInt8                    |       |            |        |
| Crop                                | FP16<br/>FP32<br/>Int32<br/>Int8<br/>UInt8          |          |                        |                        |
| CropAndResize                       | FP32                                                |       |                        |                   |
| CumSum                              | FP32<br/>Int32                                      |         |                       |                    |
| CustomExtractFeatures               | FP32                                                |          |                   |                |
| CustomNormalize                     | FP32                                                |          |                     |                   |
| CustomPredict                       | FP32<br/>Int32                                      |         |                      |             |
| DEConv2DGradFilter                  | FP32                                                |         |                |                |
| DepthToSpace                        | FP16<br/>FP32<br/>Int8<br/>UInt8                    |          |           | FP32<br/>Int8   |
| DetectionPostProcess                | FP32<br/>Int8<br/>UInt8                             |          |               |                 |
| DivFusion                           | FP16<br/>FP32<br/>Int32<br/>Int8<br/>UInt8          | FP16<br/>FP32<br/>Int32<br/>Int16<br/>Cplx64      | FP32<br/>FP64<br/>Int8<br/>Int32<br/>Int16<br/>Cplx64<br/>Cplx128            | FP32<br/>Int8       |
| DivGrad                             | FP32                                                |          |                 |               |
| Dropout                             | FP16<br/>FP32                                       |         |                |             |
| DropoutGrad                         | FP16<br/>FP32                                       |         |                   |               |
| DynamicQuant                        | FP32                                                |         |                |             |
| Eltwise                             | FP16<br/>FP32<br/>Int8<br/>UInt8                    |       |            |       |
| Elu                                 | FP16<br/>FP32                                       |         |              |             |
| Equal                               | FP16<br/>FP32<br/>Int32<br/>Int8<br/>UInt8          |       |            |        |
| EmbeddingLookupFusion               | FP32                                                |       |            |                  |
| Erf                                 | FP16<br/>FP32                                       |        |                |              |
| ExpFusion                           | FP16<br/>FP32                                       |  FP16<br/>FP32<br/>Int32<br/>Int16<br/>Cplx64        | FP32<br/>FP64<br/>Int8<br/>Int32<br/>Cplx64<br/>Cplx128          |        |
| ExpandDims                          | FP16<br/>FP32<br/>Int32<br/>Int8<br/>UInt8<br/>Bool |       |  |  |
| Fill                                | FP16<br/>FP32<br/>Int32<br/>Bool                    |         |            |        |
| Flatten                             | FP16<br/>FP32<br/>Int32                             |         |            |               |
| FlattenGrad                         | FP16<br/>FP32                         |          |              |               |
| Floor                               | FP16<br/>FP32<br/>Int8<br/>UInt8                    |       |           |      |
| FloorDiv                            | FP16<br/>FP32<br/>Int32                             |       |            |            |
| FloorMod                            | FP16<br/>FP32<br/>Int32                             |       |          |            |
| FullConnection                      | FP16<br/>FP32<br/>Int8<br/>UInt8                    |      |          |        |
| FusedBatchNorm                      | FP16<br/>FP32<br/>Int8<br/>UInt8                    |      |             |                |
| GatherNd                            | FP16<br/>FP32<br/>Int32<br/>Int8<br/>UInt8<br/>Bool |         |          |        |
| Gather                              | FP16<br/>FP32<br/>Int32<br/>Int8<br/>UInt8<br/>Bool |       |     |       |
| GatherD                             | FP16<br/>FP32<br/>Int32<br/>Bool                    |         |              |              |
| GLU                                 | FP32                                                |        |                  |           |
| Greater                             | FP16<br/>FP32<br/>Int32<br/>Int8<br/>UInt8          |      |           |        |
| GreaterEqual                        | FP16<br/>FP32<br/>Int32<br/>Int8<br/>UInt8          |       |          |       |
| GroupNormFusion                     | FP32                                                |         |           |            |
| GRU                                 | FP16<br/>FP32                                       |          |           |              |
| HashtableLookup                     | FP32<br/>Int32                                      |         |             |             |
| InstanceNorm                        | FP16<br/>FP32                                       |      |          |             |
| InvertPermutation                   | FP16<br/>FP32<br/>Int32                             |         |            |             |
| IsFinite                            | FP32                                                |          |         |            |
| L2NormalizeFusion                   | FP32<br/>Int8<br/>UInt8                             |         |          |          |
| LayerNormFusion                     | FP16<br/>FP32<br/>Int8                              |          |          |       |
| LayerNormGrad                       | FP16<br/>FP32                                       |         |            |              |
| LeakyReLU                           | FP16<br/>FP32<br/>Int8<br/>UInt8                    |      |           |       |
| Less                                | FP16<br/>FP32<br/>Int32<br/>Int8<br/>UInt8          |       |           |        |
| LessEqual                           | FP16<br/>FP32<br/>Int32<br/>Int8<br/>UInt8          |      |            |        |
|LinSpace                            | -                                      | FP16<br/>FP32        | FP32         |-         |
| LRN                                 | FP32                                                |         |              |             |
| Log                                 | FP16<br/>FP32<br/>Int8<br/>UInt8                    |      |       |        |
| Log1p                               | FP32                                                |         |          |         |
| LogGrad                             | FP16<br/>FP32                                       |         |           |              |
| LogicalAnd                          | FP16<br/>FP32<br/>Int32<br/>Bool                    |       |           |           |
| LogicalNot                          | FP16<br/>FP32<br/>Int8<br/>UInt8<br/>Bool           |      |           |            |
| LogicalOr                           | FP16<br/>FP32<br/>Bool                              |       |           |            |
| LogSoftmax                          | FP16<br/>FP32                                       |        |              |            |
| LshProjection                       | FP32                                                |          |           |          |
| LSTM                                | FP16<br/>FP32                                       |        |        |           |
| LSTMGrad                            | FP32                                                |       |       |            |
| LSTMGradData                        | FP32                                                |        |         |              |
| LSTMGradWeight                      | FP32                                                |         |           |            |
| MatMulFusion                        | FP16<br/>FP32<br/>Int8<br/>UInt8             | FP16<br/>FP32<br/>Int32<br/>Int16<br/>Cplx64      | FP32<br/>FP64<br/>Int8<br/>Int32<br/>Int16<br/>Cplx64<br/>Cplx128           |        |
| Maximum                             | FP16<br/>FP32<br/>Int32                             |       |            |        |
| MaximumGrad                         | FP16<br/>FP32                                       |         |       |         |
| MaxPoolFusion                       | FP16<br/>FP32<br/>Int8<br/>UInt8                    |       |            | FP32<br/>Int8       |
| MaxPoolGrad                         | FP16<br/>FP32                                       |         |           |               |
| Merge                               | FP16<br/>FP32                                       |        |             |                |
| Minimum                             | FP16<br/>FP32<br/>Int32                             |       |            |        |
| MinimumGrad                         | FP16<br/>FP32                                       |         |          |              |
| Mod                                 | FP32<br/>Int32                                      |         |          |            |
| MulFusion                           | FP16<br/>FP32<br/>Int32<br/>Int8<br/>UInt8          | FP16<br/>FP32<br/>Int32<br/>Int16<br/>Cplx64      | FP32<br/>FP64<br/>Int8<br/>Int32<br/>Int16<br/>Cplx64<br/>Cplx128           | FP32<br/>Int8       |
| MulGrad                             | FP32                                                |         |         |        |
| Neg                                 | FP16<br/>FP32<br/>Int32                             |       |        | FP32<br/>Int8       |
| NegGrad                             | FP16<br/>FP32                                       |        |            |          |
| NLLLoss                             | FP32                                                |      |        |         |
| NLLLossGrad                         | FP32                                                |        |          |       |
| NotEqual                            | FP16<br/>FP32<br/>Int32<br/>Int8<br/>UInt8          |      |        |      |
| NonMaxSuppression                  | FP32                                                |      |       |        |
| NonZero                             | Bool                                                |        |           |      |
| OneHot                              | FP16<br/>FP32<br/>Int32                             |     |    | FP32<br/>Int8   |
| OnesLike                            | FP16<br/>FP32<br/>Int32                             |       |         |         |
| PadFusion                           | FP16<br/>FP32<br/>Int8<br/>UInt8                    |      |       | FP32<br/>Int8       |
| PartialFusion                       | FP16<br/>FP32<br/>Int32<br/>Bool                    |       |      |       |
| PowFusion                           | FP16<br/>FP32<br/>Int8<br/>UInt8                    |        |        |       |
| PowerGrad                           | FP32                                                |       |       |          |
| PriorBox                            | FP32<br/>Int8<br/>UInt8                             |       |        |       |
| PReLUFusion                         | FP16<br/>FP32                                       |       |        |      |
| QuantDTypeCast                      | FP16<br/>FP32<br/>Int8<br/>UInt8                    |      |      | FP32<br/>Int8      |
| RaggedRange                         | FP16<br/>FP32<br/>Int32                             | FP16<br/>FP32<br/>Int16<br/>Int32    | FP32<br/>FP64<br/>Int8<br/>Int16<br/>Int32     | -     |
| RandomNormal                        | FP16<br/>FP32                                       |       |        |       |
| RandomStandardNormal                | FP16<br/>FP32                                       |     |         |       |
| Range                               | FP16<br/>FP32<br/>Int32                             | FP16<br/>FP32<br/>Int16<br/>Int32      | FP32<br/>FP64<br/>Int8<br/>Int16<br/>Int32          | -      |
| Rank                                | FP16<br/>FP32                                       |       |        |          |
| RealDiv                             | FP16<br/>FP32                                       |     |        |        |
| Reciprocal                          | FP16<br/>FP32<br/>Int8                              |     |     |       |
| ReduceFusion                        | FP16<br/>FP32<br/>Int32<br/>Int8<br/>UInt8<br/>Bool |      |       |      |
| ReduceScatter                       | FP32                                                |     |         |      |
| Reshape                             | FP16<br/>FP32<br/>Int32<br/>Int8<br/>UInt8<br/>Bool |     |       |       |
| Resize                              | FP16<br/>FP32<br/>Int8<br/>UInt8                    |     |      |       |
| ResizeGrad                          | FP16<br/>FP32                                       |      |       |        |
| ReverseV2                           | FP32<br/>Int32                                      |      |     |        |
| ReverseSequence                     | FP32                                                |       |       |        |
| ROIPooling                          | FP32                                                |      |       |      |
| Round                               | FP16<br/>FP32<br/>Int8<br/>UInt8                    |      |       |     |
| Rsqrt                               | FP16<br/>FP32<br/>Int8<br/>UInt8                    |      |      |         |
| RsqrtGrad                           | FP32                                                |      |       |       |
| Select                              | FP32<br/>Bool                                       |       |       |        |
| Selu                                | -                                                   |        |          |        |
| ScaleFusion                         | FP16<br/>FP32<br/>Int8<br/>UInt8                    |       |       |       |
| ScatterNd                           | FP16<br/>FP32<br/>Int32                             |      |           |           |
| ScatterNdUpdate                     | FP16<br/>FP32<br/>Int32                             |       |        |         |
| SGD                                 | FP32                                                |     |        |        |
| Shape                               | FP16<br/>FP32<br/>Int32<br/>Int8<br/>UInt8<br/>Bool |        |        |       |
| SigmoidCrossEntropyWithLogits       | FP32                                                |       |        |         |
| SigmoidCrossEntropyWithLogitsGrad   | FP32                                                |      |         |       |
| Sin                                 | FP16<br/>FP32<br/>Int8<br/>UInt8                    |       |      |       |
| Size                                | FP16<br/>FP32<br/>Int32                             |       |       |        |
| SliceFusion                         | FP16<br/>FP32<br/>Int32<br/>Int8<br/>UInt8          |      |       |        |
| SkipGram                            | FP32                                                |      |       |        |
| SmoothL1Loss                        | FP32                                                |       |       |      |
| SmoothL1LossGrad                    | FP32                                                |       |      |        |
| Softmax                             | FP16<br/>FP32<br/>Int8<br/>UInt8                    |      |           | FP32<br/>Int8      |
| SoftmaxGrad                         | FP32                                                |       |      |       |
| Softplus                            | FP16<br/>FP32                                       |        |       |       |
| SpaceToBatch                        | FP16<br/>FP32<br/>Int8<br/>UInt8                    |       |      |     |
| SpaceToBatchND                      | FP16<br/>FP32<br/>Int8<br/>UInt8                    |        |         |          |
| SpaceToDepth                        | FP16<br/>FP32                                       |        |       |        |
| SparseToDense                       | FP16<br/>FP32<br/>Int32                             |        |    |      |
| SparseSoftmaxCrossEntropyWithLogits | FP32                                                |      |        |      |
| Splice                              | FP16<br/>FP32                                       |       |     |        |
| Split                               | FP16<br/>FP32<br/>Int32<br/>Int8<br/>UInt8          |      |         | FP32<br/>Int32      |
| SplitWithOverlap                    | FP16<br/>FP32                                       |        |          |      |
| Sqrt                                | FP16<br/>FP32<br/>Int8<br/>UInt8                    |      |        |     |
| SqrtGrad                            | FP32                                                |      |       |         |
| Square                              | FP16<br/>FP32<br/>Int8<br/>UInt8                    |      |        |      |
| SquaredDifference                   | FP16<br/>FP32                                       |        |         |        |
| Squeeze                             | FP16<br/>FP32<br/>Int32<br/>Int8<br/>UInt8<br/>Bool |        |    |      |
| StridedSlice                        | FP16<br/>FP32<br/>Int32<br/>Int8<br/>UInt8          |      |       |      |
| StridedSliceGrad                    | FP16<br/>FP32                                       |       |         |          |
| Stack                               | FP16<br/>FP32<br/>Int32                             |        |       |      |
| SubFusion                           | FP16<br/>FP32<br/>Int32<br/>Int8<br/>UInt8          |FP16<br/>FP32<br/>Int32<br/>Int16<br/>Cplx64     | FP32<br/>FP64<br/>Int8<br/>Int32<br/>Int16<br/>Cplx64<br/>Cplx128        | FP32<br/>Int8    |
| SubGrad                             | FP32                                                |     |        |        |
| Switch                              | FP16<br/>FP32<br/>Int32<br/>Bool                    |      |         |         |
| SwitchLayer                         | FP16<br/>FP32<br/>Int32<br/>Bool                    |      |      |        |
| TensorListFromTensor                | FP16<br/>FP32<br/>Int32                             |        |      |         |
| TensorListGetItem                   | FP16<br/>FP32<br/>Int32                             |     |         |      |
| TensorListReserve                   | FP16<br/>FP32<br/>Int32                             |       |        |     |
| TensorListSetItem                   | FP16<br/>FP32<br/>Int32                             |       |          |       |
| TensorListStack                     | FP16<br/>FP32<br/>Int32                             |     |        |         |
| TensorScatterAdd                    | FP32<br/>Int32                                      |      |       |     |
| TileFusion                          | FP16<br/>FP32<br/>Int32<br/>Bool                    |      |         |        |
| TopKFusion                          | FP16<br/>FP32<br/>Int32<br/>Int8<br/>UInt8          |      |      |      |
| Transpose                           | FP16<br/>FP32<br/>Int32<br/>Int8<br/>Bool           |      |      | FP32<br/>Int8    |
| UniformReal                         | FP32<br/>Int32                                      |      |       |          |
| Unique                              | FP16<br/>FP32<br/>Int32                             |      |        |      |
| UnsortedSegmentSum                  | FP16<br/>FP32<br/>Int32                             |     |       |        |
| Unsqueeze                           | FP16<br/>FP32<br/>Int32<br/>Int8<br/>UInt8<br/>Bool |      |      | FP32<br/>Int8      |
| Unstack                             | FP16<br/>FP32<br/>Int32                             |        |        |       |
| Where                               | FP16<br/>FP32<br/>Int32<br/>Bool                    |     |     |      |
| ZerosLike                           | FP16<br/>FP32<br/>Int32                             |       |        |         |


- MindSpore Lite支持不同硬件后端的自定义算子列表：

| 算子名称                  |  FT04      | FT78        | 
| -------------------------| ------------ | ------------ |
| IFFT                     |  Cplx64     |  Cplx64          |
| FFT                      | Cplx64     | Cplx64           |
