-
Notifications
You must be signed in to change notification settings - Fork 89
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: 2881 akconcatenate fails trying to concatenate too many nested arrays #3207
fix: 2881 akconcatenate fails trying to concatenate too many nested arrays #3207
Conversation
This breaks a bunch of old tests, but passes the original test in 2881. Needs scrutiny etc.
Expanding the template instances for: * awkward_UnionArray_nestedfill_tags_index * awkward_UnionArray_simplify_one * awkward_UnionArray_simplify These allow 64-bit tags in certain cases, for ak_concatenate.
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 looking good!
One thing that's missing is for UnionArray.simplified
to document that it accepts 64-bit tags, but if the final result would be to make a UnionArray
with more than more than 127 contents
, it still raises an error. (And also, that check needs to be implemented.)
Also a few style modifications. The reason for moving those length checks is so that I do not wish even temporarily hold on to content tags with invalid data.
Co-authored-by: Jim Pivarski <[email protected]>
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.
@tcawlfield - looks great to me! All CUDA tests pass as expected! Thanks!
This is fantastic @tcawlfield ! |
When concatenating arrays at a depth > 0 (not outermost), current code has a limitation
of 128 arrays to be combined.
This PR relaxes that requirement.