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

Parameter initialized with torch.randn may be not a good choice #17

Open
lddsdu opened this issue Aug 14, 2021 · 0 comments
Open

Parameter initialized with torch.randn may be not a good choice #17

lddsdu opened this issue Aug 14, 2021 · 0 comments

Comments

@lddsdu
Copy link

lddsdu commented Aug 14, 2021

It seems that the parameter initialized with randn (

self.q_proj_weight = nn.Parameter(torch.randn(self.d_model,
) will lead to low-performance, and I tried xavier_norm and kaiming_uniform, both reach a much higher AUC and F1 score in my task.

@lddsdu lddsdu changed the title Parameter Initialization Parameter initialized with torch.randn may be not a good choice Aug 14, 2021
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