pytorch模型转换onnx的时候,遇到了下面的报错信息: 1 RuntimeError: Cannot insert a Tensor that requires grad as a constant. Consider making it a parameter or input, or detaching the gradient 翻译过来就是不能将一个需要梯度的tensor转换为cons…
pytorch模型转换onnx的时候,遇到了下面的报错信息: 1 RuntimeError: Cannot insert a Tensor that requires grad as a constant. Consider making it a parameter or input, or detaching the gradient 翻译过来就是不能将一个需要梯度的tensor转换为cons…
讨论
登录后参与讨论
还没有评论,来说第一句吧。