pytorch/test/cpp
Kurt Mohler 3ddc6174da 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
2021-03-29 08:41:21 -07:00
..
api Raise error in clip_grad_norm_ if norm is non-finite (#53843) 2021-03-29 08:41:21 -07:00
common
dist_autograd Forbid trailing whitespace (#53406) 2021-03-05 17:22:55 -08:00
jit Merge CUDA Streams and Events (#53902) 2021-03-26 14:19:39 -07:00
lite_interpreter_runtime [PyTorch] Enable test_lite_interpreter_runtime running in android (#54579) 2021-03-24 14:45:27 -07:00
rpc Use type-erased union for Buffer. (#54251) 2021-03-19 04:58:09 -07:00
tensorexpr [nnc][tests] Convert a bunch of FileCheck to checkIR 2021-03-26 20:27:50 -07:00
__init__.py