Hardsigmoid
- class torch.nn.modules.activation.Hardsigmoid(inplace=False)
Applies the Hardsigmoid function element-wise.
Hardsigmoid is defined as:
Applies the Hardsigmoid function element-wise.
Hardsigmoid is defined as:
inplace (bool) – can optionally do the operation in-place. Default: False
Input: , where means any number of dimensions.
Output: , same shape as the input.

Examples:
>>> m = nn.Hardsigmoid()
>>> input = torch.randn(2)
>>> output = m(input)
Runs the forward pass.