Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Define a lstm cell with tensorflow
- lstm_cell = tf.contrib.rnn.BasicLSTMCell(n_hidden, forget_bias=1.0)
- # Get lstm cell output
- outputs, states = rnn.static_rnn(lstm_cell, x, dtype=tf.float32)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement