Closed MansourTrabelsi closed 7 years ago
It is the problem of tensorflow version. You can change the "from tf.models.rnn import rnn, rnn_cell" into " from tensorflow.contrib import rnn, from tensorflow.python.ops.nn import rnn_cell". Coz the module rnn and cell_rnn are put into the different positions in version 1.0 or above.
Thank you a lot @Vivianyzw
Hi,
@Vivianyzw I tried what you mentioned, but now I face the following error:
outputs, state = rnn(cell, [_X[step]], state) TypeError: 'module' object is not callable
running this first command " ./experiments/testing/ROLO_network_test_all.py " gave me this error : Traceback (most recent call last): File "./../experiments/testing/ROLO_network_test_all.py", line 30, in
from tf.models.rnn import rnn, rnn_cell
ImportError: No module named tf.models.rnn