[机器学习]Pytorch导出onnx报错“RuntimeError: Cannot insert a Tensor that requires grad as a constant...“
pytorch导出onnx报错"RuntimeError: Cannot insert a Tensor that requires grad as a constant. Consider making it a parameter or input, or detaching the gradient"的一种解决方法
原创
2022-08-08 23:52:59 ·
2016 阅读 ·
1 评论