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
1
7
array_api_tests/test_array_object.py::test_getitem
2
8
array_api_tests/test_array_object.py::test_setitem
9
+ # Masking doesn't suport 0 dimensions in the mask
3
10
array_api_tests/test_array_object.py::test_getitem_masking
11
+ # torch doesn't have uint dtypes other than uint8
4
12
array_api_tests/test_array_object.py::test_scalar_casting[__int__(uint16)]
5
13
array_api_tests/test_array_object.py::test_scalar_casting[__int__(uint32)]
6
14
array_api_tests/test_array_object.py::test_scalar_casting[__int__(uint64)]
7
15
array_api_tests/test_array_object.py::test_scalar_casting[__index__(uint16)]
8
16
array_api_tests/test_array_object.py::test_scalar_casting[__index__(uint32)]
9
17
array_api_tests/test_array_object.py::test_scalar_casting[__index__(uint64)]
18
+
19
+ # Overflow error from large inputs
10
20
array_api_tests/test_creation_functions.py::test_arange
21
+ # pytorch linspace bug (should be fixed in torch 2.0)
11
22
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
13
25
array_api_tests/test_data_type_functions.py::test_iinfo[uint16]
14
26
array_api_tests/test_data_type_functions.py::test_iinfo[uint32]
15
27
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
16
31
array_api_tests/test_has_names.py::test_has_names[linalg-matrix_transpose]
17
32
array_api_tests/test_has_names.py::test_has_names[linalg-outer]
18
33
array_api_tests/test_has_names.py::test_has_names[linalg-tensordot]
19
34
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
22
37
array_api_tests/test_has_names.py::test_has_names[array_method-__array_namespace__]
23
38
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
31
42
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
35
45
array_api_tests/test_operators_and_elementwise_functions.py::test_add[__add__(x1, x2)]
36
46
array_api_tests/test_operators_and_elementwise_functions.py::test_bitwise_and[__and__(x1, x2)]
37
47
array_api_tests/test_operators_and_elementwise_functions.py::test_bitwise_left_shift[__lshift__(x1, x2)]
38
48
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)]
40
49
array_api_tests/test_operators_and_elementwise_functions.py::test_bitwise_right_shift[__rshift__(x1, x2)]
41
50
array_api_tests/test_operators_and_elementwise_functions.py::test_bitwise_right_shift[__irshift__(x1, x2)]
42
51
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__
47
56
array_api_tests/test_operators_and_elementwise_functions.py::test_greater_equal[__ge__(x1, x2)]
48
57
array_api_tests/test_operators_and_elementwise_functions.py::test_less[__lt__(x1, x2)]
49
58
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
51
59
array_api_tests/test_operators_and_elementwise_functions.py::test_multiply[__mul__(x1, x2)]
52
60
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)]
54
61
array_api_tests/test_operators_and_elementwise_functions.py::test_remainder[__mod__(x1, x2)]
55
62
array_api_tests/test_operators_and_elementwise_functions.py::test_remainder[__imod__(x1, x2)]
56
63
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
58
77
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)
60
80
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)
62
84
array_api_tests/test_signatures.py::test_func_signature[floor_divide]
63
85
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
71
88
array_api_tests/test_signatures.py::test_array_method_signature[__array_namespace__]
72
89
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).
73
94
array_api_tests/test_special_cases.py::test_binary[add(isfinite(x1_i) and x1_i != 0 and x2_i == -x1_i) -> +0]
74
95
array_api_tests/test_special_cases.py::test_binary[__add__(x1_i is +infinity and isfinite(x2_i)) -> +infinity]
75
96
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]
145
166
array_api_tests/test_special_cases.py::test_empty_arrays[var]
146
167
array_api_tests/test_special_cases.py::test_nan_propagation[std]
147
168
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)
149
171
array_api_tests/test_statistical_functions.py::test_std
150
- array_api_tests/test_statistical_functions.py::test_sum
151
172
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