oa::FnMatrix::geluBwd

geluBwd: backward pass for GELU activation. Computes: dInput = dOutput * gelu'(x)

Function Documentation

Matrix oa::FnMatrix::geluBwd( const Matrix & inInput, const Matrix & inGradOutput )
geluBwd: backward pass for GELU activation. Computes: dInput = dOutput * gelu'(x)

Parameters

inInput
const Matrix &

forward INPUT x (gelu'(x) is a function of input, not output)

inGradOutput
const Matrix &

Returns

Matrix

The declared return value.