ELU#
- class torch.nn.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)