torch-torchvision-python版本对应问题

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-torchvision-python版本对应问题_第1张图片
我安装的torch版本为1.12.1,torchvision版本为0.14.1
修改版本后解决问题。

你可能感兴趣的:(python,深度学习,pytorch)