Spec-Zone.ru › PyTorch 1

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 для получения более подробной информации.

© 2024, PyTorch Contributors
PyTorch has a BSD-style license, as found in the LICENSE file.
https://pytorch.org/docs/1.13/generated/torch.nn.functional.softplus.html

Spec-Zone.ru

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