torch.nn.functional.softplus
-
torch.nn.functional.softplus(input, beta=1, threshold=20) → Tensor[исходный код] -
Поэлементно применяет функцию .
Для численной устойчивости при реализация переключается на линейную функцию.
Подробнее см.
Softplus.
© 2026, PyTorch Contributors
PyTorch has a BSD-style license, as found in the LICENSE file.
https://docs.pytorch.org/docs/2.14/generated/torch.nn.functional.softplus.html