google-deepmind / google-deepmind/chex

Analog to `flax.struct.dataclass`

Open
#248 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
957
Forks
74
Avg merge
21h 10m
Merged PRs (30d)
1

Description

Hi `chex` team,

Is there any potential for something like `flax.struct.dataclass` in `chex`?

Basically a kind of `dataclass` that can mark static arguments.

Two other variations include [`jax_dataclasses`](https://github.com/brentyi/jax_dataclasses) and [`simple-pytree`](https://github.com/cgarciae/simple-pytree/blob/main/simple_pytree/pytree.py) though a `chex` official one would be cool for all its benefits of being part of `chex`.

Thank you!

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.