aster
aster copied to clipboard
reshaping function error in demo.py
ValueError: Unexpected behavior when reshaping between beam width and batch size. The reshaped tensor has shape: (1, 5, 256). We expected it to have shape (batch_size, beam_width, depth) == (1, 5, 25). Perhaps you forgot to create a zero_state with batch_size=encoder_batch_size * beam_width?
is this becuase of the Tensorflow version issue or something else? Currently I am using Tensorflow 1.12.
ValueError: Unexpected behavior when reshaping between beam width and batch size. The reshaped tensor has shape: (1, 5, 256). We expected it to have shape (batch_size, beam_width, depth) == (1, 5, 25). Perhaps you forgot to create a zero_state with batch_size=encoder_batch_size * beam_width?
is this becuase of the Tensorflow version issue or something else? Currently I am using Tensorflow 1.12.
ValueError: Unexpected behavior when reshaping between beam width and batch size. The reshaped tensor has shape: (1, 5, 256). We expected it to have shape (batch_size, beam_width, depth) == (1, 5, 25). Perhaps you forgot to create a zero_state with batch_size=encoder_batch_size * beam_width?
is this becuase of the Tensorflow version issue or something else? Currently I am using Tensorflow 1.12.
You had better use TF 1.4.0 to run this code. Many functions used in this code are not compatible with higher versions of TF.