| nn_gru_step | R Documentation |
Build one GRU step
nn_gru_step(
ctx,
x_t,
h_t,
W_zh,
U_zh,
b_zh,
W_n,
U_n,
b_n,
units,
act_cell,
act_rec
)
ctx |
ggml compute context |
x_t |
Input at this step: [input_size, N] |
h_t |
Previous hidden state: [units, N] |
W_zh |
[input_size, 2*units] |
U_zh |
[units, 2*units] |
b_zh |
[2*units] |
W_n |
[input_size, units] |
U_n |
[units, units] |
b_n |
[units] |
units |
Integer |
act_cell |
Activation for candidate (tanh) |
act_rec |
Activation for z/r gates (sigmoid) |
list(h = new_h)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.