We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
flax.struct.dataclass
Hi chex team,
chex
Is there any potential for something like flax.struct.dataclass in chex?
Basically a kind of dataclass that can mark static arguments.
dataclass
Two other variations include jax_dataclasses and simple-pytree though a chex official one would be cool for all its benefits of being part of chex.
jax_dataclasses
simple-pytree
Thank you!
The text was updated successfully, but these errors were encountered:
Check out equinox.Module. This does dataclass + pytree registration as with the other cases, and supports static fields (eqx.static_field).
equinox.Module
eqx.static_field
It also correctly handles a number of other edge cases: subclassing, docstring handling, bound methods are also pytrees, etc.
Sorry, something went wrong.
Thanks @patrick-kidger, I will definitely use equinox next time around, its design is incredible.
equinox
No branches or pull requests
Hi
chex
team,Is there any potential for something like
flax.struct.dataclass
inchex
?Basically a kind of
dataclass
that can mark static arguments.Two other variations include
jax_dataclasses
andsimple-pytree
though achex
official one would be cool for all its benefits of being part ofchex
.Thank you!
The text was updated successfully, but these errors were encountered: