@@ -12,15 +12,11 @@ array_api_tests/test_array_object.py::test_getitem_masking
12
12
# Overflow error from large inputs
13
13
array_api_tests/test_creation_functions.py::test_arange
14
14
# pytorch linspace bug (should be fixed in torch 2.0)
15
- array_api_tests/test_creation_functions.py::test_linspace
16
15
17
16
# We cannot wrap the tensor object
18
17
array_api_tests/test_has_names.py::test_has_names[array_method-__array_namespace__]
19
18
array_api_tests/test_has_names.py::test_has_names[array_method-to_device]
20
19
21
- # tensordot doesn't allow integer dtypes in some corner cases
22
- array_api_tests/test_linalg.py::test_tensordot
23
-
24
20
# We cannot wrap the tensor object
25
21
array_api_tests/test_operators_and_elementwise_functions.py::test_add[__add__(x1, x2)]
26
22
array_api_tests/test_operators_and_elementwise_functions.py::test_bitwise_and[__and__(x1, x2)]
@@ -49,12 +45,6 @@ array_api_tests/test_operators_and_elementwise_functions.py::test_acos
49
45
array_api_tests/test_operators_and_elementwise_functions.py::test_atan
50
46
array_api_tests/test_operators_and_elementwise_functions.py::test_asin
51
47
52
- # overflow near float max
53
- array_api_tests/test_operators_and_elementwise_functions.py::test_log1p
54
-
55
- # torch doesn't handle shifting by more than the bit size correctly
56
- # https://github.com/pytorch/pytorch/issues/70904
57
- array_api_tests/test_operators_and_elementwise_functions.py::test_bitwise_right_shift[bitwise_right_shift(x1, x2)]
58
48
# Torch bug for remainder in some cases with large values
59
49
array_api_tests/test_operators_and_elementwise_functions.py::test_remainder[remainder(x1, x2)]
60
50
@@ -65,11 +55,6 @@ array_api_tests/test_set_functions.py::test_unique_all
65
55
# (https://github.com/pytorch/pytorch/issues/94106)
66
56
array_api_tests/test_set_functions.py::test_unique_inverse
67
57
68
- # The test suite incorrectly divides by 0 here
69
- # (https://github.com/data-apis/array-api-tests/issues/170)
70
- array_api_tests/test_signatures.py::test_func_signature[floor_divide]
71
- array_api_tests/test_signatures.py::test_func_signature[remainder]
72
- array_api_tests/test_signatures.py::test_array_method_signature[__mod__]
73
58
74
59
# We cannot add attributes to the tensor object
75
60
array_api_tests/test_signatures.py::test_array_method_signature[__array_namespace__]
@@ -78,13 +63,6 @@ array_api_tests/test_signatures.py::test_array_method_signature[to_device]
78
63
79
64
# We do not attempt to work around special-case differences (most are on
80
65
# tensor methods which we couldn't fix anyway).
81
- array_api_tests/test_special_cases.py::test_binary[__add__((x1_i is +0 or x1_i == -0) and isfinite(x2_i) and x2_i != 0) -> x2_i]
82
- array_api_tests/test_special_cases.py::test_binary[__add__(isfinite(x1_i) and x1_i != 0 and (x2_i is +0 or x2_i == -0)) -> x1_i]
83
- array_api_tests/test_special_cases.py::test_binary[__add__(isfinite(x1_i) and x1_i != 0 and x2_i == -x1_i) -> +0]
84
- array_api_tests/test_special_cases.py::test_binary[__add__(isfinite(x1_i) and x2_i is +infinity) -> +infinity]
85
- array_api_tests/test_special_cases.py::test_binary[__add__(isfinite(x1_i) and x2_i is -infinity) -> -infinity]
86
- array_api_tests/test_special_cases.py::test_binary[__add__(x1_i is +infinity and isfinite(x2_i)) -> +infinity]
87
- array_api_tests/test_special_cases.py::test_binary[__add__(x1_i is -infinity and isfinite(x2_i)) -> -infinity]
88
66
array_api_tests/test_special_cases.py::test_binary[__floordiv__(isfinite(x1_i) and x1_i < 0 and x2_i is +infinity) -> -0]
89
67
array_api_tests/test_special_cases.py::test_binary[__floordiv__(isfinite(x1_i) and x1_i < 0 and x2_i is -infinity) -> +0]
90
68
array_api_tests/test_special_cases.py::test_binary[__floordiv__(isfinite(x1_i) and x1_i > 0 and x2_i is +infinity) -> +0]
@@ -109,41 +87,6 @@ array_api_tests/test_special_cases.py::test_binary[__mod__(x1_i is +0 and x2_i <
109
87
array_api_tests/test_special_cases.py::test_binary[__mod__(x1_i is +0 and x2_i > 0) -> +0]
110
88
array_api_tests/test_special_cases.py::test_binary[__mod__(x1_i is -0 and x2_i < 0) -> -0]
111
89
array_api_tests/test_special_cases.py::test_binary[__mod__(x1_i is -0 and x2_i > 0) -> +0]
112
- array_api_tests/test_special_cases.py::test_binary[__pow__(abs(x1_i) < 1 and x2_i is +infinity) -> +0]
113
- array_api_tests/test_special_cases.py::test_binary[__pow__(abs(x1_i) < 1 and x2_i is -infinity) -> +infinity]
114
- array_api_tests/test_special_cases.py::test_binary[__pow__(abs(x1_i) > 1 and x2_i is +infinity) -> +infinity]
115
- array_api_tests/test_special_cases.py::test_binary[__pow__(abs(x1_i) > 1 and x2_i is -infinity) -> +0]
116
- array_api_tests/test_special_cases.py::test_binary[__pow__(x1_i < 0 and isfinite(x1_i) and isfinite(x2_i) and not x2_i.is_integer()) -> NaN]
117
- array_api_tests/test_special_cases.py::test_binary[__pow__(x1_i is +0 and x2_i < 0) -> +infinity]
118
- array_api_tests/test_special_cases.py::test_binary[__pow__(x1_i is +0 and x2_i > 0) -> +0]
119
- array_api_tests/test_special_cases.py::test_binary[__pow__(x1_i is +infinity and x2_i < 0) -> +0]
120
- array_api_tests/test_special_cases.py::test_binary[__pow__(x1_i is +infinity and x2_i > 0) -> +infinity]
121
- array_api_tests/test_special_cases.py::test_binary[__pow__(x1_i is -0 and x2_i < 0 and not (x2_i.is_integer() and x2_i % 2 == 1)) -> +infinity]
122
- array_api_tests/test_special_cases.py::test_binary[__pow__(x1_i is -0 and x2_i < 0 and x2_i.is_integer() and x2_i % 2 == 1) -> -infinity]
123
- array_api_tests/test_special_cases.py::test_binary[__pow__(x1_i is -0 and x2_i > 0 and not (x2_i.is_integer() and x2_i % 2 == 1)) -> +0]
124
- array_api_tests/test_special_cases.py::test_binary[__pow__(x1_i is -0 and x2_i > 0 and x2_i.is_integer() and x2_i % 2 == 1) -> -0]
125
- array_api_tests/test_special_cases.py::test_binary[__pow__(x1_i is -infinity and x2_i < 0 and not (x2_i.is_integer() and x2_i % 2 == 1)) -> +0]
126
- array_api_tests/test_special_cases.py::test_binary[__pow__(x1_i is -infinity and x2_i < 0 and x2_i.is_integer() and x2_i % 2 == 1) -> -0]
127
- array_api_tests/test_special_cases.py::test_binary[__pow__(x1_i is -infinity and x2_i > 0 and not (x2_i.is_integer() and x2_i % 2 == 1)) -> +infinity]
128
- array_api_tests/test_special_cases.py::test_binary[__pow__(x1_i is -infinity and x2_i > 0 and x2_i.is_integer() and x2_i % 2 == 1) -> -infinity]
129
- array_api_tests/test_special_cases.py::test_binary[__pow__(x1_i is NaN and not x2_i == 0) -> NaN]
130
- array_api_tests/test_special_cases.py::test_binary[__truediv__(isfinite(x1_i) and x1_i < 0 and x2_i is +infinity) -> -0]
131
- array_api_tests/test_special_cases.py::test_binary[__truediv__(isfinite(x1_i) and x1_i < 0 and x2_i is -infinity) -> +0]
132
- array_api_tests/test_special_cases.py::test_binary[__truediv__(isfinite(x1_i) and x1_i > 0 and x2_i is +infinity) -> +0]
133
- array_api_tests/test_special_cases.py::test_binary[__truediv__(isfinite(x1_i) and x1_i > 0 and x2_i is -infinity) -> -0]
134
- array_api_tests/test_special_cases.py::test_binary[__truediv__(x1_i < 0 and x2_i is +0) -> -infinity]
135
- array_api_tests/test_special_cases.py::test_binary[__truediv__(x1_i < 0 and x2_i is -0) -> +infinity]
136
- array_api_tests/test_special_cases.py::test_binary[__truediv__(x1_i > 0 and x2_i is +0) -> +infinity]
137
- array_api_tests/test_special_cases.py::test_binary[__truediv__(x1_i > 0 and x2_i is -0) -> -infinity]
138
- array_api_tests/test_special_cases.py::test_binary[__truediv__(x1_i is +0 and x2_i < 0) -> -0]
139
- array_api_tests/test_special_cases.py::test_binary[__truediv__(x1_i is +0 and x2_i > 0) -> +0]
140
- array_api_tests/test_special_cases.py::test_binary[__truediv__(x1_i is +infinity and isfinite(x2_i) and x2_i < 0) -> -infinity]
141
- array_api_tests/test_special_cases.py::test_binary[__truediv__(x1_i is +infinity and isfinite(x2_i) and x2_i > 0) -> +infinity]
142
- array_api_tests/test_special_cases.py::test_binary[__truediv__(x1_i is -0 and x2_i < 0) -> +0]
143
- array_api_tests/test_special_cases.py::test_binary[__truediv__(x1_i is -0 and x2_i > 0) -> -0]
144
- array_api_tests/test_special_cases.py::test_binary[__truediv__(x1_i is -infinity and isfinite(x2_i) and x2_i < 0) -> +infinity]
145
- array_api_tests/test_special_cases.py::test_binary[__truediv__(x1_i is -infinity and isfinite(x2_i) and x2_i > 0) -> -infinity]
146
- array_api_tests/test_special_cases.py::test_binary[add(isfinite(x1_i) and x1_i != 0 and x2_i == -x1_i) -> +0]
147
90
array_api_tests/test_special_cases.py::test_binary[floor_divide(isfinite(x1_i) and x1_i < 0 and x2_i is +infinity) -> -0]
148
91
array_api_tests/test_special_cases.py::test_binary[floor_divide(isfinite(x1_i) and x1_i > 0 and x2_i is -infinity) -> -0]
149
92
array_api_tests/test_special_cases.py::test_binary[floor_divide(x1_i is +infinity and isfinite(x2_i) and x2_i < 0) -> -infinity]
@@ -152,7 +95,6 @@ array_api_tests/test_special_cases.py::test_binary[floor_divide(x1_i is -infinit
152
95
array_api_tests/test_special_cases.py::test_binary[floor_divide(x1_i is -infinity and isfinite(x2_i) and x2_i > 0) -> -infinity]
153
96
array_api_tests/test_special_cases.py::test_binary[remainder(x1_i is +0 and x2_i < 0) -> -0]
154
97
array_api_tests/test_special_cases.py::test_binary[remainder(x1_i is -0 and x2_i > 0) -> +0]
155
- array_api_tests/test_special_cases.py::test_iop[__iadd__(isfinite(x1_i) and x1_i != 0 and x2_i == -x1_i) -> +0]
156
98
array_api_tests/test_special_cases.py::test_iop[__ifloordiv__(isfinite(x1_i) and x1_i < 0 and x2_i is +infinity) -> -0]
157
99
array_api_tests/test_special_cases.py::test_iop[__ifloordiv__(isfinite(x1_i) and x1_i > 0 and x2_i is -infinity) -> -0]
158
100
array_api_tests/test_special_cases.py::test_iop[__ifloordiv__(x1_i is +infinity and isfinite(x2_i) and x2_i < 0) -> -infinity]
@@ -164,20 +106,11 @@ array_api_tests/test_special_cases.py::test_iop[__imod__(x1_i is -0 and x2_i > 0
164
106
165
107
# Float correction is not supported by pytorch
166
108
# (https://github.com/data-apis/array-api-tests/issues/168)
167
- array_api_tests/test_special_cases.py::test_empty_arrays[std]
168
- array_api_tests/test_special_cases.py::test_empty_arrays[var]
169
- array_api_tests/test_special_cases.py::test_nan_propagation[std]
170
- array_api_tests/test_special_cases.py::test_nan_propagation[var]
171
109
array_api_tests/test_statistical_functions.py::test_std
172
110
array_api_tests/test_statistical_functions.py::test_var
173
111
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
177
- array_api_tests/test_statistical_functions.py::test_prod
178
112
179
113
# These functions do not yet support complex numbers
180
- array_api_tests/test_operators_and_elementwise_functions.py::test_expm1
181
114
array_api_tests/test_operators_and_elementwise_functions.py::test_round
182
115
array_api_tests/test_set_functions.py::test_unique_counts
183
116
array_api_tests/test_set_functions.py::test_unique_values
0 commit comments