OpTree provides optimized PyTree utilities.
A PyTree is a recursive structure that can be an arbitrarily nested Python
container (e.g., tuple, list, dict, OrderedDict, NamedTuple, etc.) or an opaque
Python object. The key concepts of tree operations are tree flattening and its
inverse (tree unflattening). Additional tree operations can be performed based
on these two basic functions.
NOTE: If this package has multiple flavors (see below), then use one of them instead of the name specified above. NOTE: This is a Python port. Instead of py312-optree listed in the above command, you can pick from the names under the Packages section.
===> The following configuration options are available for py312-optree-0.20.0:
ATTRS=off: Attrs integration
NUMPY=off: NumPy mathematical computing support
===> Use 'make config' to modify these settings
devel/py-optree: Add py-optree 0.10.0
OpTree provides optimized PyTree utilities.
A PyTree is a recursive structure that can be an arbitrarily nested Python
container (e.g., tuple, list, dict, OrderedDict, NamedTuple, etc.) or an opaque
Python object. The key concepts of tree operations are tree flattening and its
inverse (tree unflattening). Additional tree operations can be performed based
on these two basic functions.