aspuru-guzik-group/ORGANIC

cannot import name 'core_rnn_cell_impl'

figten opened this issue · 1 comments

In discriminator.py, I keep getting the following error message:
from tensorflow.contrib.rnn.python.ops import core_rnn_cell_impl ImportError: cannot import name 'core_rnn_cell_impl'

I am using tf 1.2.1 and python 3.5.3.
I think it has to do with the updated version of tf, but can't find a way to solve the issue.
Any help?

Found the solution on https://stackoverflow.com/questions/42437115/tensorflow-replacement-for-tf-nn-rnn-cell-linearinput-size-0-scope..

from tensorflow.python.ops import rnn_cell_impl
replace tf.nn.rnn_cell._linear with rnn_cell_impl._linear