LouisDesdoigts / zodiax

Object-oriented Jax framework extending Equinox for scientific programming
https://louisdesdoigts.github.io/zodiax/
BSD 3-Clause "New" or "Revised" License
11 stars 1 forks source link

Add an `__eq__` method that calls `equinox.tree_equal` under the hood #12

Closed LouisDesdoigts closed 1 year ago

LouisDesdoigts commented 1 year ago

This would allow pytree1 == pytree2, which isn't necessarily important but could be useful as a way to abstract the need for equinox imports.

LouisDesdoigts commented 1 year ago

Looks like this already exists: https://github.com/patrick-kidger/equinox/blob/main/equinox/module.py#L258