Skip to content

Commit b8bbdc8

Browse files
committed
Clean up pytorch-xfails file
1 parent 5a3bbbe commit b8bbdc8

File tree

1 file changed

+53
-28
lines changed

1 file changed

+53
-28
lines changed

pytorch-xfails.txt

Lines changed: 53 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -1,42 +1,51 @@
1+
# Note: see array_api_compat/torch/_aliases.py for links to corresponding
2+
# pytorch issues
3+
4+
# We cannot wrap the array object
5+
6+
# Indexing does not support negative step
17
array_api_tests/test_array_object.py::test_getitem
28
array_api_tests/test_array_object.py::test_setitem
9+
# Masking doesn't suport 0 dimensions in the mask
310
array_api_tests/test_array_object.py::test_getitem_masking
11+
# torch doesn't have uint dtypes other than uint8
412
array_api_tests/test_array_object.py::test_scalar_casting[__int__(uint16)]
513
array_api_tests/test_array_object.py::test_scalar_casting[__int__(uint32)]
614
array_api_tests/test_array_object.py::test_scalar_casting[__int__(uint64)]
715
array_api_tests/test_array_object.py::test_scalar_casting[__index__(uint16)]
816
array_api_tests/test_array_object.py::test_scalar_casting[__index__(uint32)]
917
array_api_tests/test_array_object.py::test_scalar_casting[__index__(uint64)]
18+
19+
# Overflow error from large inputs
1020
array_api_tests/test_creation_functions.py::test_arange
21+
# pytorch linspace bug (should be fixed in torch 2.0)
1122
array_api_tests/test_creation_functions.py::test_linspace
12-
array_api_tests/test_creation_functions.py::test_meshgrid
23+
24+
# torch doesn't have higher uint dtypes
1325
array_api_tests/test_data_type_functions.py::test_iinfo[uint16]
1426
array_api_tests/test_data_type_functions.py::test_iinfo[uint32]
1527
array_api_tests/test_data_type_functions.py::test_iinfo[uint64]
28+
29+
# --disable-extension broken with test_has_names.py
30+
# https://github.com/data-apis/array-api-tests/issues/169
1631
array_api_tests/test_has_names.py::test_has_names[linalg-matrix_transpose]
1732
array_api_tests/test_has_names.py::test_has_names[linalg-outer]
1833
array_api_tests/test_has_names.py::test_has_names[linalg-tensordot]
1934
array_api_tests/test_has_names.py::test_has_names[linalg-trace]
20-
array_api_tests/test_has_names.py::test_has_names[linear_algebra-matrix_transpose]
21-
array_api_tests/test_has_names.py::test_has_names[linear_algebra-vecdot]
35+
36+
# We cannot wrap the tensor object
2237
array_api_tests/test_has_names.py::test_has_names[array_method-__array_namespace__]
2338
array_api_tests/test_has_names.py::test_has_names[array_method-to_device]
24-
array_api_tests/test_linalg.py::test_cross
25-
array_api_tests/test_linalg.py::test_eigvalsh
26-
array_api_tests/test_linalg.py::test_matmul
27-
array_api_tests/test_linalg.py::test_matrix_power
28-
array_api_tests/test_linalg.py::test_matrix_transpose
29-
array_api_tests/test_linalg.py::test_outer
30-
array_api_tests/test_linalg.py::test_solve
39+
40+
41+
# tensordot doesn't allow integer dtypes in some corner cases
3142
array_api_tests/test_linalg.py::test_tensordot
32-
array_api_tests/test_linalg.py::test_trace
33-
array_api_tests/test_linalg.py::test_vecdot
34-
array_api_tests/test_manipulation_functions.py::test_concat
43+
44+
# We cannot wrap the tensor object
3545
array_api_tests/test_operators_and_elementwise_functions.py::test_add[__add__(x1, x2)]
3646
array_api_tests/test_operators_and_elementwise_functions.py::test_bitwise_and[__and__(x1, x2)]
3747
array_api_tests/test_operators_and_elementwise_functions.py::test_bitwise_left_shift[__lshift__(x1, x2)]
3848
array_api_tests/test_operators_and_elementwise_functions.py::test_bitwise_or[__or__(x1, x2)]
39-
array_api_tests/test_operators_and_elementwise_functions.py::test_bitwise_right_shift[bitwise_right_shift(x1, x2)]
4049
array_api_tests/test_operators_and_elementwise_functions.py::test_bitwise_right_shift[__rshift__(x1, x2)]
4150
array_api_tests/test_operators_and_elementwise_functions.py::test_bitwise_right_shift[__irshift__(x1, x2)]
4251
array_api_tests/test_operators_and_elementwise_functions.py::test_bitwise_xor[__xor__(x1, x2)]
@@ -47,29 +56,41 @@ array_api_tests/test_operators_and_elementwise_functions.py::test_greater[__gt__
4756
array_api_tests/test_operators_and_elementwise_functions.py::test_greater_equal[__ge__(x1, x2)]
4857
array_api_tests/test_operators_and_elementwise_functions.py::test_less[__lt__(x1, x2)]
4958
array_api_tests/test_operators_and_elementwise_functions.py::test_less_equal[__le__(x1, x2)]
50-
array_api_tests/test_operators_and_elementwise_functions.py::test_log1p
5159
array_api_tests/test_operators_and_elementwise_functions.py::test_multiply[__mul__(x1, x2)]
5260
array_api_tests/test_operators_and_elementwise_functions.py::test_pow[__pow__(x1, x2)]
53-
array_api_tests/test_operators_and_elementwise_functions.py::test_remainder[remainder(x1, x2)]
5461
array_api_tests/test_operators_and_elementwise_functions.py::test_remainder[__mod__(x1, x2)]
5562
array_api_tests/test_operators_and_elementwise_functions.py::test_remainder[__imod__(x1, x2)]
5663
array_api_tests/test_operators_and_elementwise_functions.py::test_subtract[__sub__(x1, x2)]
57-
array_api_tests/test_searching_functions.py::test_nonzero
64+
65+
66+
# Mac-only bug (overflow near float max)
67+
# array_api_tests/test_operators_and_elementwise_functions.py::test_log1p
68+
69+
# torch doesn't handle shifting by more than the bit size correctly
70+
# https://github.com/pytorch/pytorch/issues/70904
71+
array_api_tests/test_operators_and_elementwise_functions.py::test_bitwise_right_shift[bitwise_right_shift(x1, x2)]
72+
# Torch bug for remainder in some cases with large values
73+
array_api_tests/test_operators_and_elementwise_functions.py::test_remainder[remainder(x1, x2)]
74+
75+
# unique_all cannot be implemented because torch's unique does not support
76+
# returning indices
5877
array_api_tests/test_set_functions.py::test_unique_all
59-
array_api_tests/test_set_functions.py::test_unique_counts
78+
# unique_inverse incorrectly counts nan values
79+
# (https://github.com/pytorch/pytorch/issues/94106)
6080
array_api_tests/test_set_functions.py::test_unique_inverse
61-
array_api_tests/test_set_functions.py::test_unique_values
81+
82+
# The test suite incorrectly divides by 0 here
83+
# (https://github.com/data-apis/array-api-tests/issues/170)
6284
array_api_tests/test_signatures.py::test_func_signature[floor_divide]
6385
array_api_tests/test_signatures.py::test_func_signature[remainder]
64-
array_api_tests/test_signatures.py::test_func_signature[matrix_transpose]
65-
array_api_tests/test_signatures.py::test_func_signature[tensordot]
66-
array_api_tests/test_signatures.py::test_func_signature[vecdot]
67-
array_api_tests/test_signatures.py::test_extension_func_signature[linalg.matrix_transpose]
68-
array_api_tests/test_signatures.py::test_extension_func_signature[linalg.outer]
69-
array_api_tests/test_signatures.py::test_extension_func_signature[linalg.tensordot]
70-
array_api_tests/test_signatures.py::test_extension_func_signature[linalg.trace]
86+
87+
# We cannot add attributes to the tensor object
7188
array_api_tests/test_signatures.py::test_array_method_signature[__array_namespace__]
7289
array_api_tests/test_signatures.py::test_array_method_signature[to_device]
90+
91+
92+
# We do not attempt to work around special-case differences (most are on
93+
# tensor methods which we couldn't fix anyway).
7394
array_api_tests/test_special_cases.py::test_binary[add(isfinite(x1_i) and x1_i != 0 and x2_i == -x1_i) -> +0]
7495
array_api_tests/test_special_cases.py::test_binary[__add__(x1_i is +infinity and isfinite(x2_i)) -> +infinity]
7596
array_api_tests/test_special_cases.py::test_binary[__add__(isfinite(x1_i) and x2_i is +infinity) -> +infinity]
@@ -145,7 +166,11 @@ array_api_tests/test_special_cases.py::test_empty_arrays[std]
145166
array_api_tests/test_special_cases.py::test_empty_arrays[var]
146167
array_api_tests/test_special_cases.py::test_nan_propagation[std]
147168
array_api_tests/test_special_cases.py::test_nan_propagation[var]
148-
array_api_tests/test_statistical_functions.py::test_prod
169+
170+
# Float correction is not supported by pytorch (https://github.com/data-apis/array-api-tests/issues/168)
149171
array_api_tests/test_statistical_functions.py::test_std
150-
array_api_tests/test_statistical_functions.py::test_sum
151172
array_api_tests/test_statistical_functions.py::test_var
173+
174+
# The test suite is incorrectly checking sums that have loss of significance
175+
# (https://github.com/data-apis/array-api-tests/issues/168)
176+
array_api_tests/test_statistical_functions.py::test_sum

0 commit comments

Comments
 (0)