oa::FnMatrix::reluBwd

reluBwd: backward pass for ReLU activation. Computes: dInput = dOutput * (forwardOutput > 0)

Function Documentation

Matrix oa::FnMatrix::reluBwd( const Matrix & inForwardOutput, const Matrix & inGradOutput )
reluBwd: backward pass for ReLU activation. Computes: dInput = dOutput * (forwardOutput > 0)

Parameters

inForwardOutput
const Matrix &

inGradOutput
const Matrix &

Returns

Matrix

The declared return value.