Skip to content
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

Add map_selection primitive to replace map_direct #595

Merged
merged 6 commits into from
Oct 29, 2024

Conversation

tomwhite
Copy link
Member

This is still a WIP, but the basic idea is to migrate calls to map_direct to map_selection. The latter maps output block keys to an index selection on the input arrays, and is implemented using blockwise, so the optimizer will be able to fuse operations together. See #464.

Case where num_input_blocks=1 with an iterator

Introduce iterable_input_blocks to distinguish between input blocks that are retrieved via an iterator and those that are not

Remove requirement for num_input_blocks to be uniform
@tomwhite tomwhite force-pushed the general-blockwise-selection branch from faf9070 to a513787 Compare October 28, 2024 15:09
@tomwhite tomwhite marked this pull request as ready for review October 28, 2024 15:22
@tomwhite tomwhite merged commit cd358c6 into main Oct 29, 2024
11 of 12 checks passed
@tomwhite tomwhite deleted the general-blockwise-selection branch October 29, 2024 10:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant