pytorch
5fd037ce - Fix MagmaInitializesCorrectly_CUDA by using an invertible matrix (#32547)

Commit
5 years ago
Fix MagmaInitializesCorrectly_CUDA by using an invertible matrix (#32547) Summary: This test case had been using the tensor ``` 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 ``` which is not an invertible tensor and causes the test case to fail, even if magma gets initialized just fine. This change uses a tensor that is invertible, and the inverse doesn't include any elements that are close to zero to avoid floating point rounding errors. Pull Request resolved: https://github.com/pytorch/pytorch/pull/32547 Differential Revision: D19572316 Pulled By: ngimel fbshipit-source-id: 1baf3f8601b2ba69fdd6678d7a3d86772d01edbe
Author
Charles Hofer
Parents
Loading