【pytorch】转onnx报错Failed to export an ONNX attribute

pytorch转onnx报错

RuntimeError: Failed to export an ONNX attribute, since it’s not constant, please try to make things (e.g., kernel size) static if possible

解决方案
将pytorch转到1.0.1版本解决了。

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章