oa::FnMatrix::leakyReluBwd

leakyReluBwd: backward pass for LeakyReLU activation. Computes: dInput = dOutput * (x > 0 ? 1 : alpha)

Function Documentation

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

Parameters

inForwardOutput
const Matrix &

inGradOutput
const Matrix &

inAlpha
oa::F32

Default: 0.01f

Returns

Matrix

The declared return value.