A gated recurrent unit decides how much of its old state to keep and how much to replace. The update gate is the first decision: it is a vector of values between 0 and 1 computed from the current input and the previous state.
Implement gru_update_gate(x, h, Wz, Uz), which returns sigmoid(Wz x + Uz h).
Compute the affine map of x and h, then apply the logistic function element-wise.
No results yet
Run your code to check it against the examples, or submit to run every test.