torch.nn.functional.softplus
- torch.nn.functional.softplus(input, beta=1, threshold=20) → Tensor
Applies element-wise, the function .
Applies element-wise, the function .
For numerical stability the implementation reverts to the linear function when .
See Softplus for more details.