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

Lower jax.numpy matmul functions to mixed-precision dot_general #16736

Merged
merged 1 commit into from
Sep 5, 2023

Conversation

jakevdp
Copy link
Collaborator

@jakevdp jakevdp commented Jul 14, 2023

Related to #16703

I opted not to add specific tests for these as I did for dot in #16721 and einsum in #16733

Note that the sparse test tolerances needed to change because the new path no longer calls convert_element_type, which for sparse inputs has a side-effect of calling sum_duplicates, which previously improved the numerical accuracy of the matmul output at the expense of a slower runtime. I opted not to force a sum_duplicates in bcoo_dot_general, but rather to allow for this inaccuracy in order to improve performance of the default impl.

@jakevdp jakevdp self-assigned this Jul 14, 2023
@jakevdp jakevdp added the pull ready Ready for copybara import and testing label Jul 14, 2023
@jakevdp jakevdp force-pushed the jnp-mixed-precision branch 2 times, most recently from cbec998 to ac6410d Compare July 17, 2023 20:27
@jakevdp jakevdp force-pushed the jnp-mixed-precision branch 3 times, most recently from c7517f4 to ade4b5a Compare July 18, 2023 00:06
@jakevdp jakevdp added pull ready Ready for copybara import and testing and removed pull ready Ready for copybara import and testing labels Jul 27, 2023
@jakevdp jakevdp force-pushed the jnp-mixed-precision branch 3 times, most recently from 66f03bc to dd71006 Compare August 1, 2023 22:19
@jakevdp jakevdp force-pushed the jnp-mixed-precision branch 3 times, most recently from ad93bd4 to f999827 Compare September 1, 2023 23:26
@copybara-service copybara-service bot merged commit e0c9eee into jax-ml:main Sep 5, 2023
7 checks passed
@jakevdp jakevdp deleted the jnp-mixed-precision branch September 5, 2023 16:04
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.

3 participants