transform test fix

Summary: Indexing with a big matrix now fails with a ValueError, possibly because of pytorch improvements. Remove the testcase for it.

Reviewed By: davidsonic

Differential Revision: D42609741

fbshipit-source-id: 0a5a6632ed199cb942bfc4cc4ed347b72e491125
This commit is contained in:
Jeremy Reizenstein 2023-01-28 17:00:41 -08:00 committed by Facebook GitHub Bot
parent a7256e4034
commit 7dfa6918ee

View File

@ -464,9 +464,6 @@ class TestTransform(TestCaseMixin, unittest.TestCase):
for invalid_index in ( for invalid_index in (
torch.tensor([1, 0, 1], dtype=torch.float32, device=device), # float tensor torch.tensor([1, 0, 1], dtype=torch.float32, device=device), # float tensor
1.2, # float index 1.2, # float index
torch.tensor(
[[1, 0, 1], [1, 0, 1]], dtype=torch.int32, device=device
), # multidimensional tensor
): ):
with self.assertRaises(IndexError): with self.assertRaises(IndexError):
t3d_selected = t3d[invalid_index] t3d_selected = t3d[invalid_index]