Skip to content

Instantly share code, notes, and snippets.

@eisenjulian
Last active March 4, 2018 23:37
Show Gist options
  • Save eisenjulian/9f369bc4c1086be02f8e36e3e9f5b9b2 to your computer and use it in GitHub Desktop.
Save eisenjulian/9f369bc4c1086be02f8e36e3e9f5b9b2 to your computer and use it in GitHub Desktop.
lstm_cell = tf.nn.rnn_cell.BasicLSTMCell(100)
_, final_states = tf.nn.dynamic_rnn(
lstm_cell, inputs, sequence_length=features['len'], dtype=tf.float32)
logits = tf.layers.dense(inputs=final_states.h, units=1)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment