Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

dimensions of encoder_attention_mask in inputs of OFADecoder #384

Closed
SilyRab opened this issue Apr 4, 2023 · 1 comment
Closed

dimensions of encoder_attention_mask in inputs of OFADecoder #384

SilyRab opened this issue Apr 4, 2023 · 1 comment

Comments

@SilyRab
Copy link

SilyRab commented Apr 4, 2023

This annotation may be wrong:
encoder_attention_mask (torch.Tensorof shape(bsz, seq_len)): the padding mask of the source side.
Does it refer to:
shape (bsz, 1, tgt_len, src_len)

@logicwong
Copy link
Member

@SilyRab Do you mean encoder_padding_mask? If so, its shape is equal to (bsz, seq_len), as shown in here

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants