nmt-seq2seq icon indicating copy to clipboard operation
nmt-seq2seq copied to clipboard

RuntimeError: Expected tensor [64 x 1 x 300], src [64 x 6 x 128] and index [64 x 1 x 300] to have the same size apart from dimension 1

Open cswangjiawei opened this issue 6 years ago • 0 comments

h = hiddens.gather(1, x_lengths).permute(1,0,2) RuntimeError: Expected tensor [64 x 1 x 300], src [64 x 6 x 128] and index [64 x 1 x 300] to have the same size apart from dimension 1

cswangjiawei avatar Dec 20 '18 13:12 cswangjiawei