On this page
torch.nn.functional.hardshrink
torch.nn.functional.hardshrink(input, lambd=0.5) → Tensor
-
Applies the hard shrinkage function element-wise
See
Hardshrink
for more details.
© 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