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

When calculating Qr, why is the W of content used instead of the W of position used? #136

Open
nebula303 opened this issue May 26, 2023 · 0 comments

Comments

@nebula303
Copy link

In disentangled_attention.py, pos_query_layer = self.transpose_for_scores(self.query_proj(rel_embeddings), self.num_attention_heads) .repeat(query_layer.size(0)//self.num_attention_heads, 1, 1),why use self.query_proj to deal with rel_embeddings,shouldn't self.query_proj used to calculate query_layer only?

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