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

NaN value while training #8

Open
louiseblade opened this issue Jul 12, 2024 · 2 comments
Open

NaN value while training #8

louiseblade opened this issue Jul 12, 2024 · 2 comments

Comments

@louiseblade
Copy link

I've read google team implementation too, and they use gamma normalization to prevent NaN while training .
when i use your code, first several epochs were fine but suddenly torch.autograd detect anomaly while training . I do believe that's because of the RGLRU . Is there anyway to avoid NaN or should we use some sort of normalization ?

@proger
Copy link
Owner

proger commented Jul 12, 2024

Hey, could you share where that nan comes from? The anomaly detector should be helping with that.

@louiseblade
Copy link
Author

Thank you for you reply . I'm using pycharm and here is the log
Untitled

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

2 participants