ratschlab / RGAN

Recurrent (conditional) generative adversarial networks for generating real-valued time series data.
https://arxiv.org/abs/1706.02633
MIT License
639 stars 181 forks source link

Tensorflow version compatilibty? #6

Closed ArturoDeza closed 7 years ago

ArturoDeza commented 7 years ago

Was curious what tensorflow version this was compiled in. I have all packaged for python3, and now I'm getting an error message whenI run the sample code in the README.md regarding the test file:

from tensorflow.python.ops.rnn_cell_impl import _RNNCell as RNNCell # Original Implementation
ImportError: cannot import name '_RNNCell'

*Traces this to the mod_core_rnn_cell_impl.py file. This was ran on tensorflow 1.2.1

ArturoDeza commented 7 years ago

Original error:

Traceback (most recent call last):
  File "experiment.py", line 9, in <module>
    import data_utils
  File "/home/dsmi/Documents/RGAN-master/data_utils.py", line 9, in <module>
    import model
  File "/home/dsmi/Documents/RGAN-master/model.py", line 7, in <module>
    from mod_core_rnn_cell_impl import LSTMCell          #modified to allow initializing bias in lstm
  File "/home/dsmi/Documents/RGAN-master/mod_core_rnn_cell_impl.py", line 45, in <module>
    from tensorflow.python.ops.rnn_cell_impl import _RNNCell as RNNCell
ImportError: No module named 'tensorflow.python.ops.rnn_cell_impl'

I have the feeeling this has to do with a version compatibility issue, although I just switched back to 0.12 and got the same error ....

ArturoDeza commented 7 years ago

Nevermind, solved here https://github.com/ratschlab/RGAN/issues/2