CELU#
- class torch.nn.modules.activation.CELU(alpha=1.0, inplace=False)[source]#
逐元素應用 CELU 函式。
更多細節可以在論文 Continuously Differentiable Exponential Linear Units 中找到。
- 形狀
輸入: ,其中 表示任意數量的維度。
輸出: ,形狀與輸入相同。
示例
>>> m = nn.CELU() >>> input = torch.randn(2) >>> output = m(input)