nnf_softshrink function

Softshrink

Softshrink

Applies the soft shrinkage function elementwise

nnf_softshrink(input, lambd = 0.5)

Arguments

  • input: (N,*) tensor, where * means, any number of additional dimensions
  • lambd: the lambda (must be no less than zero) value for the Softshrink formulation. Default: 0.5
  • Maintainer: Daniel Falbel
  • License: MIT + file LICENSE
  • Last published: 2025-02-14

Downloads (last 30 days):