nnf_hardsigmoid: Hardsigmoid

View source: R/nnf-activation.R

nnf_hardsigmoidR Documentation

Hardsigmoid

Description

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

Usage

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


torch documentation built on May 29, 2024, 9:54 a.m.