oa::FnMatrix::eluBwd

eluBwd: backward pass for ELU activation. Computes: dInput = dOutput * (x > 0 ? 1 : alpha * exp(x))

Function Documentation

Matrix oa::FnMatrix::eluBwd( const Matrix & inForwardOutput, const Matrix & inGradOutput, oa::F32 inAlpha = 1.0f )
eluBwd: backward pass for ELU activation. Computes: dInput = dOutput * (x > 0 ? 1 : alpha * exp(x))

Parameters

inForwardOutput
const Matrix &

inGradOutput
const Matrix &

inAlpha
oa::F32

Default: 1.0f

Returns

Matrix

The declared return value.