Open KimRass opened 8 months ago
https://github.com/jadore801120/attention-is-all-you-need-pytorch/blob/master/transformer/Models.py#L190
I think that should be like
trg_mask = get_pad_mask(trg_seq, self.trg_pad_idx) | get_subsequent_mask(trg_seq)
am I wrong?
https://github.com/jadore801120/attention-is-all-you-need-pytorch/blob/master/transformer/Models.py#L190
I think that should be like
am I wrong?