【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版本解決了。

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