oa::FnMatrix::leakyReluBwd
leakyReluBwd: backward pass for LeakyReLU activation. Computes: dInput = dOutput * (x > 0 ? 1 : alpha)
Function Documentation
leakyReluBwd: backward pass for LeakyReLU activation. Computes: dInput = dOutput * (x > 0 ? 1 : alpha)
Parameters
inForwardOutputconst Matrix &—
inGradOutputconst Matrix &—
inAlphaoa::F32Default: 0.01f
Returns
MatrixThe declared return value.