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

[sparse] bcoo_broadcast_in_dim: default to adding leading batch dimensions #10454

Merged
merged 1 commit into from
Apr 27, 2022

Conversation

jakevdp
Copy link
Collaborator

@jakevdp jakevdp commented Apr 26, 2022

Why? Because in this situation batch dimensions always yield a more compact representation, and converting from batch to sparse dimensions is far cheaper than converting from sparse to batch dimensions.

This, along with a sparse lowering rule for lax.concatenate_p, will allow us to support clean concatenation & stacking of sparse arrays.

I'm a bit concerned that this might break an existing use-case, so I need to run some extra tests before merging.

@jakevdp jakevdp requested a review from froystig April 26, 2022 19:26
@jakevdp jakevdp added the pull ready Ready for copybara import and testing label Apr 26, 2022
@copybara-service copybara-service bot merged commit ab37701 into google:main Apr 27, 2022
@jakevdp jakevdp deleted the bcoo-broadcast-in-dim branch April 28, 2022 01:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
pull ready Ready for copybara import and testing
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants