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

Why in self.utterance_encoder use attention_mask, and after self.utterance_encoder use the attention_mask again? #10

Open
yixuan004 opened this issue Oct 9, 2021 · 2 comments

Comments

@yixuan004
Copy link

Why in self.utterance_encoder use attention_mask

attention_mask.view(-1, self.max_seq_length),

and after self.utterance_encoder use the attention_mask again?

hidden = torch.mul(hidden, attention_mask.view(-1, self.max_seq_length, 1).expand(hidden.size()).float())

@yixuan004
Copy link
Author

My code base is weak, hope to get your help! Thanks!

@qiunlp
Copy link

qiunlp commented Oct 18, 2022

why again?

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