selectors

selectors#

A toolkit for pytree manipulation.

Classes

Selection

A selected subset of nodes within a larger PyTree.

SelectionHole

A hole in a structure, taking the place of a selected subtree.

SelectionQuote

Marks a particular subtree as relating to an inner selection.

Functions

select(tree)

Wraps a tree in a singleton selection for processing.