Mish#
API#
- class warp_nn.modules.activations.Mish(*, requires_grad: bool = True)[source]#
Bases:
ModuleMish activation function.
This class computes the element-wise Mish activation function:
\[\text{Mish}(x) = x \tanh(\text{softplus}(x)) = x \tanh\left(\ln\left(1 + e^x\right)\right)\]- Parameters:
requires_grad – Whether the cached output arrays of the module require gradients.