Bumping the threshold to allow leeway for CI testing randomness.

Summary:
1. CircleCI tests fail because of different randomisation. I was able to reproduce it on devfair (with an older version of pytorch3d though), but with a new threshold, it works. Let’s push and see if it will work in CircleCI.
2. Fixing linter’s issue with `l` variable name.

Reviewed By: bottler

Differential Revision: D22573244

fbshipit-source-id: 32cebc8981883a3411ed971eb4a617469376964d
This commit is contained in:
Roman Shapovalov
2020-07-16 10:16:34 -07:00
committed by Facebook GitHub Bot
parent cc70950f40
commit cdaac5f9c5
2 changed files with 4 additions and 4 deletions

View File

@@ -60,7 +60,7 @@ class TestPerspectiveNPoints(TestCaseMixin, unittest.TestCase):
)
self.assertClose(err_2d, sol.err_2d, msg=assert_msg)
self.assertTrue((err_2d < 5e-4).all(), msg=assert_msg)
self.assertTrue((err_2d < 1e-3).all(), msg=assert_msg)
def norm_fn(t):
return t.norm(dim=-1)