torch.nn.functional.relu6 torch.nn.functional.relu6(input, inplace=False) → Tensor[源代码] 应用元素级别的函数 $\text{ReLU6}(x) = \min(\max(0,x), 6)$。 更多详情请参见ReLU6。 返回类型 Tensor