oa::FnMatrix::softplus

softplus: Softplus: out = log(1+exp(A)), computed stably as max(A,0)+log1p(exp(-|A|)) (no f32 overflow).

Function Documentation

oa::Matrix oa::FnMatrix::softplus( const oa::Matrix & inA )
softplus: Softplus: out = log(1+exp(A)), computed stably as max(A,0)+log1p(exp(-|A|)) (no f32 overflow).

Parameters

inA
const oa::Matrix &

Returns

oa::Matrix

The declared return value.