mindspore.ops.HShrink

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

is equivalent to

ops.hardshrink(input, lambd)

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