module 'torch' has no attribute 'isIn'
时间: 2023-10-05 17:14:11 浏览: 77
导入FashionMNIST数据集时报错module ‘torchvision.datasets’ has no attribute ‘FashionMNIS’
根据你提供的引用内容,我了解到问题是关于`module 'torch' has no attribute 'isIn'`的。根据你提供的内容,我无法确定确切的原因和解决方法,因为没有相关信息提到`isIn`属性。但是,可以根据引用中提到的信息来推测一些可能的解决方法。根据引用中提到的问题原因,可能是因为你正在使用的`torch`版本不支持`isIn`属性。你可以尝试降低`torch`的版本,如引用中所述,通过执行`pip uninstall torch`和`pip install torch==1.9.1`来安装`torch`的1.9.1版本。这可能有助于解决你遇到的问题。如果这个方法不起作用,你可能需要进一步检查你的代码和环境设置,以确定问题的根本原因。<span class="em">1</span><span class="em">2</span><span class="em">3</span><span class="em">4</span>
#### 引用[.reference_title]
- *1* *3* *4* [module torch has no attribute empyt如何解决?](https://blog.csdn.net/fwj_ntu/article/details/86714817)[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* [Pytorch出现错误Attribute Error: module ‘torch‘ has no attribute ‘_six](https://blog.csdn.net/qq_44727287/article/details/129903108)[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 ]
阅读全文