Skip to content

Commit

Permalink
Update flax/struct.py
Browse files Browse the repository at this point in the history
Co-authored-by: Marc van Zee <[email protected]>
  • Loading branch information
jheek and marcvanzee authored Oct 27, 2021
1 parent 2546724 commit 9228f8a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion flax/struct.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ def __apply__(self, *args):
valid containers that work with JAX transformations and
more generally the `jax.tree_util` library.
Somtimes a "smart constructor" is desired, for example because
Sometimes a "smart constructor" is desired, for example because
some of the attributes can be (optionally) derived from others.
The way to do this with Flax dataclasses is to make a static or
class method that provides the smart constructor.
Expand Down

0 comments on commit 9228f8a

Please sign in to comment.