oa::FnMatrix::gruScanBwd
gruScanBwd: BPTT recurrence scan (backward of gruScan) in ONE dispatch. Produces gradients w.r.t. the input projection gatesI and the hidden projection gatesH (the latter drives the separate linearWeightBiasBwd weight-grad call).
Function Documentation
gruScanBwd: BPTT recurrence scan (backward of gruScan) in ONE dispatch. Produces gradients w.r.t. the input projection gatesI and the hidden projection gatesH (the latter drives the separate linearWeightBiasBwd weight-grad call).
Parameters
inDOutconst Matrix &—
inGatesIconst Matrix &—
inHPrevconst Matrix &—
inWeightHhconst Matrix &—
inHiddenSizeoa::I32—
inSeqLenoa::I32—
inBatchoa::I32—
inBiasHhconst Matrix &Default: Matrix{}
Returns
GruScanBwdResultThe declared return value.