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)