}

Tensorflow: rnn_cell has no BasicLSTMCell

Created:

The error

The python code usign tensorflow BasicLSTMCell:

lstm_cell = tf.contrib.rnn.BasicLSTMCell(

Raises the error:

AttributeError: 'module' object has no attribute 'BasicLSTMCell'.

Solution 1

Upgrade your TensorFlow installation to 1.4. static_rnn should be available.

Alternative solution

You can use BasicLSTMCell through tf.nn.rnn_cell.BasicLSTMCell