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

AEN_BERT question about s1_mean calcuation #192

Open
Pager07 opened this issue Jul 2, 2021 · 0 comments
Open

AEN_BERT question about s1_mean calcuation #192

Pager07 opened this issue Jul 2, 2021 · 0 comments

Comments

@Pager07
Copy link

Pager07 commented Jul 2, 2021

Greetings author,

You calcuated s1_mean as follow

s1_mean = torch.div(torch.sum(s1, dim=1), context_len.view(context_len.size(0), 1))

I fail to understand why s1 of shape (bs,target_seq_len,d_model) is being divided by the length of the context. Why is it not divided by the length of the target?

Thank you.
Sandeep

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

1 participant