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

Teacher forcing during beam decoding

Open iamsimha opened this issue 6 years ago • 0 comments

https://github.com/IBM/pytorch-seq2seq/blob/f146087a9a271e9b50f46561e090324764b081fb/seq2seq/models/TopKDecoder.py#L83 .

I think teacher_forcing should not be present in beam decoding, since ground truth tokens are not known during inference.

iamsimha avatar Aug 29 '19 05:08 iamsimha