ELU¶
-
class
torch.nn.
ELU
(alpha: float = 1.0, inplace: bool = False)[source]¶ Applies the element-wise function:
- Parameters
alpha – the value for the ELU formulation. Default: 1.0
inplace – can optionally do the operation in-place. Default:
False
- Shape:
Input: where * means, any number of additional dimensions
Output: , same shape as the input
Examples:
>>> m = nn.ELU() >>> input = torch.randn(2) >>> output = m(input)