Skip to content

Instantly share code, notes, and snippets.

@3h4
Created November 18, 2016 22:31
Show Gist options
  • Save 3h4/2afccd3df84642c35bb1d697748bfffa to your computer and use it in GitHub Desktop.
Save 3h4/2afccd3df84642c35bb1d697748bfffa to your computer and use it in GitHub Desktop.
# Forward passes
cell = tf.nn.rnn_cell.LSTMCell(state_size, state_is_tuple=True)
cell = tf.nn.rnn_cell.MultiRNNCell([cell] * num_layers, state_is_tuple=True)
states_series, current_state = tf.nn.rnn(cell, inputs_series, initial_state=rnn_tuple_state)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment