Rate this Page
โ˜… โ˜… โ˜… โ˜… โ˜…

torch.nn.functional.relu6#

torch.nn.functional.relu6(input, inplace=False) โ†’ Tensor[source]#

Applies the element-wise function ReLU6(x)=minโก(maxโก(0,x),6)\text{ReLU6}(x) = \min(\max(0,x), 6).

See ReLU6 for more details.

Return type

Tensor