-
Notifications
You must be signed in to change notification settings - Fork 81
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
fix: support placeholders in shape-only routines #2652
Conversation
Codecov Report
Additional details and impacted files
|
Amongst other things, this PR adds |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me!
for item in reversed(x._shape): | ||
for item in x._shape[-1:0:-1]: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is not just style: it's a change in behavior. Was the original wrong?
We talked about this on Zoom, and yes—it used to be wrong. Now it's right.
When dask-awkward used its column optimisation to generate placeholder arrays, we were seeing placeholders in some
nplike
functions that were not prepared for them. This is because these nplike functions explicitly don't touch data for typetracers.This fix won't solve the re-hydration issues by itself, but it should get us closer and is fairly easy to reason about.