Putting the pieces together gives one full GRU step. The update gate decides how much of the candidate to take, and the candidate already uses the reset gate. The output blends the old state and the candidate.
Implement gru_step(x, h, Wz, Uz, Wr, Ur, W, U), computing the update gate, the reset gate, the candidate, and the new state.
Compute z, r, h_tilde, then return (1 - z) * h + z * h_tilde.
No results yet
Run your code to check it against the examples, or submit to run every test.