We use the handy tree utility library in a number of places throughout the codebase. Unfortunately, tree is fundamentally incompatible with support for Terms that have semantic types that are subtypes of tree.Structure (i.e. Mapping or Sequence or nested versions thereof), as it cannot identify these as non-traversable.
We should be able to replace it by adding extra patterns for defterm and defdata and making evaluate and apply use them more aggressively (see #272).
Tasks:
We use the handy
treeutility library in a number of places throughout the codebase. Unfortunately,treeis fundamentally incompatible with support forTerms that have semantic types that are subtypes oftree.Structure(i.e.MappingorSequenceor nested versions thereof), as it cannot identify these as non-traversable.We should be able to replace it by adding extra patterns for
deftermanddefdataand makingevaluateandapplyuse them more aggressively (see #272).Tasks:
treeinopsRemove dependency ofopsondm-tree#323treeinhandlers.torchtreeinhandlers.jaxandhandlers.numpyro