Skip to content

Commit

Permalink
This isn't counterproductive dev speed.
Browse files Browse the repository at this point in the history
  • Loading branch information
Narsil committed Jul 29, 2024
1 parent 684cebd commit d799e80
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion bindings/python/tests/test_simple.py
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,9 @@ def test_torch_slice(self):

tensor = slice_[:2]
self.assertEqual(list(tensor.shape), [2, 5])
torch.testing.assert_close(tensor, A[:2], f"{tensor} != {A[:2]}")
if not torch.allclose(tensor, A[:2]):
print(f"{tensor} != {A[:2]}")
torch.testing.assert_close(tensor, A[:2])

tensor = slice_[:, :2]
self.assertEqual(list(tensor.shape), [10, 2])
Expand Down

0 comments on commit d799e80

Please sign in to comment.