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

updated nowrap docstring #3661

Merged
merged 1 commit into from
Jan 30, 2024
Merged
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
5 changes: 4 additions & 1 deletion flax/linen/module.py
Original file line number Diff line number Diff line change
Expand Up @@ -508,7 +508,10 @@ def nowrap(fun: _CallableT) -> _CallableT:
- if you're subclassing a method like Module.param and don't want this
overriden core function decorated with the state management wrapper.
- If you want a method to be callable from an unbound Module (e.g.: a
function of construction of arguments that doesn't depend on params/RNGs)
function of construction of arguments that doesn't depend on params/RNGs).
If you want to learn more about how Flax Modules manage their state read the
[The Flax Module lifecycle](https://flax.readthedocs.io/en/latest/developer_notes/module_lifecycle.html)
guide.

For instance::

Expand Down
Loading