farizrahman4u / seq2seq

Sequence to Sequence Learning with Keras
GNU General Public License v2.0
3.17k stars 846 forks source link

Get error when run teacher_force mode with tensorflow backend #237

Open congson1293 opened 6 years ago

congson1293 commented 6 years ago

Hi, I have run your test example and gotten error when run teacher_force mode in Seq2Seq.

tensorflow.python.framework.errors_impl.InvalidArgumentError: The node 'recurrent_sequential_2/while_1/Variable_1/Assign' has inputs from different frames. The input 'recurrent_sequential_2/while_1/Const_1' is in frame 'recurrent_sequential_2/while_1/recurrent_sequential_2/while_1/'. The input 'recurrent_sequential_2/while_1/Variable_1' is in frame ''.

When I change keras backend from tensorflow to theano, it work.