mindspore.ops.HShrink

class mindspore.ops.HShrink(lambd=0.5)[源代码]
prim = ops.HShrink(lambd)
out = prim(input)

等价于

ops.hardshrink(input, lambd)

更多详情请查看: mindspore.ops.hardshrink()