ott.solvers.nn.layers.PositiveDense.rectifier_fn#

PositiveDense.rectifier_fn()#

Softplus activation function.

Computes the element-wise function

\[\mathrm{softplus}(x) = \log(1 + e^x)\]
Parameters

x (Any) – input array

Return type

Any