Skip to content

jax.Array: support fast path for lax.transpose & lax.squeeze #12311

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

Merged
merged 1 commit into from
Sep 9, 2022

Conversation

jakevdp
Copy link
Collaborator

@jakevdp jakevdp commented Sep 9, 2022

As part of this change, I created a helper function so that the logic of type checking is in a single location. Eventually we can replace this helper function with appropriate isinstance() checks using the APIs described in #11859.

This work is part of #12016 & #12049.

@jakevdp jakevdp requested a review from yashk2810 September 9, 2022 19:21
@jakevdp jakevdp self-assigned this Sep 9, 2022
@yashk2810
Copy link
Collaborator

Wow, what a coincidence! I added support for transpose and squeeze here too: cl/473267301

@yashk2810
Copy link
Collaborator

Let's get your PR in and I can sync my CL to that.

@google-ml-butler google-ml-butler bot added kokoro:force-run pull ready Ready for copybara import and testing labels Sep 9, 2022
@jakevdp
Copy link
Collaborator Author

jakevdp commented Sep 9, 2022

Sounds good, thanks!

As part of this change, I created a helper function so that the logic of type checking is
in a single location. Eventually we can replace this helper function with appropriate
isinstance() checks using the APIs described in jax-ml#11859.
@copybara-service copybara-service bot merged commit 635eebf into jax-ml:main Sep 9, 2022
@jakevdp jakevdp deleted the fix-lax-array branch September 9, 2022 20:24
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