Using the Multilayered LSTM API in TensorFlow (4/7)
Erik Hallström
19810

Replace:

cell = tf.nn.rnn_cell.LSTMCell(state_size, state_is_tuple=True)
cell = tf.nn.rnn_cell.MultiRNNCell([cell] * num_layers, state_is_tuple=True)

With:

stacked_rnn = []
for _ in range(num_layers):
stacked_rnn.append(tf.nn.rnn_cell.LSTMCell(state_size, state_is_tuple=True))

cell = tf.nn.rnn_cell.MultiRNNCell(stacked_rnn, state_is_tuple=True)

tensorflow v. 1.2.0

One clap, two clap, three clap, forty?

By clapping more or less, you can signal to us which stories really stand out.