aspuru-guzik-group / ORGANIC

Code repo for optimizing distributions of molecules.
GNU General Public License v3.0
128 stars 63 forks source link

cannot import name 'core_rnn_cell_impl' #5

Closed figten closed 6 years ago

figten commented 6 years ago

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?

figten commented 6 years ago

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