mirror of
https://github.com/facebookresearch/pytorch3d.git
synced 2025-08-02 20:02:49 +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)|) ==
|
||||||
# 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
|
self.assertClose(
|
||||||
close = backend.allclose(
|
|
||||||
diff + other_, other_, rtol=rtol, atol=atol, equal_nan=equal_nan
|
diff + other_, other_, rtol=rtol, atol=atol, equal_nan=equal_nan
|
||||||
)
|
)
|
||||||
|
|
||||||
self.assertTrue(close, msg)
|
|
||||||
|
|
||||||
def assertClose(
|
def assertClose(
|
||||||
self,
|
self,
|
||||||
input: TensorOrArray,
|
input: TensorOrArray,
|
||||||
|
@ -27,6 +27,7 @@ class TestCamerasAlignment(TestCaseMixin, unittest.TestCase):
|
|||||||
"""
|
"""
|
||||||
Checks the corresponding_cameras_alignment function.
|
Checks the corresponding_cameras_alignment function.
|
||||||
"""
|
"""
|
||||||
|
self.skipTest("Temporarily disabled pending investigation")
|
||||||
device = torch.device("cuda:0")
|
device = torch.device("cuda:0")
|
||||||
|
|
||||||
# try few different random setups
|
# try few different random setups
|
||||||
|
@ -498,6 +498,7 @@ class TestCorrespondingPointsAlignment(TestCaseMixin, unittest.TestCase):
|
|||||||
- use_pointclouds ... If True, passes the Pointclouds objects
|
- use_pointclouds ... If True, passes the Pointclouds objects
|
||||||
to corresponding_points_alignment.
|
to corresponding_points_alignment.
|
||||||
"""
|
"""
|
||||||
|
self.skipTest("Temporarily disabled pending investigation")
|
||||||
# run this for several different point cloud sizes
|
# run this for several different point cloud sizes
|
||||||
for n_points in (100, 3, 2, 1):
|
for n_points in (100, 3, 2, 1):
|
||||||
# run this for several different dimensionalities
|
# run this for several different dimensionalities
|
||||||
|
Loading…
x
Reference in New Issue
Block a user