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

Prefer __qualname__ as a pjit_p name #22237

Merged
merged 1 commit into from
Jul 3, 2024
Merged

Conversation

hawkinsp
Copy link
Member

@hawkinsp hawkinsp commented Jul 2, 2024

If applying jit to a class method, it is often important to know the class name in the jaxpr.

@hawkinsp hawkinsp added the pull ready Ready for copybara import and testing label Jul 2, 2024
If applying `jit` to a class method, it is often important to know the class name in the jaxpr.
@hawkinsp hawkinsp changed the title Qualname Prefer __qualname__ as a pjit_p name Jul 2, 2024
@hawkinsp hawkinsp requested a review from mattjj July 2, 2024 18:54
@gnecula
Copy link
Collaborator

gnecula commented Jul 3, 2024

Have you considered instead expanding util.fun_name that we use in a few places?

@hawkinsp
Copy link
Member Author

hawkinsp commented Jul 3, 2024

Have you considered instead expanding util.fun_name that we use in a few places?

Yes, see my response to Sergei. Doing that broke tests and I'd rather make the minimal change that solves the problem I have (jaxpr readability).

@copybara-service copybara-service bot merged commit e6ebd55 into google:main Jul 3, 2024
16 checks passed
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

4 participants