mirror of
https://github.com/facebookresearch/pytorch3d.git
synced 2025-12-20 22:30:35 +08:00
lint
Summary: Fix recent flake complaints Reviewed By: MichaelRamamonjisoa Differential Revision: D51811912 fbshipit-source-id: 65183f5bc7058da910e4d5a63b2250ce8637f1cc
This commit is contained in:
committed by
Facebook GitHub Bot
parent
f74fc450e8
commit
83bacda8fb
@@ -964,8 +964,8 @@ class TestFoVPerspectiveProjection(TestCaseMixin, unittest.TestCase):
|
||||
with self.assertRaisesRegex(IndexError, "out of bounds"):
|
||||
cam[N_CAMERAS]
|
||||
|
||||
index = torch.tensor([1, 0, 1], dtype=torch.bool)
|
||||
with self.assertRaisesRegex(ValueError, "does not match cameras"):
|
||||
index = torch.tensor([1, 0, 1], dtype=torch.bool)
|
||||
cam[index]
|
||||
|
||||
with self.assertRaisesRegex(ValueError, "Invalid index type"):
|
||||
@@ -974,8 +974,8 @@ class TestFoVPerspectiveProjection(TestCaseMixin, unittest.TestCase):
|
||||
with self.assertRaisesRegex(ValueError, "Invalid index type"):
|
||||
cam[[True, False]]
|
||||
|
||||
index = torch.tensor(SLICE, dtype=torch.float32)
|
||||
with self.assertRaisesRegex(ValueError, "Invalid index type"):
|
||||
index = torch.tensor(SLICE, dtype=torch.float32)
|
||||
cam[index]
|
||||
|
||||
def test_get_full_transform(self):
|
||||
|
||||
Reference in New Issue
Block a user