mirror of
https://github.com/facebookresearch/pytorch3d.git
synced 2025-12-21 14:50:36 +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:
committed by
Facebook GitHub Bot
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,
|
||||
|
||||
Reference in New Issue
Block a user