test tolerance loosenings

Summary: Increase some test tolerances so that they pass in more situations, and re-enable two tests.

Reviewed By: nikhilaravi

Differential Revision: D31379717

fbshipit-source-id: 06a25470cc7b6d71cd639d9fd7df500d4b84c079
This commit is contained in:
Jeremy Reizenstein
2021-10-07 10:46:46 -07:00
committed by Facebook GitHub Bot
parent 8fa438cbda
commit b26f4bc33a
3 changed files with 11 additions and 9 deletions

View File

@@ -322,7 +322,7 @@ class TestRasterizeRectangleImagesMeshes(TestCaseMixin, unittest.TestCase):
# Finally check the gradients of the input vertices for
# the square and non square case
self.assertClose(verts_square.grad, grad_tensor.grad, rtol=3e-4)
self.assertClose(verts_square.grad, grad_tensor.grad, rtol=3e-4, atol=5e-3)
def test_gpu(self):
"""