oa::GruCell
GruCell class in the OA Ml public surface.
Inheritance
public Module
Public Methods
Constructor & Destructor Documentation
Public Method Documentation
No public source comment is attached to this declaration.
Parameters
inInputconst oa::Matrix &—
Returns
oa::MatrixThe declared return value.
split projections so Gru can hoist the (recurrence-free) input projection out of the timestep loop into one batched GEMM. inputProjection: gatesI = Linear(x, W_ih, b_ih) for any row count → [*, 3H]. stepWithGatesI: consumes a precomputed gatesI [B*T, 3H] at row offset timeOffset and runs only the recurrent gatesH + pointwise.
Parameters
inInputconst oa::Matrix &—
Returns
oa::MatrixThe declared return value.
No public source comment is attached to this declaration.
Returns
oa::I32The declared return value.
No public source comment is attached to this declaration.
Parameters
inInputconst oa::Matrix &—
inHiddenconst oa::Matrix &—
Returns
oa::MatrixThe declared return value.
No public source comment is attached to this declaration.
Parameters
inGatesIconst oa::Matrix &—
inHiddenconst oa::Matrix &—
inTimeOffsetoa::U32Default: 0
inBatchStrideoa::U32Default: 1
Returns
oa::MatrixThe declared return value.
No public source comment is attached to this declaration.
Parameters
inBatchoa::I32—
Returns
oa::MatrixThe declared return value.