nnf_hardsigmoid function

Hardsigmoid

Hardsigmoid

Applies the element-wise function \mboxHardsigmoid(x)=ReLU6(x+3)6\mbox{Hardsigmoid}(x) = \frac{ReLU6(x + 3)}{6}

nnf_hardsigmoid(input, inplace = FALSE)

Arguments

  • input: (N,*) tensor, where * means, any number of additional dimensions
  • inplace: NA If set to True, will do this operation in-place. Default: False
  • Maintainer: Daniel Falbel
  • License: MIT + file LICENSE
  • Last published: 2025-02-14