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)