Skip to content

Update NNX docs for deprecated Variable.value access#5521

Open
sumitdotml wants to merge 1 commit into
google:mainfrom
sumitdotml:docs/update-nnx-value-access
Open

Update NNX docs for deprecated Variable.value access#5521
sumitdotml wants to merge 1 commit into
google:mainfrom
sumitdotml:docs/update-nnx-value-access

Conversation

@sumitdotml

@sumitdotml sumitdotml commented Jul 2, 2026

Copy link
Copy Markdown

What does this PR do?

Updates NNX docs and notebook-backed examples that still used deprecated Variable.value access.

Array-backed NNX variables now use variable[...] for reads and assignments. The non-array traced_dim example uses get_value(). I have left the Linen Variable.value examples and unrelated enum usage, such as transform.value, as unchanged.

Fixes: N/A

Testing

git diff --check
uv run pre-commit run jupytext --files ...
uv run pre-commit run --files ...

Checklist

  • This PR fixes a minor issue (e.g.: typo or small bug) or improves the docs (you can dismiss the other checks if that's the case).
  • This change is discussed in a Github issue/discussion (please add a link).
  • The documentation and docstrings adhere to the documentation guidelines.
  • This change includes necessary high-coverage tests. (No quality testing = no merge!) -> These are purely docs-related updates, so test files are not included.

@google-cla

google-cla Bot commented Jul 2, 2026

Copy link
Copy Markdown

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.

@review-notebook-app

Copy link
Copy Markdown

Check out this pull request on  ReviewNB

See visual diffs & provide feedback on Jupyter Notebooks.


Powered by ReviewNB

@sumitdotml sumitdotml marked this pull request as ready for review July 2, 2026 07:45
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.

1 participant