CELU¶
- class torch.nn.CELU(alpha=1.0, inplace=False)[源代码]¶
逐元素应用CELU函数。
更多细节可以在论文 Continuously Differentiable Exponential Linear Units 中找到。
- Shape:
输入:,其中 表示任意数量的维度。
输出: , 与输入形状相同。
示例:
>>> m = nn.CELU() >>> input = torch.randn(2) >>> output = m(input)