Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion flax/nnx/graph.py
Original file line number Diff line number Diff line change
Expand Up @@ -1400,7 +1400,7 @@ def _cached_partial(f: tp.Callable[..., tp.Any], *cached_args):
of the cache, and these clones will contain references to the same Variable objects
which guarantees that state is propagated correctly back to the original graph nodes.
Because of the previous, the final structure of all graph nodes must be the same
after each call to the cached function, otherswise an error will be raised. Temporary
after each call to the cached function, otherwise an error will be raised. Temporary
mutations are allowed (e.g. the use of ``Module.sow``) as long as they are cleaned up before
the function returns (e.g. via ``nnx.pop``).

Expand Down
Loading