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

No relative position embedding? #4

Open
BrandonHanx opened this issue Dec 12, 2020 · 0 comments
Open

No relative position embedding? #4

BrandonHanx opened this issue Dec 12, 2020 · 0 comments

Comments

@BrandonHanx
Copy link

Hi, @leaderj1001

Thanks for your code. However, I am a little bit confused about this line

lambda_p = torch.einsum('ku,bvun->bkvn', self.embedding, values)

It seems like did not use relative position embedding when strategy is not local context. What's the meaning of this line?

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