Tensorflow-RNN-Tutorial
Tensorflow-RNN-Tutorial copied to clipboard
There is an error in tf.contrib.seq2seq.dynamic_decode()
When I run RNN-TF-dynamic-decode.py, the TypeError occur, TypeError: Input 'y' of 'Equal' Op has type int64 that does not match type int32 of argument 'x'. in tf.contrib.seq2seq.dynamic_decode() line.
If your environment is different, like windows and linux, this may be the case.
You can use type cast.
Check your tensorflow version Or upgrade your tensorflow.
helper = tf.contrib.seq2seq.TrainingHelper(inputs, np.array([seq_length]*batch_size))
==>
helper = tf.contrib.seq2seq.TrainingHelper(inputs, np.array([seq_length]*batch_size, dtype=np.int32))