Rate this Page
★ ★ ★ ★ ★

torch.nn.functional.softshrink#

torch.nn.functional.softshrink(input, lambd=0.5) → Tensor[source]#

Applies the soft shrinkage function elementwise

See Softshrink for more details.