支持的算子
=====

| 算子名 | 所属分类 |
| :-- | :-- |
| BatchToSpaceND | array\_defs |
| BroadcastTo | array\_defs |
| ConcatD | array\_defs |
| Data | array\_defs |
| DepthToSpace | array\_defs |
| Dequantize | array\_defs |
| DequantizeV2 | array\_defs |
| ExpandDims | array\_defs |
| FakeQuantWithMinMaxVars | array\_defs |
| Fill | array\_defs |
| Flatten | array\_defs |
| FlattenV2 | array\_defs |
| GatherNd | array\_defs |
| GatherV2D | array\_defs |
| MirrorPad | array\_defs |
| NetOutput | array\_defs |
| OneHot | array\_defs |
| Pack | array\_defs |
| Pad | array\_defs |
| PadV2 | array\_defs |
| Quantize | array\_defs |
| QuantizeV2 | array\_defs |
| Reshape | array\_defs |
| Select | array\_defs |
| Shape | array\_defs |
| Size | array\_defs |
| Slice | array\_defs |
| SpaceToBatchND | array\_defs |
| SpaceToDepth | array\_defs |
| SplitD | array\_defs |
| SplitV | array\_defs |
| Squeeze | array\_defs |
| StridedSlice | array\_defs |
| StridedSliceV2 | array\_defs |
| Tile | array\_defs |
| Unpack | array\_defs |
| Const | const\_defs |
| QuantizedConst | const\_defs |
| Permute | detection\_defs |
| SSDDetectionOutput | detection\_defs |
| ConfigData | image\_defs |
| Crop | image\_defs |
| CropAndResize | image\_defs |
| DynamicImageData | image\_defs |
| GridSampler2D | image\_defs |
| ImageChannelSwap | image\_defs |
| ImageColorSpaceConvertion | image\_defs |
| ImageCrop | image\_defs |
| ImageData | image\_defs |
| ImageDataTypeConversion | image\_defs |
| ImagePadding | image\_defs |
| ImageResize | image\_defs |
| ImageRotation | image\_defs |
| ImageChannelSwapV2 | image\_defs |
| ImageColorSpaceConvertionV2 | image\_defs |
| ImageMultiCrop | image\_defs |
| ImageMultiDataTypeConvertion | image\_defs |
| ImageMultiPad | image\_defs |
| ImageMultiResize | image\_defs |
| ImageMultiRotate | image\_defs |
| Interp | image\_defs |
| NonMaxSuppressionV3D | image\_defs |
| NonMaxSuppressionV6 | image\_defs |
| ResizeBilinear | image\_defs |
| ResizeBilinearV2 | image\_defs |
| ResizeNearestNeighbor | image\_defs |
| ResizeNearestNeighborV2 | image\_defs |
| ROIAlignV2 | image\_defs |
| Upsample | image\_defs |
| Acos | math\_defs |
| Add | math\_defs |
| ArgMaxExt2 | math\_defs |
| Asin | math\_defs |
| Atan | math\_defs |
| BatchMatMul | math\_defs |
| CastT | math\_defs |
| Ceil | math\_defs |
| ClipByValue | math\_defs |
| Cos | math\_defs |
| Equal | math\_defs |
| Erf | math\_defs |
| Exp | math\_defs |
| Expm1 | math\_defs |
| Floor | math\_defs |
| FloorDiv | math\_defs |
| FloorMod | math\_defs |
| GemmD | math\_defs |
| Greater | math\_defs |
| GreaterEqual | math\_defs |
| L2Normalize | math\_defs |
| Less | math\_defs |
| LessEqual | math\_defs |
| Log | math\_defs |
| Log1p | math\_defs |
| LogicalAnd | math\_defs |
| LogicalNot | math\_defs |
| LogicalOr | math\_defs |
| MatMul | math\_defs |
| Maximum | math\_defs |
| Minimum | math\_defs |
| Mul | math\_defs |
| Neg | math\_defs |
| NotEqual | math\_defs |
| Pow | math\_defs |
| Power | math\_defs |
| QuantizedMatMul | math\_defs |
| Range | math\_defs |
| RealDiv | math\_defs |
| Reciprocal | math\_defs |
| ReduceLogSumExp | math\_defs |
| ReduceL2D | math\_defs |
| ReduceMax | math\_defs |
| ReduceMean | math\_defs |
| ReduceMin | math\_defs |
| ReduceProdD | math\_defs |
| ReduceSum | math\_defs |
| Reduction | math\_defs |
| Rint | math\_defs |
| Round | math\_defs |
| Rsqrt | math\_defs |
| Sign | math\_defs |
| Sin | math\_defs |
| SparseToDense | math\_defs |
| Sqrt | math\_defs |
| Square | math\_defs |
| SquaredDifference | math\_defs |
| Sub | math\_defs |
| Tan | math\_defs |
| TruncateDiv | math\_defs |
| Xlogy | math\_defs |
| [Activation](#激活算子说明) | nn\_defs |
| AxisAlignedBboxTransform | nn\_defs |
| AvgPoolV2 | nn\_defs |
| BiasAdd | nn\_defs |
| BNInference | nn\_defs |
| Convolution | nn\_defs |
| ConvolutionDepthwise | nn\_defs |
| ConvTranspose | nn\_defs |
| Eltwise | nn\_defs |
| FullyConnection | nn\_defs |
| [HardSwish](#激活算子说明) | nn\_defs |
| InstanceNorm | nn\_defs |
| LayerNorm | nn\_defs |
| LogicalXor | nn\_defs |
| [LogSoftmax](#激活算子说明) | nn\_defs |
| LRN | nn\_defs |
| LSTM | nn\_defs |
| Normalize | nn\_defs |
| PoolingD | nn\_defs |
| [PReLU](#激活算子说明) | nn\_defs |
| PriorBox | nn\_defs |
| Proposal | nn\_defs |
| QuantizedConvolution | nn\_defs |
| QuantizedConvolutionDepthwise | nn\_defs |
| QuantizedFullConnection | nn\_defs |
| Rank | nn\_defs |
| Scale | nn\_defs |
| ScatterNd | nn\_defs |
| ShuffleChannel | nn\_defs |
| ShuffleChannelV2 | nn\_defs |
| [Softmax](#激活算子说明) | nn\_defs |
| SVDF | nn\_defs |
| [Threshold](#激活算子说明) | nn\_defs |
| TopK | nn\_defs |
| [Mish](#激活算子说明) | nn\_defs |
| [Swish](#激活算子说明) | nn\_defs |

#### 激活算子说明

| 算子名 | 函数公式 |
| :-- | :-- |
| Activation | ![](https://contentcenter-vali-drcn.dbankcdn.cn/pvt_2/DeveloperAlliance_scene_100_1/0c/v3/RL_unkgwS-Ggh2wRLnNJ_Q/zh-cn_image_0000002594669592.png?HW-CC-KV=V1&HW-CC-Date=20260612T073758Z&HW-CC-Expire=86400&HW-CC-Sign=3E58A12DB39C12581F23A856169F82D5DCBD2647F62075463F21E6A33C17B511) |
| Activation | ![](https://contentcenter-vali-drcn.dbankcdn.cn/pvt_2/DeveloperAlliance_scene_100_1/59/v3/6SNSm5PmT9m0ttfIjO7YAA/zh-cn_image_0000002594829520.png?HW-CC-KV=V1&HW-CC-Date=20260612T073758Z&HW-CC-Expire=86400&HW-CC-Sign=EEBBD2CB17502034621A52BF29CA9E959828850CC1483B2112BBB1E701BA6BAA) |
| Activation | ![](https://contentcenter-vali-drcn.dbankcdn.cn/pvt_2/DeveloperAlliance_scene_100_1/4a/v3/9RY0qTuhSFmwe6278J6VHg/zh-cn_image_0000002625188967.png?HW-CC-KV=V1&HW-CC-Date=20260612T073758Z&HW-CC-Expire=86400&HW-CC-Sign=5DE8F9894AFC6902AB187664A0D4A847F4597033BE98FF1DEA78D1428DB39373) |
| Activation | 
![](https://contentcenter-vali-drcn.dbankcdn.cn/pvt_2/DeveloperAlliance_scene_100_1/04/v3/VreeDzQDQMuJ0ZL-v2XMew/zh-cn_image_0000002625109111.png?HW-CC-KV=V1&HW-CC-Date=20260612T073758Z&HW-CC-Expire=86400&HW-CC-Sign=900E08FCE26A6C3896A33661358E4DC0D03135DAB9E197803A4E685EFDD8B488)

**说明：** z默认值是20.0，float类型。

 |
| Activation | ![](https://contentcenter-vali-drcn.dbankcdn.cn/pvt_2/DeveloperAlliance_scene_100_1/4d/v3/YumWs-5fRmehQAOgTXaLJQ/zh-cn_image_0000002594669594.png?HW-CC-KV=V1&HW-CC-Date=20260612T073758Z&HW-CC-Expire=86400&HW-CC-Sign=21A3765636903B2FE93C8BE09348F0A7D260706F27693F9C1A57CBAF3CE4F813) |
| Activation | ![](https://contentcenter-vali-drcn.dbankcdn.cn/pvt_2/DeveloperAlliance_scene_100_1/cf/v3/VXmGGQ5RTPWMcYXnut1JKA/zh-cn_image_0000002594829522.png?HW-CC-KV=V1&HW-CC-Date=20260612T073758Z&HW-CC-Expire=86400&HW-CC-Sign=3D208C591BE6D03C2C0C5F324DF2E7F34C796A7BAC63E16894F89BC632A9221E) |
| Activation | ![](https://contentcenter-vali-drcn.dbankcdn.cn/pvt_2/DeveloperAlliance_scene_100_1/40/v3/FCf6S3VETCScYaMwoHo5Cw/zh-cn_image_0000002625188969.png?HW-CC-KV=V1&HW-CC-Date=20260612T073758Z&HW-CC-Expire=86400&HW-CC-Sign=A68D4F969C2926B60F6663C4F83673487CEE3675F72B0A9FDB523133E394424E) |
| Activation | ![](https://contentcenter-vali-drcn.dbankcdn.cn/pvt_2/DeveloperAlliance_scene_100_1/87/v3/COqA91D7SgK70IuWCsas4w/zh-cn_image_0000002625109113.png?HW-CC-KV=V1&HW-CC-Date=20260612T073758Z&HW-CC-Expire=86400&HW-CC-Sign=A37E60F83A1ADAE4FD2FF68FB078CA581A3E08581239D4F85B33B4010107706E) |
| Activation | ![](https://contentcenter-vali-drcn.dbankcdn.cn/pvt_2/DeveloperAlliance_scene_100_1/2b/v3/n4YWn40tS02nOFEAEmBF2w/zh-cn_image_0000002594669596.png?HW-CC-KV=V1&HW-CC-Date=20260612T073758Z&HW-CC-Expire=86400&HW-CC-Sign=40CE2DB37224B84D4A8AD04DDEF2E172BCCBD693949DB029CA07B5D96A95E5DC) |
| Activation | ![](https://contentcenter-vali-drcn.dbankcdn.cn/pvt_2/DeveloperAlliance_scene_100_1/2a/v3/HIjCY67MRfKAw9H7f29ZRg/zh-cn_image_0000002594829524.png?HW-CC-KV=V1&HW-CC-Date=20260612T073758Z&HW-CC-Expire=86400&HW-CC-Sign=DB537A5AF5C38D8F34CA492948AF63C6C0B0571E4F3E8DE9DFFE8CE92C35A09C) |
| Activation | ![](https://contentcenter-vali-drcn.dbankcdn.cn/pvt_2/DeveloperAlliance_scene_100_1/53/v3/Bm6DBsQyQl-eFxWFk1ElQQ/zh-cn_image_0000002625188971.png?HW-CC-KV=V1&HW-CC-Date=20260612T073758Z&HW-CC-Expire=86400&HW-CC-Sign=F60F37BE8E54187393BBC858B170FDD76018D6876870A0C0D55ABFD6BF87CE52) |
| Activation | ![](https://contentcenter-vali-drcn.dbankcdn.cn/pvt_2/DeveloperAlliance_scene_100_1/c4/v3/7zqMgNm8RsONk8PS2neSng/zh-cn_image_0000002625109115.png?HW-CC-KV=V1&HW-CC-Date=20260612T073758Z&HW-CC-Expire=86400&HW-CC-Sign=4C6E6A7942AAF06ECB79EC3A127F63385EABDD18B08CC5445A834BE02B32CF33) |
| Activation | ![](https://contentcenter-vali-drcn.dbankcdn.cn/pvt_2/DeveloperAlliance_scene_100_1/95/v3/091uVUkoSLaX7DlFJRmYgA/zh-cn_image_0000002594669598.png?HW-CC-KV=V1&HW-CC-Date=20260612T073758Z&HW-CC-Expire=86400&HW-CC-Sign=D0DFEF0F62B168A4ECF3094CF71AE30509C6EAB3C2980B9A831EF5233731297E) |
| HardSwish | ![](https://contentcenter-vali-drcn.dbankcdn.cn/pvt_2/DeveloperAlliance_scene_100_1/a/v3/6EE36ZcGRW6-knEPNTb4Tw/zh-cn_image_0000002594829526.png?HW-CC-KV=V1&HW-CC-Date=20260612T073758Z&HW-CC-Expire=86400&HW-CC-Sign=2D8E74A5FCDCB3AD89E52DD7515530AADD380C13D5D173564637E6E3267FC828) |
| LogSoftmax | ![](https://contentcenter-vali-drcn.dbankcdn.cn/pvt_2/DeveloperAlliance_scene_100_1/1b/v3/MhTfnG9kRdaIPirqsCMSvQ/zh-cn_image_0000002625188973.png?HW-CC-KV=V1&HW-CC-Date=20260612T073758Z&HW-CC-Expire=86400&HW-CC-Sign=97118D89198F9D15EA1DD3910C779FD650D059D01AA7D836B3E8957F3AF878B7) |
| Mish | ![](https://contentcenter-vali-drcn.dbankcdn.cn/pvt_2/DeveloperAlliance_scene_100_1/3a/v3/T__3b_MTQb-VL6Xpvs-Vbw/zh-cn_image_0000002625109117.png?HW-CC-KV=V1&HW-CC-Date=20260612T073758Z&HW-CC-Expire=86400&HW-CC-Sign=DC62C46EA48B53D180A9D5264060DD93D7E11AEFF2D454108DD904331C9BA8B0) |
| PReLU | ![](https://contentcenter-vali-drcn.dbankcdn.cn/pvt_2/DeveloperAlliance_scene_100_1/8e/v3/JUEaXbe6S7CBWk6lZw6RkQ/zh-cn_image_0000002594669600.png?HW-CC-KV=V1&HW-CC-Date=20260612T073758Z&HW-CC-Expire=86400&HW-CC-Sign=97B948EB8BBED5F7A5E5C47620DBF259F282D75DA16A1ED8998C2FB673133722) |
| Softmax | ![](https://contentcenter-vali-drcn.dbankcdn.cn/pvt_2/DeveloperAlliance_scene_100_1/6d/v3/kUmG7u77Sei0osfHKJnqmw/zh-cn_image_0000002594829528.png?HW-CC-KV=V1&HW-CC-Date=20260612T073758Z&HW-CC-Expire=86400&HW-CC-Sign=521651ED640355923D74C73F2FD29CC67F7A86D6677C302E2297BD1A21D38943) |
| Swish | ![](https://contentcenter-vali-drcn.dbankcdn.cn/pvt_2/DeveloperAlliance_scene_100_1/60/v3/Q5lk_QM9RLOIrT6F7am-BQ/zh-cn_image_0000002625188975.png?HW-CC-KV=V1&HW-CC-Date=20260612T073758Z&HW-CC-Expire=86400&HW-CC-Sign=7E8850BB358E08ACC634B867388108B253ED3CCC36DA57B451F0CC657442282F) |
| Threshold | ![](https://contentcenter-vali-drcn.dbankcdn.cn/pvt_2/DeveloperAlliance_scene_100_1/56/v3/k1NCDfpsS6W-MMYqoX7imw/zh-cn_image_0000002625109119.png?HW-CC-KV=V1&HW-CC-Date=20260612T073758Z&HW-CC-Expire=86400&HW-CC-Sign=13B2E0E01279E4160733B0BA9B089AC17837B66070CF166E7A18D1F7DE5B33E8) |