Skip to content

Feature/error on nan #255

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

Merged
merged 4 commits into from
Aug 5, 2021
Merged

Feature/error on nan #255

merged 4 commits into from
Aug 5, 2021

Conversation

cpnota
Copy link
Owner

@cpnota cpnota commented Aug 5, 2021

Just a small PR to enable the error_if_nonfinite=True keyboard in clip_grad_norm_(). This raises a RuntimeError if nan is detected during the backward pass, rather than silently failing. This will be the default behavior in future versions of Pytorch. Updated the version of Pytorch to 1.9 support this and slightly refactored Approximation.step() to be more readable.

@cpnota cpnota merged commit e8f3f16 into develop Aug 5, 2021
This was referenced Aug 5, 2021
@cpnota cpnota deleted the feature/error-on-nan branch April 12, 2022 21:39
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

Successfully merging this pull request may close these issues.

1 participant