-
Notifications
You must be signed in to change notification settings - Fork 45
BUG: test_arange()
fails on Dask due to illegal dtype
#338
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
test_arange()
fails on Dask due to illegal dtypetest_arange()
fails on Dask due to illegal dtype
FWIW, I find it hard to believe it's unrelated to recent dask related changes. The test, while quite hairy,
|
Not a regression in array-api-compat, nor array-api-tests, nor dask. >>> start, stop, step = 0., -9_131_138_316_486_228_481, -92_233_720_368_547_759
>>> da.arange(start, stop, step)
NotImplementedError: An error occurred while calling the arange method registered to the numpy backend.
Original Message: Can not use auto rechunking with object dtype. We are unable to estimate the size in bytes of object data dask does not support float parameters. dask internally multiplies step * 100 to divine the dtype, which in turn sends step beyond the limit of int64, which in turn triggers edge case behaviour on behalf of numpy: >>> np.arange(start, stop, step * 100)
array([0.0], dtype=object) |
Ouch. So the right fix is to limit the range for |
A first shot could be to add one more Generally adding |
The input is legal though. This is a bug in dask. |
dask/dask#11707 fixes it upstream |
test_arange
has started failing on dask:https://github.com/data-apis/array-api-compat/actions/runs/13034089416/job/36360099375?pr=244
This is unrelated to the recent changes to dask in array-api-compat.
The problem is that the test calls
da.arange(..., dtype=object)
, which is not a valid dtype according to the Array API standard.The text was updated successfully, but these errors were encountered: