Skip to content

Commit

Permalink
transform test fix
Browse files Browse the repository at this point in the history
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
  • Loading branch information
bottler authored and facebook-github-bot committed Jan 29, 2023
1 parent a7256e4 commit 7dfa691
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions tests/test_transforms.py
Original file line number Diff line number Diff line change
Expand Up @@ -464,9 +464,6 @@ def test_get_item(self, batch_size=5):
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]
Expand Down

0 comments on commit 7dfa691

Please sign in to comment.