Softsign
-
class torch.nn.Softsign[source] -
Применяет поэлементную функцию:
- Форма:
-
- Вход: , где означает любое количество измерений.
- Выход: , форма такая же, как у входа.
Примеры:
>>> m = nn.Softsign() >>> input = torch.randn(2) >>> output = m(input)
© 2024, PyTorch Contributors
PyTorch has a BSD-style license, as found in the LICENSE file.
https://pytorch.org/docs/1.13/generated/torch.nn.Softsign.html