torchvision.datasets.CIFAR10报错IndentationError: unexpected indent
时间: 2023-10-15 10:29:27 浏览: 195
这个错误"IndentationError: unexpected indent"通常是由于缩进错误引起的,即代码中存在不正确的缩进。这可能是由于在代码块中混用了制表符和空格,或者缩进不一致导致的。为了解决这个问题,你可以检查一下你的代码,确保在每个缩进级别上使用相同数量的空格,并避免混用制表符和空格。你还可以使用文本编辑器的"显示隐藏字符"功能来检查缩进是否一致。如果仍然无法解决问题,请在你的代码中查找并修复所有缩进错误。这样就可以解决"IndentationError: unexpected indent"错误了。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* [导入FashionMNIST数据集时报错module ‘torchvision.datasets’ has no attribute ‘FashionMNIS’](https://download.csdn.net/download/weixin_38685832/14036697)[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* [tensorflow学习笔记(5):keras](https://blog.csdn.net/weixin_47997663/article/details/123146895)[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 ]
阅读全文