pytorch/test/cpp
Raghavan Raman 46c9a0e679 Do not use negative values in GCD computation. (#49379)
Summary:
GCD should always return positive integers. When negative values are used, we hit a corner case that results in an infinite recursion during simplification.

Pull Request resolved: https://github.com/pytorch/pytorch/pull/49379

Reviewed By: ezyang

Differential Revision: D25597115

Pulled By: navahgar

fbshipit-source-id: b0e8ac07ee50a5eb775c032628d4840df7424927
2020-12-21 15:08:43 -08:00
..
api Fix CustomAutogradTest.ReentrantPriority rerun failures (#49581) 2020-12-18 00:34:06 -08:00
common
dist_autograd
jit [PyTorch Mobile] Export Operator List from Mobile CompilationUnit instead of from TorchScript Model (#49385) 2020-12-18 11:17:57 -08:00
rpc [c10d] switch ProcessGroup to be managed by intrusive_ptr (#47343) 2020-11-12 07:36:23 -08:00
tensorexpr Do not use negative values in GCD computation. (#49379) 2020-12-21 15:08:43 -08:00
__init__.py