Skip to content

Commit

Permalink
[nnx] improve docs
Browse files Browse the repository at this point in the history
  • Loading branch information
cgarciae committed Oct 1, 2024
1 parent dfc86d5 commit 6338c3e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
4 changes: 1 addition & 3 deletions docs_nnx/nnx_basics.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -79,9 +79,7 @@
"source": [
"`nnx.Variable`'s inner values can be accessed using the `.value` property, however\n",
"for convenience they implement all numeric operators and can be used directly in\n",
"arithmetic expressions (as shown above). Additionally, Variables can passed\n",
"to any JAX function as they implement the `__jax_array__` protocol (as long as their\n",
"inner value is a JAX array).\n",
"arithmetic expressions (as shown above).\n",
"\n",
"To actually initialize a Module you simply call the constructor, all the parameters\n",
"of a Module are usually created eagerly. Since Modules hold their own state methods\n",
Expand Down
4 changes: 1 addition & 3 deletions docs_nnx/nnx_basics.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,7 @@ class Linear(nnx.Module):

`nnx.Variable`'s inner values can be accessed using the `.value` property, however
for convenience they implement all numeric operators and can be used directly in
arithmetic expressions (as shown above). Additionally, Variables can passed
to any JAX function as they implement the `__jax_array__` protocol (as long as their
inner value is a JAX array).
arithmetic expressions (as shown above).

To actually initialize a Module you simply call the constructor, all the parameters
of a Module are usually created eagerly. Since Modules hold their own state methods
Expand Down

0 comments on commit 6338c3e

Please sign in to comment.