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

Initialization method of weights #2

Open
CloudWalking0 opened this issue Sep 1, 2021 · 0 comments
Open

Initialization method of weights #2

CloudWalking0 opened this issue Sep 1, 2021 · 0 comments

Comments

@CloudWalking0
Copy link

CloudWalking0 commented Sep 1, 2021

Hi, yy,
I was wondering why you choose
xavier_normal_(self.weight, gain=2, mode='out')
instead of
nn.init.xavier_uniform_(self.weight)
when initializing weights. And by looking through the xavier_normal_ function, I found the weights won't participate in gradient propagation, why?

Thanks for your sharing, and have a nice day :)

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