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

Update flax.nnx.grad docstring #4368

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

8bitmp3
Copy link
Collaborator

@8bitmp3 8bitmp3 commented Nov 11, 2024

@8bitmp3 8bitmp3 self-assigned this Nov 11, 2024
@8bitmp3 8bitmp3 changed the title Lint flax.nn.grad docstring Update flax.nnx.grad docstring Nov 11, 2024
@8bitmp3 8bitmp3 changed the title Update flax.nnx.grad docstring Update flax.nnx.grad docstring Nov 11, 2024
@@ -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>`_
Copy link
Collaborator

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.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Collaborator Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants