1.No conversion function registered for op type BlockGrad yet #12682
解决方法:
>> pip install mxnet --pre
参考链接:https://github.com/apache/incubator-mxnet/issues/12682
2.Unrecognized attribute: spatial for operator BatchNormalizationUnrecognized attribute: spatial for operator BatchNormalization
解决方法:将onnx的版本改为v1.3.0
查看自己的onnx版本:
>> python
>>import onnx
>>onnx.__version__
安装指定版本:
pip install onnx==1.3.0 -i https://pypi.tuna.tsinghua.edu.cn/simple
参考链接:https://github.com/apache/incubator-mxnet/issues/14589
mxnet的模型(.param .json)转为onnx参考链接: