...
This page tracks the current status and development to support ONNX on Mxnet. We currently support:
- import of ONNX models into Mxnet.
- export MXNet models to ONNX format.
ONNX-MXNET Import Module
We have two repositories for the import module:
- onnx-mxnet repository inside onnx https://github.com/onnx/onnx-mxnet (deprecated)
- A newly created and refactored module inside Mxnet -> contrib. https://github.com/apache/incubator-mxnet/tree/master/python/mxnet/contrib/onnx/onnx2mx
MXNET-ONNX Export module
A new module has been added to MXNet repository to export MXNet models to ONNX model format. https://github.com/apache/incubator-mxnet/tree/master/python/mxnet/contrib/onnx/
...
Operator Coverage:
This table keeps track of the status of all ONNX operators supported by Mxnet.
ONNX backend test script reports the coverage on the operators and attributes.
Operator | Test Coverage | Mxnet (Import) | Mxnet (Export) |
---|---|---|---|
Abs | Yes | OK | OK |
Add | Yes | OK | OK |
And |
| ||
ArgMax | OK | OK | |
ArgMin | OK | OK | |
AveragePool | Yes | OK | OK |
BatchNormalization | Yes | OK | OK |
Cast | Yes | OK | OK |
Ceil | OK | OK | |
Clip | Yes | NOT OK, under development | |
Concat | Yes | OK | OK |
Constant | Yes | NOT OK | |
Conv | Yes | OK | OK |
ConvTranspose | OK | ||
DepthToSpace | NOT OK, under development | ||
Div | Yes | OK | OK |
Dropout | OK | OK | |
Elu | Yes | OK | |
Equal | Yes | NOT OK | |
Exp | Yes | OK | OK |
Flatten | Yes | PARTIAL, only supports default axis=1 | OK |
Floor | OK | OK | |
GRU | NOT OK , under development | ||
Gather | Yes | NOT OK, under development | |
Gemm | Yes | OK | |
GlobalAveragePool | Yes | OK | OK |
GlobalLpPool | NOT OK, under development | ||
GlobalMaxPool | Yes | OK | OK |
Greater | NOT OK, under development | ||
HardSigmoid | NOT OK, under development | ||
Hardmax | NOT OK, under development | ||
InstanceNormalization | NOT OK, under development | ||
LRN | OK | OK | |
LSTM | NOT OK, under development | ||
LeakyRelu | Yes | OK | OK |
Less | NOT OK, under development | ||
Log | Yes | OK | OK |
LogSoftMax | NOT OK, under development | ||
LpNormalization | NOT OK, under development | OK | |
LpPool | NOT OK, under development | ||
LpPool | Yes | OK | |
Max | Yes | OK | OK |
MaxPool | Yes | OK | OK |
MaxRoiPool | NOT OK, under development | ||
Mean | NOT OK, under development | ||
Min | Yes | OK | OK |
Mul | Yes | OK | OK |
Neg | Yes | OK | OK |
Not | NOT OK, under development | ||
Or | NOT OK, under development | ||
PRelu | Yes | OK | OK |
Pad | Yes | OK | OK |
Pow | Yes | Partial, only supports default axis=1 | OK |
RNN | NOT OK, under development | ||
RandomNormal | OK | ||
RandomNormalLike | OK | ||
RandomUniform | OK | ||
RandomUniformLike | OK | ||
Reciprocal | OK | OK | |
ReduceL1 | NOT OK, under development | ||
ReduceL2 | NOT OK, under development | ||
ReduceLogSum | NOT OK, under development | ||
ReduceLogSumExp | NOT OK, under development | ||
ReduceMax | Yes | OK | OK |
ReduceMean | Yes | OK | OK |
ReduceMin | Yes | OK | OK |
ReduceProd | Yes | OK | OK |
ReduceSum | Yes | OK | |
ReduceSumSquare | NOT OK, under development | ||
Relu | Yes | OK | OK |
Reshape | Yes | OK | OK |
Selu | Yes | NOT OK, under development | OK |
Sigmoid | Yes | OK | OK |
Slice | Yes | NOT OK, under development | OK |
Softmax | Yes | PARTIAL, only supports default axis=1 | |
Softplus | Yes | NOT OK, under development | OK |
Softsign | NOT OK, under development | OK | |
SpaceToDepth | NOT OK, under development | ||
Split | Yes | NOT OK, under development | OK |
Sqrt | OK | OK | |
Squeeze | Yes | OK | OK |
Sub | Yes | OK | OK |
Sum | Yes | OK | OK |
Tanh | Yes | OK | OK |
Tile | NOT OK, under development | ||
Transpose | Yes | OK | OK |
Xor | NOT OK, under development | ||
experimental ATen | NOT OK, under development | ||
experimental Affine | NOT OK, under development | ||
experimental ConstantFill | NOT OK, under development | ||
experimental Crop | NOT OK, under development | ||
experimental FC | NOT OK, under development | ||
experimental GRUUnit | NOT OK, under development | ||
experimental GivenTensorFill | NOT OK, under development | ||
experimental Identity | NOT OK, under development | ||
experimental ImageScaler | NOT OK, under development | ||
experimental MeanVarianceNormalization | NOT OK, under development | ||
experimental ParametricSoftplus | NOT OK, under development | ||
experimental Scale | NOT OK, under development | ||
experimental ScaledTanh | NOT OK, under development | ||
experimental ThresholdedRelu | NOT OK, under development | ||
experimental Upsample | NOT OK, under development |
...