Soft-plus#

API#

class warp_nn.modules.activations.SoftPlus[source]#

Bases: Module

Soft-plus activation function.

This class computes the element-wise soft-plus activation function:

\[\text{SoftPlus}(x) = \log(1 + e^x)\]
__call__(
input: array,
) array[source]#

Forward pass of the activation function.

Parameters:

input – The input array, with up to 3 dimensions.

Returns:

The output array, with same shape as the input array.