No module named 'torch.ao.quantization'
时间: 2023-09-25 20:16:59 浏览: 225
找不到指定模块
No module named 'torch.ao.quantization'是一个模块找不到的错误。根据引用和引用,可以看出这个错误是由于缺少名为'torch.ao.quantization'的模块引起的。据我所知,当前的torch版本中并没有名为'torch.ao.quantization'的模块。根据引用中的命令行输入,你尝试安装torchvision的版本0.10.0,可能是因为该版本中引入了'torch.ao.quantization'模块。你可以尝试通过安装torchvision的特定版本来解决这个问题。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* [ModuleNotFoundError: No module named ‘torch.ao‘ 报错解决](https://blog.csdn.net/qq_40564301/article/details/124025790)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 50%"]
- *2* *3* [如何解决报错 ModuleNotFoundError: No module named ‘torch.ao.quantization](https://blog.csdn.net/qq_46322529/article/details/128241196)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 50%"]
[ .reference_list ]
阅读全文