oa::FnMatrix::linearReluBwdData

linearReluBwdData: fused in-layer linearRelu(x,W,b) backward, data path. For y = reLU(x @ W^T + b), computes dx = (dy * (act > 0)) @ W in a single dispatch. gate is applied INSIDE the inner sum (no materialization of dz), the opposite fusion direction of linearDataReluBwd.

Function Documentation

Matrix oa::FnMatrix::linearReluBwdData( const Matrix & inGradOutput, const Matrix & inWeight, const Matrix & inActivation )
linearReluBwdData: fused in-layer linearRelu(x,W,b) backward, data path. For y = reLU(x @ W^T + b), computes dx = (dy * (act > 0)) @ W in a single dispatch. gate is applied INSIDE the inner sum (no materialization of dz), the opposite fusion direction of linearDataReluBwd.

Parameters

inGradOutput
const Matrix &

inWeight
const Matrix &

inActivation
const Matrix &

Returns

Matrix

The declared return value.