1. ONNX简明教程
https://blog.csdn.net/xjm850552586/article/details/114898679
2. onnxruntime 文档
https://onnxruntime.ai/docs/
3. pytorch 模型转 onnx 报错
(1)Exporting the operator dot to ONNX opset version 12 is not supported
这是由spectral_norm 引发的报错。
(2)grid_sample 不支持onnx, 可以使用
from mmcv.ops.point_sample import bilinear_grid_sample