oa::FnMatrix::rnnCellLinear
rnnCellLinear: fused vanilla-RNN recurrent step — Linear(h, W_hh) + rnnCellPointwise. Replaces the per-timestep pair of dispatches with one kernel. inGatesI is the whole input projection [B*T, H]; inTimeOffset/inBatchStride index the current timestep's row directly, so oa::Rnn needs no per-step Slice. The hidden projection required by reverse mode is retained internally rather than exposed as an output parameter.
Function Documentation
rnnCellLinear: fused vanilla-RNN recurrent step — Linear(h, W_hh) + rnnCellPointwise. Replaces the per-timestep pair of dispatches with one kernel. inGatesI is the whole input projection [B*T, H]; inTimeOffset/inBatchStride index the current timestep's row directly, so oa::Rnn needs no per-step Slice. The hidden projection required by reverse mode is retained internally rather than exposed as an output parameter.
Parameters
inGatesIconst Matrix &—
inHiddenconst Matrix &—
inWeightHhconst Matrix &—
inTimeOffsetoa::U32Default: 0
inBatchStrideoa::U32Default: 1
inBiasHhconst Matrix &Default: Matrix{}
Returns
MatrixThe declared return value.