oa::FnMatrix::rnnScan
rnnScan: whole-sequence vanilla-RNN recurrent scan in ONE dispatch. Mathematically identical to running rnnCellLinear for each timestep, but collapses S dispatches into 1. The recurrent weight/bias gradient is computed separately via linearWeightBiasBwd on the saved hPrev.
Function Documentation
rnnScan: whole-sequence vanilla-RNN recurrent scan in ONE dispatch. Mathematically identical to running rnnCellLinear for each timestep, but collapses S dispatches into 1. The recurrent weight/bias gradient is computed separately via linearWeightBiasBwd on the saved hPrev.
Parameters
inGatesIconst Matrix &[B*S, H] precomputed input projection (row b*S+t = timestep t)
inWeightHhconst Matrix &—
inHiddenSizeoa::I32—
inSeqLenoa::I32—
inBatchoa::I32—
inBiasHhconst Matrix &Default: Matrix{}
Returns
RnnScanResultThe declared return value.