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

About SA_Layer #32

Open
Hzj199 opened this issue Dec 12, 2021 · 2 comments
Open

About SA_Layer #32

Hzj199 opened this issue Dec 12, 2021 · 2 comments

Comments

@Hzj199
Copy link

Hzj199 commented Dec 12, 2021

When the convolution weight of q and k are initialized equal,
self.q_conv.conv.weight = self.k_conv.conv.weight
will it cause q and k to be always the same when updated?

@MenghaoGuo
Copy link
Owner

It only works when it is initialized, and does not affect the update.

@aniqueakhtar
Copy link

It only works when it is initialized, and does not affect the update.

But what is the purpose of this? Why are they initialized to the same weight?

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

3 participants