Skip to content

Commit f763615

Browse files
authored
Merge pull request #356 from ev-br/count_nonzero_strat
MAINT: simplify the count_nonzero strategy
2 parents 3fb693c + 9b09796 commit f763615

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

array_api_tests/test_searching_functions.py

+1-3
Original file line numberDiff line numberDiff line change
@@ -88,8 +88,6 @@ def test_argmin(x, data):
8888
ph.assert_scalar_equals("argmin", type_=int, idx=out_idx, out=min_i, expected=expected)
8989

9090

91-
# XXX: dtype= stanza below is to work around unsigned int dtypes in torch
92-
# (count_nonzero_cpu not implemented for uint32 etc)
9391
# XXX: the strategy for x is problematic on JAX unless JAX_ENABLE_X64 is on
9492
# the problem is tha for ints >iinfo(int32) it runs into essentially this:
9593
# >>> jnp.asarray[2147483648], dtype=jnp.int64)
@@ -99,7 +97,7 @@ def test_argmin(x, data):
9997
@pytest.mark.min_version("2024.12")
10098
@given(
10199
x=hh.arrays(
102-
dtype=st.sampled_from(dh.int_dtypes + dh.real_float_dtypes + dh.complex_dtypes + (xp.bool,)),
100+
dtype=hh.all_dtypes,
103101
shape=hh.shapes(min_dims=1, min_side=1),
104102
elements={"allow_nan": False},
105103
),

0 commit comments

Comments
 (0)