评价此页

torch.nn.functional.hardshrink#

torch.nn.functional.hardshrink(input, lambd=0.5) Tensor#

逐元素应用硬收缩函数

更多详情请参见 Hardshrink