Skip to content
New issue

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

Specify non-pytree node dataclass fields #64

Open
ethanluoyc opened this issue Jun 6, 2021 · 3 comments
Open

Specify non-pytree node dataclass fields #64

ethanluoyc opened this issue Jun 6, 2021 · 3 comments

Comments

@ethanluoyc
Copy link

Hi,

Thanks for making this awesome library!

Is it possible to specify fields in the chex.dataclass definitions to not include certain fields? This is a feature supported in flax https://flax.readthedocs.io/en/latest/_modules/flax/struct.html#dataclass
which I found to be quite useful when defining data classes with fields (such as JAX functions) that shouldn't be mapped over with dm-tree or jax.tree_map. I am not sure if this is supported out of the box by chex at the moment but is something that I hope would be part of chex.

@felixchalumeau
Copy link

Hi guys,
As this issue ever been discussed? Any recent update?
Thanks!

@pablo2909
Copy link

Would love to see this feature brought to Chex :)

@felixchalumeau
Copy link

Hi guys 👋

Any update on this? Is there any plan to have it in the future?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants