snakeztc / NeuralDialog-CVAE

Tensorflow Implementation of Knowledge-Guided CVAE for dialog generation ACL 2017. It is released by Tiancheng Zhao (Tony) from Dialog Research Center, LTI, CMU
https://www.cs.cmu.edu/~tianchez/
Apache License 2.0
309 stars 85 forks source link

import tensorflow.contrib.rnn.python.ops.core_rnn_cell_impl as rnn_cell ImportError: No module named core_rnn_cell_impl #1

Closed alifirst closed 7 years ago

alifirst commented 7 years ago

Tensorflow 0.12.1

Traceback (most recent call last): File "kgcvae_swda.py", line 13, in from models.cvae import KgRnnCVAE File "/home/ubuntu/NeuralDialog-CVAE/models/cvae.py", line 8, in import tensorflow.contrib.rnn.python.ops.core_rnn_cell_impl as rnn_cell ImportError: No module named core_rnn_cell_impl

Which tensorflow version works fine with it?

snakeztc commented 7 years ago

I am able to run the code using tensorflow (0.12.1). I will do a pass on the code in the next few days to make it compatible with whichever latest version of Tensorflow. You could also change the import line to import the correct rnn_cell based on your local TF version.

snakeztc commented 7 years ago

@alifirst The code is updated to tensorflow 1.3.0.