Shortcuts

torch.nn.functional.hardtanh_

torch.nn.functional.hardtanh_(input, min_val=-1., max_val=1.) 张量

原地版本的 hardtanh()

优云智算