LSTM_tsc icon indicating copy to clipboard operation
LSTM_tsc copied to clipboard

tf.nn.rnn.LSTMcell()

Open grwhumphries opened this issue 8 years ago • 3 comments

Hi there,

So it looks like in the latest version of TF (1.0?) - tf.nn.rnn.LSTMcell() has been replaced with tf.contrib.rnn.LSTMcell() - I just upgraded TF today and came across this,

https://github.com/tensorflow/tensorflow/commit/b8101a2b0a7ff1b96999c8e7ad213d1f36b4a4ab

grwhumphries avatar Feb 23 '17 14:02 grwhumphries

Continuing on that thought.. seq2seq has been moved to tf.contrib.seq2seq.dynamic_rnn_decoder()

grwhumphries avatar Feb 23 '17 14:02 grwhumphries

This actually gives me a:

TypeError: Expected binary or unicode string, got <tensorflow.contrib.rnn.python.ops.core_rnn_cell_impl.MultiRNNCell object

instead as temporary workaround you can still use: tf.contrib.legacy_seq2seq.rnn_decoder()

SerialDev avatar Mar 08 '17 16:03 SerialDev

Thanks - sorry I mean to update this, but you're right, it's legacy_seq2seq

grwhumphries avatar Mar 08 '17 16:03 grwhumphries