Advertisement
Guest User

Untitled

a guest
Jun 25th, 2017
55
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.19 KB | None | 0 0
  1. # Define a lstm cell with tensorflow
  2. lstm_cell = tf.contrib.rnn.BasicLSTMCell(n_hidden, forget_bias=1.0)
  3. # Get lstm cell output
  4. outputs, states = rnn.static_rnn(lstm_cell, x, dtype=tf.float32)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement