torch.nn.functional.hardshrink
-
torch.nn.functional.hardshrink(input, lambd=0.5) → Tensor -
Применяет функцию жёсткого сжатия поэлементно
См.
Hardshrinkдля получения более подробной информации.
© 2024, PyTorch Contributors
PyTorch has a BSD-style license, as found in the LICENSE file.
https://pytorch.org/docs/2.1/generated/torch.nn.functional.hardshrink.html