Skip to content

Commit d5e2408

Browse files
committed
Clarify that its torch which deprecates uint8s for indexing
1 parent ea679a8 commit d5e2408

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

torch_np/tests/numpy_tests/core/test_indexing.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ def test_void_scalar_empty_tuple(self):
132132
@pytest.mark.xfail(
133133
reason=(
134134
"torch does not support integer indexing int tensors with uints - "
135-
"uint8 tensor indexes are treated as boolean masks (deprecated)"
135+
"torch instead treats uint8 tensors as boolean masks (deprecated)"
136136
)
137137
)
138138
def test_same_kind_index_casting(self):
@@ -491,7 +491,7 @@ def __array__(self):
491491
@pytest.mark.xfail(
492492
reason=(
493493
"torch does not support integer indexing int tensors with uints - "
494-
"uint8 tensor indexes are treated as boolean masks (deprecated)"
494+
"torch instead treats uint8 tensors as boolean masks (deprecated)"
495495
)
496496
)
497497
def test_small_regressions(self):

0 commit comments

Comments
 (0)