CELU(alpha: float = 1.0, inplace: bool = False)¶
Applies the element-wise function:
More details can be found in the paper Continuously Differentiable Exponential Linear Units .
alpha – the value for the CELU formulation. Default: 1.0
inplace – can optionally do the operation in-place. Default:
Input: where * means, any number of additional dimensions
Output: , same shape as the input
>>> m = nn.CELU() >>> input = torch.randn(2) >>> output = m(input)