mirror of
https://github.com/facebookresearch/pytorch3d.git
synced 2025-08-02 03:42:50 +08:00
Disable random-dependent tests
Summary: These two tests fail (with non-small differences) when the seed is changed or if certain environmental changes are made. We disable them pending investigation. A small change to the tolerance at the failing assertion doesn't help. The change in common_testing helps diagnose this. Reviewed By: shapovalov Differential Revision: D26233419 fbshipit-source-id: 357afc1786825256c9bade101fb15707e4dea5ed
This commit is contained in:
parent
3c0b31a2b8
commit
cd9786e787
@ -99,13 +99,10 @@ class TestCaseMixin(unittest.TestCase):
|
||||
# all(|norm_fn(input - other)| <= atol + rtol * |norm_fn(other)|) ==
|
||||
# all(norm_fn(input - other) <= atol + rtol * norm_fn(other)).
|
||||
|
||||
backend = torch if torch.is_tensor(input) else np
|
||||
close = backend.allclose(
|
||||
self.assertClose(
|
||||
diff + other_, other_, rtol=rtol, atol=atol, equal_nan=equal_nan
|
||||
)
|
||||
|
||||
self.assertTrue(close, msg)
|
||||
|
||||
def assertClose(
|
||||
self,
|
||||
input: TensorOrArray,
|
||||
|
@ -27,6 +27,7 @@ class TestCamerasAlignment(TestCaseMixin, unittest.TestCase):
|
||||
"""
|
||||
Checks the corresponding_cameras_alignment function.
|
||||
"""
|
||||
self.skipTest("Temporarily disabled pending investigation")
|
||||
device = torch.device("cuda:0")
|
||||
|
||||
# try few different random setups
|
||||
|
@ -498,6 +498,7 @@ class TestCorrespondingPointsAlignment(TestCaseMixin, unittest.TestCase):
|
||||
- use_pointclouds ... If True, passes the Pointclouds objects
|
||||
to corresponding_points_alignment.
|
||||
"""
|
||||
self.skipTest("Temporarily disabled pending investigation")
|
||||
# run this for several different point cloud sizes
|
||||
for n_points in (100, 3, 2, 1):
|
||||
# run this for several different dimensionalities
|
||||
|
Loading…
x
Reference in New Issue
Block a user