评价此页

torch.nn.functional.hardshrink#

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

逐元素应用硬收缩函数

更多细节请参阅 Hardshrink