Skip to content

Instantly share code, notes, and snippets.

@3h4
Created November 18, 2016 22:01
Show Gist options
  • Save 3h4/bc7801435629bf36788666a663ffaaf2 to your computer and use it in GitHub Desktop.
Save 3h4/bc7801435629bf36788666a663ffaaf2 to your computer and use it in GitHub Desktop.
cell_state = tf.placeholder(tf.float32, [batch_size, state_size])
hidden_state = tf.placeholder(tf.float32, [batch_size, state_size])
init_state = tf.nn.rnn_cell.LSTMStateTuple(cell_state, hidden_state)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment