chex icon indicating copy to clipboard operation
chex copied to clipboard

Specify non-pytree node dataclass fields

Open ethanluoyc opened this issue 3 years ago • 3 comments

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.

ethanluoyc avatar Jun 06 '21 13:06 ethanluoyc

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

felixchalumeau avatar Mar 23 '22 14:03 felixchalumeau

Would love to see this feature brought to Chex :)

pablo2909 avatar May 23 '22 13:05 pablo2909

Hi guys :wave:

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

felixchalumeau avatar Nov 02 '22 09:11 felixchalumeau