All Tools
C
Dev ToolsFreeOpen Source
CHEX
Pytree assertions and test helpers for JAX
Apache-2.0
ABOUT
JAX code fails late when pytree structure or device placement drifts, and plain assert misses variants. Chex adds shape, dtype, and variants helpers so tests catch rank and device bugs before a training step.
INSTALL
pip install chexINTEGRATION GUIDE
1. Assert a JAX pytree matches an expected shape and dtype
2. Parameterize a unit test across CPU and GPU variants
3. Catch a device-placement bug before a JIT training step
4. Check tree structure after a Flax or Haiku transform
TAGS
pythonjaxtestingpytreesassertionsdeepmind