CELU#
- class torch.nn.CELU(alpha=1.0, inplace=False)[source]#
逐元素應用 CELU 函式。
有關更多詳細資訊,請參閱論文 Continuously Differentiable Exponential Linear Units 。
- 形狀
輸入: ,其中 表示任意數量的維度。
輸出: ,形狀與輸入相同。
示例
>>> m = nn.CELU() >>> input = torch.randn(2) >>> output = m(input)