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

loss function returns nan #102

Open
natank1 opened this issue Nov 27, 2020 · 0 comments
Open

loss function returns nan #102

natank1 opened this issue Nov 27, 2020 · 0 comments

Comments

@natank1
Copy link

natank1 commented Nov 27, 2020

I had the problem of running the code and got nan from the loss function after 2-3 iterations. While testing the problem I saw that some parameters such as gamma and beta in Layernorm are derived (requires_grad is true )and so are namd_hz_ and low_hz_in SincConv_fast.

I changed Layernorm to nn.Layernorm and it resolves the problem

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