ELU#
- class torch.nn.modules.activation.ELU(alpha=1.0, inplace=False)[source]#
逐元素應用指數線性單元 (ELU) 函式。
論文中描述的方法:Fast and Accurate Deep Network Learning by Exponential Linear Units (ELUs)。
ELU 定義為
- 形狀
輸入: ,其中 表示任意數量的維度。
輸出: ,形狀與輸入相同。
示例
>>> m = nn.ELU() >>> input = torch.randn(2) >>> output = m(input)