module ‘torch.onnx.symbolic_helper’ has no attribute ‘quantized_args’
今日在联系pytorch时,import torchvision时报错:
module ‘torch.onnx.symbolic_helper’ has no attribute ‘quantized_args’
查阅后发现是版本不兼容的问题,于是查看了正确的对应版本,对自己的进行修改。
torch-torchvision-python版本对应

我安装的torch版本为1.12.1,torchvision版本为0.14.1
修改版本后解决问题。
在使用PyTorch时遇到错误:module‘torch.onnx.symbolic_helper’没有‘quantized_args’属性。该问题源于版本不匹配。通过检查torch和torchvision的兼容性,发现需要torch版本1.12.1和torchvision版本0.14.1。更新到正确版本后,问题得到解决。
8463

被折叠的 条评论
为什么被折叠?



