oa::FnMatrix::geluBwd
geluBwd: backward pass for GELU activation. Computes: dInput = dOutput * gelu'(x)
Function Documentation
geluBwd: backward pass for GELU activation. Computes: dInput = dOutput * gelu'(x)
Parameters
inInputconst Matrix &forward INPUT x (gelu'(x) is a function of input, not output)
inGradOutputconst Matrix &—
Returns
MatrixThe declared return value.