module 'torch.nn' has no attribute 'Moudle'
时间: 2023-08-27 11:04:36 浏览: 205
这个错误是因为你在使用torch.nn模块时错误地拼写了Module。正确的拼写是Module,而不是Moudle。 torch.nn.Module是所有神经网络模块的基类,你应该使用正确的拼写来引用它。 请注意,在你的代码中,你应该使用torch.nn.Module而不是torch.nn.Moudle。检查你的代码是否正确拼写了Module。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* [运行pytorch时报错——AttributeError: module 'torch.nn' has no attribute 'ModuleDict'](https://blog.csdn.net/u014483914/article/details/104582101)[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^v92^chatsearchT3_1"}}] [.reference_item style="max-width: 50%"]
- *2* *3* [【torch.nn.Module】神经网络模块类及其方法](https://blog.csdn.net/zyw2002/article/details/128273928)[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^v92^chatsearchT3_1"}}] [.reference_item style="max-width: 50%"]
[ .reference_list ]
阅读全文