[Solved]: ImportError: cannot import name 'rnn_cell'

ERROR:

Using tensorflow 1.1.0  on Mac / Linux

While I run this code :

from tensorflow.python.ops import rnn, rnn_cell

I the got following ERROR:

ImportError: cannot import name 'rnn_cell'

Solution: Try this:

from tensorflow.contrib.rnn.python.ops import rnn_cell