Softsign#
API#
- class warp_nn.modules.activations.Softsign(*, requires_grad: bool = True)[source]#
Bases:
ModuleSoftsign activation function.
This class computes the element-wise Softsign activation function:
\[\text{Softsign}(x) = \frac{x}{1 + |x|}\]- Parameters:
requires_grad – Whether the cached output arrays of the module require gradients.