Skip to content

Commit c84510d

Browse files
author
Flax Authors
committed
Merge pull request #3936 from google:nnx-stabilize
PiperOrigin-RevId: 636951986
2 parents b1cb952 + 67fa051 commit c84510d

File tree

129 files changed

+451
-385
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

129 files changed

+451
-385
lines changed

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ vNext
8282

8383
0.8.0
8484
-----
85-
- Added [NNX](https://github.com/google/flax/tree/main/flax/experimental/nnx#nnx), a neural network library for JAX that provides a simple yet powerful module system that adheres to standard Python semantics. Its aim is to combine the robustness of Linen with a simplified, Pythonic API akin to that of PyTorch.
85+
- Added [NNX](https://github.com/google/flax/tree/main/flax/nnx#nnx), a neural network library for JAX that provides a simple yet powerful module system that adheres to standard Python semantics. Its aim is to combine the robustness of Linen with a simplified, Pythonic API akin to that of PyTorch.
8686
- Added `nn.compact_name_scope` decorator that enables methods to act as compact name scopes as with regular Haiku methods. This makes porting Haiku code easier.
8787
- Add copy() method to Module. This is a user-friendly version of the internal clone() method with better
8888
defaults for common use cases.

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@
1212
| [**What does Flax look like?**](#what-does-flax-look-like)
1313
| [**Documentation**](https://flax.readthedocs.io/)
1414

15+
**📣 NEW**: Check out the [**NNX**](https://flax.readthedocs.io/en/latest/nnx/index.html) API!
16+
1517
This README is a very short intro. **To learn everything you need to know about Flax, refer to our [full documentation](https://flax.readthedocs.io/).**
1618

1719
Flax was originally started by engineers and researchers within the Brain Team in Google Research (in close collaboration with the JAX team), and is now developed jointly with the open source community.

docs/api_reference/flax.experimental.nnx/nn/stochastic.rst

Lines changed: 0 additions & 8 deletions
This file was deleted.

docs/api_reference/flax.experimental.nnx/training/optimizer.rst

Lines changed: 0 additions & 8 deletions
This file was deleted.

docs/api_reference/flax.experimental.nnx/visualization.rst

Lines changed: 0 additions & 7 deletions
This file was deleted.

docs/api_reference/flax.experimental.nnx/graph.rst renamed to docs/api_reference/flax.nnx/graph.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
graph
22
------------------------
33

4-
.. automodule:: flax.experimental.nnx
5-
.. currentmodule:: flax.experimental.nnx
4+
.. automodule:: flax.nnx
5+
.. currentmodule:: flax.nnx
66

77

88
.. autofunction:: split

docs/api_reference/flax.experimental.nnx/helpers.rst renamed to docs/api_reference/flax.nnx/helpers.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
helpers
22
------------------------
33

4-
.. automodule:: flax.experimental.nnx
5-
.. currentmodule:: flax.experimental.nnx
4+
.. automodule:: flax.nnx
5+
.. currentmodule:: flax.nnx
66

77
.. autoclass:: Dict
88
:members:

docs/api_reference/flax.experimental.nnx/index.rst renamed to docs/api_reference/flax.nnx/index.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
flax.experimental.nnx
1+
flax.nnx
22
------------------------
33

4-
Experimental API. See the `NNX page <https://flax.readthedocs.io/en/latest/experimental/nnx/index.html>`__ for more details.
4+
Experimental API. See the `NNX page <https://flax.readthedocs.io/en/latest/nnx/index.html>`__ for more details.
55

66
.. toctree::
77
:maxdepth: 3

docs/api_reference/flax.experimental.nnx/module.rst renamed to docs/api_reference/flax.nnx/module.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
module
22
------------------------
33

4-
.. automodule:: flax.experimental.nnx
5-
.. currentmodule:: flax.experimental.nnx
4+
.. automodule:: flax.nnx
5+
.. currentmodule:: flax.nnx
66

77
.. autoclass:: Module
88
:members:

docs/api_reference/flax.experimental.nnx/nn/activations.rst renamed to docs/api_reference/flax.nnx/nn/activations.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
Activation functions
22
------------------------
33

4-
.. automodule:: flax.experimental.nnx
5-
.. currentmodule:: flax.experimental.nnx
4+
.. automodule:: flax.nnx
5+
.. currentmodule:: flax.nnx
66

77
.. autofunction:: celu
88
.. autofunction:: elu

0 commit comments

Comments
 (0)