AttributeError: module 'torch' has no attribute 'permute'
时间: 2023-09-06 14:13:27 浏览: 431
AttributeError: module 'torch' has no attribute 'permute'这个错误通常是由于使用了不兼容的torch版本导致的。 请确保你使用的是最新版本的PyTorch,并检查你的代码中是否存在拼写错误或其他语法错误。如果你确定代码没有问题,那么可能是你安装的torch版本不正确。可以尝试重新安装PyTorch或更新torch版本来解决这个问题。 另外,也可以查看PyTorch的文档或在社区论坛上寻求帮助,以了解是否存在与该问题相关的已知问题和解决方案。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* [成功解决AttributeError: module ‘torch‘ has no attribute ‘sparse_csc](https://blog.csdn.net/m0_47256162/article/details/130649406)[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_1"}}] [.reference_item style="max-width: 50%"]
- *2* *3* [[Bug] Pytorch, AttributeError: module ‘torch‘ has no attribute ‘_six](https://blog.csdn.net/QKK612501/article/details/130532389)[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_1"}}] [.reference_item style="max-width: 50%"]
[ .reference_list ]
阅读全文