CELU¶
- class torch.nn.CELU(alpha=1.0, inplace=False)[source][source]¶
逐元素地应用 CELU 函数。
更多详情请参阅论文 Continuously Differentiable Exponential Linear Units 。
- 形状
输入: ,其中 表示任意数量的维度。
输出: ,与输入相同的形状。
示例
>>> m = nn.CELU() >>> input = torch.randn(2) >>> output = m(input)