oa::FnMatrix::rnnCellPointwiseBwd
rnnCellPointwiseBwd: fused vanilla-RNN pointwise backward. Returns gradients w.r.t. gatesI and gatesH (both equal to dL/da). inGatesI is the whole-sequence [B*T, H] projection; inTimeOffset/inBatchStride select this timestep's rows so dGatesI is scattered into the full buffer (zeros elsewhere).
Function Documentation
rnnCellPointwiseBwd: fused vanilla-RNN pointwise backward. Returns gradients w.r.t. gatesI and gatesH (both equal to dL/da). inGatesI is the whole-sequence [B*T, H] projection; inTimeOffset/inBatchStride select this timestep's rows so dGatesI is scattered into the full buffer (zeros elsewhere).
Parameters
inGatesIconst Matrix &—
inGatesHconst Matrix &—
inGradOutputconst Matrix &—
inHiddenSizeoa::I32—
inTimeOffsetoa::U32Default: 0
inBatchStrideoa::U32Default: 1
Returns
RnnCellPointwiseBwdResultThe declared return value.