torch.nn.functional.relu6¶ torch.nn.functional.relu6(input, inplace=False) → Tensor[原始碼][原始碼]¶ 逐元素地套用函數 ReLU6(x)=min(max(0,x),6)\text{ReLU6}(x) = \min(\max(0,x), 6)ReLU6(x)=min(max(0,x),6)。 詳情請參閱 ReLU6。 回傳型別 Tensor