-
Notifications
You must be signed in to change notification settings - Fork 25
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
BUG: size
returns nan
for Dask array with unknown shape
#175
Comments
Okay, this was already mentioned for |
This is technically allowed I think (technically speaking, it should be None instead of nan, but I don't think the difference is too important here) |
Yeah, the shape is allowed to be |
I think it might be worth adding a version of the wrapped dask.array that calls compute, but I think it's probably better to wait a bit to better understand when/why downstream libraries need the shape. It might also be possible to return a dask.delayed shape for dask (advantage here is that we wouldn't break the dask graph by computing), which is why I want to wait on doing this, but not 100% sure of this. |
The example I've bumped into in SciPy is |
It's not clear to me whether the wrappers here should be automatically calling compute(). I'd like to get some better understanding of the use-cases before doing that. Note that the original purpose of the Maybe you should move the discussion to the array API repo to get a better understanding of how scipy should be handling unmaterialized sizes (for instance, at data-apis/array-api#748, or in a new issue). |
closed in favour of data-apis/array-api#834. There certainly isn't consensus yet that it is right for consuming libraries to force computation. |
I think
size
should callcompute()
if it has to?The text was updated successfully, but these errors were encountered: