pytorch
3ddc6174 - Raise error in clip_grad_norm_ if norm is non-finite (#53843)

Commit
3 years ago
Raise error in clip_grad_norm_ if norm is non-finite (#53843) Summary: **BC-breaking note**: This change throws errors for cases that used to silently pass. The old behavior can be obtained by setting `error_if_nonfinite=False` Fixes https://github.com/pytorch/pytorch/issues/46849 Pull Request resolved: https://github.com/pytorch/pytorch/pull/53843 Reviewed By: malfet Differential Revision: D27291838 Pulled By: jbschlosser fbshipit-source-id: 216d191b26e1b5919a44a3af5cde6f35baf825c4
Author
Parents
Loading