From 7dfa6918ee19602c2cb1b500f1950da317f5ef73 Mon Sep 17 00:00:00 2001 From: Jeremy Reizenstein Date: Sat, 28 Jan 2023 17:00:41 -0800 Subject: [PATCH] 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 --- tests/test_transforms.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/tests/test_transforms.py b/tests/test_transforms.py index bfd67feb..8c471e87 100644 --- a/tests/test_transforms.py +++ b/tests/test_transforms.py @@ -464,9 +464,6 @@ class TestTransform(TestCaseMixin, unittest.TestCase): for invalid_index in ( torch.tensor([1, 0, 1], dtype=torch.float32, device=device), # float tensor 1.2, # float index - torch.tensor( - [[1, 0, 1], [1, 0, 1]], dtype=torch.int32, device=device - ), # multidimensional tensor ): with self.assertRaises(IndexError): t3d_selected = t3d[invalid_index]