-
Notifications
You must be signed in to change notification settings - Fork 648
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
Update flax.nnx.grad
docstring
#4368
base: main
Are you sure you want to change the base?
Conversation
flax.nnx.grad
docstring
flax/nnx/transforms/autodiff.py
Outdated
@@ -233,14 +233,19 @@ def grad( | |||
tp.Callable[..., tp.Any] | |||
| tp.Callable[[tp.Callable[..., tp.Any]], tp.Callable[..., tp.Any]] | |||
): | |||
"""Lifted version of ``jax.grad`` that can handle Modules / graph nodes as | |||
arguments. | |||
"""A "lifted" version of `jax.grad <https://jax.readthedocs.io/en/latest/_autosummary/jax.grad.html#jax.grad>`_ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I know this was there but we can improve this while we are at it... can you remove this "lifted" terminology. I think "reference-aware" or something like that is better.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes! SGTM. We have discussed not using "lifted" with you and team (cc @levskaya) before.
@IvyZX @cgarciae