Spec-Zone.ru › PyTorch 2.14

torch.nn.functional.softplus

torch.nn.functional.softplus(input, beta=1, threshold=20) → Tensor [исходный код]

Поэлементно применяет функцию Softplus(x)=1β∗log⁡(1+exp⁡(β∗x))\text{Softplus}(x) = \frac{1}{\beta} * \log(1 + \exp(\beta * x)).

Для численной устойчивости при input×β>thresholdinput \times \beta > threshold реализация переключается на линейную функцию.

Подробнее см. 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

Spec-Zone.ru

Настройки Оффлайн Что нового Помощь О нас
Spec-Zone .ru
спецификации, руководства, описания, API