| nn_lstm_step | R Documentation |
Build one LSTM step
nn_lstm_step(
ctx,
x_t,
h_t,
c_t,
W_gates,
U_gates,
b_gates,
units,
act_cell,
act_rec
)
ctx |
ggml compute context |
x_t |
Input at this step: tensor [input_size, N] |
h_t |
Previous hidden state: tensor [units, N] |
c_t |
Previous cell state: tensor [units, N] |
W_gates |
[input_size, 4*units] |
U_gates |
[units, 4*units] |
b_gates |
[4*units] |
units |
Integer |
act_cell |
Activation name for cell gate (tanh by default) |
act_rec |
Activation name for i/f/o gates (sigmoid by default) |
list(h = new_h, c = new_c)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.