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

Question about TSA attention weight #278

Open
Angericky opened this issue Aug 19, 2024 · 0 comments
Open

Question about TSA attention weight #278

Angericky opened this issue Aug 19, 2024 · 0 comments

Comments

@Angericky
Copy link

Hi, thanks for your nice work!

I'm confuse by initialization of attention weights. They are all set to zero.

constant_init(self.attention_weights, val=0., bias=0.)

Why are the weights set to zero? Won't gradient vanishing happenn in the linear layer? Since in this way, the gradients of the weights are also be 0s during back propagation.

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