aster icon indicating copy to clipboard operation
aster copied to clipboard

reshaping function error in demo.py

Open ghost opened this issue 5 years ago • 1 comments

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.

ghost avatar Mar 15 '19 10:03 ghost

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.

Actasidiot avatar Mar 30 '19 14:03 Actasidiot