There is a newer version of the record available.

Published September 19, 2022 | Version v0.1.7
Software Open

ASEM000/PyTreeClass: v0.1.7

Authors/Creators

  • 1. KAIST

Description

Breaking changes
  • Option to treat only fields defined in dataclass fields as parameters is removed. this means any treeclass wrapped class is treated as a parameter i.e. field_only=False. This will simplify reasoning about parameter management on the user end.
Other changes
  • Speed improvements, 5x for tree arithmetic, 6x for type/metadata comparisons, and 8-10x for value comparisons based on colab hardware benchmarks. speed improvements due to: (1) using instance check instead of dispatching and (2) refactoring dataclass fields comparisons function.
  • wrap __undeclared_fields__ with MappingProxyType to make it immutable.

Full Changelog: https://github.com/ASEM000/PyTreeClass/compare/0.1.6...v0.1.7

Files

ASEM000/PyTreeClass-v0.1.7.zip

Files (156.0 kB)

Name Size Download all
md5:af7572e3621789f755aa4fda80b411a1
156.0 kB Preview Download

Additional details

Related works