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参考链接:
pytorch是无法加载(导入)onnx模型,pytorch就没有加载onnx的函数,细看以下链接:
https://pytorch.org/docs/stable/onnx.html?highlight=onnx#module-torch.onnx