nnf_relu6 function

Relu6

Relu6

Applies the element-wise function ReLU6(x)=min(max(0,x),6)ReLU6(x) = min(max(0,x), 6).

nnf_relu6(input, inplace = FALSE)

Arguments

  • input: (N,*) tensor, where * means, any number of additional dimensions
  • inplace: can optionally do the operation in-place. Default: FALSE
  • Maintainer: Daniel Falbel
  • License: MIT + file LICENSE
  • Last published: 2025-02-14