CommonLoopUtils
CommonLoopUtils copied to clipboard
Metric and Collection inherit from PyTreeNode
This PR makes Metric and Collection inherit from flax.struct.PyTreeNode, this makes creating new metric types more ergonomic as you no longer need to decorate the class with flax.struct.dataclass.