Skip to content

Commit cbcae09

Browse files
bottlermeta-codesync[bot]
authored andcommitted
Add atol=1e-4 to assertClose calls in test_inverse for Translate
Summary: Added `atol=1e-4` tolerance parameter to the `assertClose` calls on lines 682 and 683 in the `test_inverse` method of `TestTranslate` class. This is a retry of D90225548 Reviewed By: sgrigory Differential Revision: D90682979 fbshipit-source-id: ac13f000174dd9962326296e1c3116d0d39c7751
1 parent 5b1cce5 commit cbcae09

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

tests/test_transforms.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -679,8 +679,8 @@ def test_inverse(self):
679679
im = t.inverse()._matrix
680680
im_2 = t._matrix.inverse()
681681
im_comp = t.get_matrix().inverse()
682-
self.assertClose(im, im_comp)
683-
self.assertClose(im, im_2)
682+
self.assertClose(im, im_comp, atol=1e-4)
683+
self.assertClose(im, im_2, atol=1e-4)
684684

685685
def test_get_item(self, batch_size=5):
686686
device = torch.device("cuda:0")

0 commit comments

Comments
 (0)