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

training problem #8

Open
zgzhhxx opened this issue Nov 8, 2024 · 0 comments
Open

training problem #8

zgzhhxx opened this issue Nov 8, 2024 · 0 comments

Comments

@zgzhhxx
Copy link

zgzhhxx commented Nov 8, 2024

Hello,I would like to ask how to solve this problem:
main_ginar.py:141: FutureWarning: Non-finite norm encountered in torch.nn.utils.clip_grad_norm_; continuing anyway. Note that the default behavior will change in a future release to error out if a non-finite total norm is encountered. At that point, setting error_if_nonfinite=false will be required to retain the old behavior.
nn.utils.clip_grad_norm_(my_net.parameters(), max_norm=max_norm)

thank you

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