nn.dropout2d()参数
时间: 2023-11-23 11:52:25 浏览: 90
浅析PyTorch中nn.Module的使用
5星 · 资源好评率100%
nn.Dropout2d()函数的参数是p,表示要置为0的概率。在给定的输入张量中,每个元素都有p的概率被置为0,有1-p的概率保留原值。\[1\]
#### 引用[.reference_title]
- *1* *2* [torch.nn.dropout和torch.nn.dropout2d的区别](https://blog.csdn.net/u014221266/article/details/88670580)[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_down28v1,239^v3^insert_chatgpt"}} ] [.reference_item]
- *3* [pytorch中的dropout](https://blog.csdn.net/sinat_28916141/article/details/126836513)[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_down28v1,239^v3^insert_chatgpt"}} ] [.reference_item]
[ .reference_list ]
阅读全文