Shortcuts

torch.nn.functional.relu6

torch.nn.functional.relu6(input, inplace=False) 张量[源代码]

对每个元素应用函数 ReLU6(x)=min(max(0,x),6)\text{ReLU6}(x) = \min(\max(0,x), 6)

详情请参见 ReLU6

Return type

张量

优云智算