Skip to content

Add experimental batched COO sparse format#6824

Merged
copybara-service[bot] merged 1 commit intojax-ml:masterfrom
jakevdp:sparse-bcoo
Jun 9, 2021
Merged

Add experimental batched COO sparse format#6824
copybara-service[bot] merged 1 commit intojax-ml:masterfrom
jakevdp:sparse-bcoo

Conversation

@jakevdp
Copy link
Collaborator

@jakevdp jakevdp commented May 24, 2021

This is an implementation of a batch-friendly multidimensional COO format for JAX. It contains implementations of four primitives:

  • bcoo_todense
  • bcoo_fromdense
  • bcoo_extract
  • bcoo_dot_general

As well as batching, JVP, and transpose rules for each.

For convenience, this also adds class BCOO, which is a pytree wrapper around these.

@jakevdp jakevdp marked this pull request as draft May 24, 2021 18:06
@google-cla google-cla bot added the cla: yes label May 24, 2021
@jakevdp jakevdp requested a review from froystig May 24, 2021 18:14
@jakevdp jakevdp force-pushed the sparse-bcoo branch 2 times, most recently from 805a93b to 35e181b Compare June 4, 2021 13:57
@jakevdp jakevdp marked this pull request as ready for review June 4, 2021 13:58
@jakevdp
Copy link
Collaborator Author

jakevdp commented Jun 4, 2021

@froystig This is ready for a review.

@jakevdp jakevdp changed the title WIP: Batched COO sparse format Add experimental batched COO sparse format Jun 4, 2021
Copy link
Member

@froystig froystig left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

whew, dot_general!

@jakevdp jakevdp added the pull ready Ready for copybara import and testing label Jun 8, 2021
This is an implementation of a batch-friendly multidimensional COO format for JAX. It contains implementations of four primitives (bcoo_todense, bcoo_fromdense, bcoo_extract, bcoo_dot_general), as well as batching, JVP, and transpose rules for each.

For convenience, this also adds class BCOO, which is a pytree wrapper around these.
@copybara-service copybara-service bot merged commit 2a1936e into jax-ml:master Jun 9, 2021
@jakevdp jakevdp deleted the sparse-bcoo branch June 9, 2021 17:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cla: yes pull ready Ready for copybara import and testing

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants