PyTorch Forums
Why do src_key_padding_mask and src_mask have different conventions in TransformerEncoderLayer?
juane
(Juan Elenter)
July 2, 2025, 4:48pm
1
Question is pretty self-explanatory, seems like a potential source of bugs.