nmt-seq2seq
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
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