Skip to content

Add graph=False support for nnx.grad and nnx.value_and_grad#5240

Merged
copybara-service[bot] merged 1 commit into
mainfrom
test_868389994
Feb 14, 2026
Merged

Add graph=False support for nnx.grad and nnx.value_and_grad#5240
copybara-service[bot] merged 1 commit into
mainfrom
test_868389994

Conversation

@copybara-service

Copy link
Copy Markdown

Add graph=False support for nnx.grad and nnx.value_and_grad

Add tree-mode support to nnx.grad/nnx.value_and_grad, where Variables
are treated as pytree leaves and argnums are passed directly to JAX.

@copybara-service copybara-service Bot force-pushed the test_868389994 branch 3 times, most recently from 851b585 to 1c871d7 Compare February 13, 2026 23:50
Add tree-mode support to nnx.grad/nnx.value_and_grad, where Variables
are treated as pytree leaves and argnums are passed directly to JAX.

PiperOrigin-RevId: 869925351
@copybara-service copybara-service Bot merged commit 49213e0 into main Feb 14, 2026
@copybara-service copybara-service Bot deleted the test_868389994 branch February 14, 2026 00:04
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.

0 participants