Сигмоида
-
class torch.nn.Sigmoid(*args, **kwargs)[source] -
Применяет элементную функцию:
- Форма:
-
- Вход: , где означает любое количество измерений.
- Выход: , форма такая же, как у входных данных.
Примеры:
>>> m = nn.Sigmoid() >>> 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/2.1/generated/torch.nn.Sigmoid.html