News for hackers. Stuff that matters.
Re:Show HN: RNN that generates Game of Thrones text by yablak on Tuesday August 22, 2017 @06:10PM (#15076809)
If you're using TF 1.2.1 or above, you want to replace this line:

cell = tf.contrib.rnn.MultiRNNCell([drop_cell] * num_layers)

with:

cell = tf.contrib.rnn.MultiRNNCell([create_cell() for _ in range(num_layers)])

otherwise you'll be using the same weights for each LSTM layer and your model is less expressive.

Re:Show HN: RNN that generates Game of Thrones text by zthoutt on Tuesday August 22, 2017 @07:00PM (#15077095)
Yep, I was using TF 1.0.0. I will probably upgrade in the future and will keep this in mind.