DongjunLee / conversation-tensorflow

TensorFlow implementation of Conversation Models
143 stars 27 forks source link

Error when run in tensorflow 1.6+ #12

Open nguyenvulebinh opened 6 years ago

nguyenvulebinh commented 6 years ago

When I run your project in tf 1.6 or tf 1.7, I got an error:

TypeError: The two structures don't have the same sequence type. First structure has type <class 'tuple'>, while second structure has type <class 'tensorflow.python.ops.rnn_cell_impl.LSTMStateTuple'>.

This happend in decoder.py line: self.decoder_initial_state.clone(cell_state=encoder_final_state). Can you check it?

DongjunLee commented 6 years ago

Okay I'll check the codes with tf 1.8 version. Sorry for late comment.

DongjunLee commented 6 years ago

I fixed it. Could you pull latest commit and test it again?