mirror of
https://github.com/facebookresearch/pytorch3d.git
synced 2025-12-21 14:50:36 +08:00
test fixes
Summary: Some random seed changes. Skip multigpu tests when there's only one gpu. This is a better fix for what AI is doing in D80600882. Reviewed By: MichaelRamamonjisoa Differential Revision: D80625966 fbshipit-source-id: ac3952e7144125fd3a05ad6e4e6e5976ae10a8ef
This commit is contained in:
committed by
Facebook GitHub Bot
parent
50f8efa1cb
commit
dd068703d1
@@ -63,9 +63,6 @@ class TestTensorProperties(TestCaseMixin, unittest.TestCase):
|
||||
self.assertEqual(example_gpu.device.type, "cuda")
|
||||
self.assertIsNotNone(example_gpu.device.index)
|
||||
|
||||
example_gpu1 = example.cuda(1)
|
||||
self.assertEqual(example_gpu1.device, torch.device("cuda:1"))
|
||||
|
||||
def test_clone(self):
|
||||
# Check clone method
|
||||
example = TensorPropertiesTestClass(x=10.0, y=(100.0, 200.0))
|
||||
|
||||
Reference in New Issue
Block a user