Skip to content

Commit

Permalink
Update Why Flax NNX doc
Browse files Browse the repository at this point in the history
  • Loading branch information
8bitmp3 committed Oct 9, 2024
1 parent 28a423c commit d4e166d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs_nnx/why.rst
Original file line number Diff line number Diff line change
Expand Up @@ -367,8 +367,8 @@ However, Flax Linen transforms have drawbacks, such as:

1. They expose additional APIs that are not part of JAX (making it not easy to interact with JAX transforms).
2. They work on functions with very specific signatures, namely:
- A ``flax.linen.Module`` must be the first argument.
- They accept other ``Module`` objects as arguments but not as return values.
- A ``flax.linen.Module`` must be the first argument.
- They accept other ``Module`` objects as arguments but not as return values.
3. They can only be used inside ``flax.linen.Module.apply``.

On the other hand, `Flax NNX transforms <https://flax.readthedocs.io/en/latest/guides/transforms.html>`_
Expand Down

0 comments on commit d4e166d

Please sign in to comment.