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