module 'd2l' has no attribute 'load_data_fashion_mnist'
时间: 2023-09-24 07:04:23 浏览: 318
根据引用\[1\]和引用\[2\]的内容,出现"module 'd2l' has no attribute 'load_data_fashion_mnist'"的错误可能是权限问题。你可以尝试重新定义load_data_fashion_mnist函数并调用它,或者检查mnist路径是否正确。然而,建议新手不要修改d2l包中的路径,以免出错。另外,根据引用\[3\]的内容,如果在d2lzh_pytorch包中找不到名为'load_data_fashion_mnist'的属性/函数,你可以尝试将d2lzh_pytorch文件夹放置在Jupyter的工作目录或者虚拟环境的包安装目录中,并确保注释掉代码中的sys.path.append("..."),以便从site-packages中找到d2lzh_pytorch包并引入。
#### 引用[.reference_title]
- *1* *2* [深度学习 load_data_fashion_mnist](https://blog.csdn.net/qq_44143405/article/details/123596625)[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^v91^insert_down1,239^v3^insert_chatgpt"}} ] [.reference_item]
- *3* [d2lzh_pytorch包报错问题](https://blog.csdn.net/flower_48237/article/details/121851062)[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^v91^insert_down1,239^v3^insert_chatgpt"}} ] [.reference_item]
[ .reference_list ]
阅读全文