pytorch 将lstm的激活函数变为relu
时间: 2023-12-11 09:00:07 浏览: 139
在PyTorch中,将LSTM的激活函数变为ReLU是可行的。在老版本的PyTorch中,这些激活函数可以在torch.nn.functional模块下找到,但现在可以直接在torch模块下使用。同时,ReLU也是神经网络中比较常用的激活函数之一。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* *3* [Pytorch 激活函数](https://blog.csdn.net/weicao1990/article/details/94398894)[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学习笔记10----激活函数及可视化](https://blog.csdn.net/qq_39400324/article/details/123988751)[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 ]
阅读全文