facebookresearch/fairseq

key_padding_mask is not used in transformer decoder layer?

Open

#537 ouverte le 27 févr. 2019

Voir sur GitHub
 (1 commentaire) (0 réactions) (0 assignés)Python (6 224 forks)batch import
bughelp wanted

Métriques du dépôt

Stars
 (29 107 stars)
Métriques de merge PR
 (Aucune PR mergée en 30 j)

Description

when reading the source code i found that key_padding_mask is not used when calculating self attention. There is no problem when the target is padded right by default because attn_mask could do the same thing. But how about left padding on the target?

Guide contributeur