-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
Add jax.jit(donate_argnames=...)
#10539
Labels
enhancement
New feature or request
Comments
Having had a look at this, I think an ideal solution which supports both positional-only and keyword-only arguments (as well as anything in between) would require changes to A simpler solution that would work in cases except keyword-only could be done quite easily with |
15 tasks
copybara-service bot
pushed a commit
that referenced
this issue
Jul 7, 2023
Fixes #10539 PiperOrigin-RevId: 546125263
copybara-service bot
pushed a commit
that referenced
this issue
Jul 7, 2023
Fixes #10539 PiperOrigin-RevId: 546125263
copybara-service bot
pushed a commit
that referenced
this issue
Jul 11, 2023
Note that if donate_argnames is not None and donate_argnums is None, then JAX will infer donate_argnums from the names which will then we used to find the donation_vector. This is fine because currently, the same thing happens from static_argnums and static_argnames. I'll fix the TODOs, etc in follow up CLs. Fixes #10539 PiperOrigin-RevId: 546125263
copybara-service bot
pushed a commit
that referenced
this issue
Jul 11, 2023
Note that if donate_argnames is not None and donate_argnums is None, then JAX will infer donate_argnums from the names which will then we used to find the donation_vector. This is fine because currently, the same thing happens from static_argnums and static_argnames. I'll fix the TODOs, etc in follow up CLs. Fixes #10539 PiperOrigin-RevId: 546125263
copybara-service bot
pushed a commit
that referenced
this issue
Jul 11, 2023
Note that if donate_argnames is not None and donate_argnums is None, then JAX will infer donate_argnums from the names which will then we used to find the donation_vector. This is fine because currently, the same thing happens from static_argnums and static_argnames. I'll fix the TODOs, etc in follow up CLs. Fixes #10539 PiperOrigin-RevId: 546125263
copybara-service bot
pushed a commit
that referenced
this issue
Jul 12, 2023
Note that if donate_argnames is not None and donate_argnums is None, then JAX will infer donate_argnums from the names which will then we used to find the donation_vector. This is fine because currently, the same thing happens from static_argnums and static_argnames. I'll fix the TODOs, etc in follow up CLs. Fixes #10539 PiperOrigin-RevId: 546125263
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
static_argnames
is much less error prone thanstatic_argnums
, and easily works with keyword arguments.It would be useful to have the same syntax for
donate_***
.The text was updated successfully, but these errors were encountered: