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)