mindspore.ops.SoftShrink

class mindspore.ops.SoftShrink(lambd=0.5)[source]
prim = ops.SoftShrink(lambd)
out = prim(input)

is equivalent to

ops.softshrink(input, lambd)

Refer to mindspore.ops.softshrink() for more details.