Skip to content

PyGlove 0.2.0

Compare
Choose a tag to compare
@daiyip daiyip released this 13 Oct 18:23
· 256 commits to main since this release

Enhancements:

  • pg.symbolic:
    • Introducing pg.Symbolic.sym_has and pg.Symbolic.sym_get to test/get node in sub-tree by path.
    • Introducing pg.Symbolic.sym_field and pg.Symbolic.sym_attr_field to access the pg.typing.Field definition for current/child symbolic value.
    • pg.Symbolic.sym_getattr now supports default value.
    • pg.Symbolic.rebind now supports pg.KeyPath objects as keys.

Bug fixes:

  • pg.tuning: Fix pg.tuning.Feedback.should_stop_early crash on in-memory tuning backend.

New features:

  • (experimental) Introducing pg.composing to handle algorithmic symbolic mutations.