chex.dataclass vs eqx.Module vs linen.Module #66
Replies: 2 comments
-
We didn't use We see the choice here as an implementation detail, and we actually are going to be reevaluating this choice as we continue to expand TORAX. Does this answer your question? |
Beta Was this translation helpful? Give feedback.
-
Cool, thanks for the info! It seems I've leaned against Had some discussion today with @dboyer-cfs about |
Beta Was this translation helpful? Give feedback.
-
There are a lot of ways to solve the problem of registering classes as PyTrees. Torax currently uses
chex.dataclass
. I've been usingeqx.Module
in my own personal work for the most part. There's alsoflax.linen.Module
as another option. I've noticed subtle differences when using the two; nothing huge. I'm wondering if anyone has insights into any fundamental pros/cons of the different approaches?Beta Was this translation helpful? Give feedback.
All reactions