Integrations with Third-Party Libraries ======================================= Integration for `attrs `_ ---------------------------------------------------------------- .. currentmodule:: optree.integrations.attrs .. autosummary:: field define frozen mutable make_class register_node AttrsEntry .. autofunction:: field .. autofunction:: define .. autofunction:: frozen .. data:: mutable Alias for :func:`define`. .. autofunction:: make_class .. autofunction:: register_node .. autoclass:: AttrsEntry ------ Integration for `JAX `_ ------------------------------------------------------ .. currentmodule:: optree.integrations.jax .. autosummary:: tree_ravel .. autofunction:: tree_ravel ------ Integration for `NumPy `_ --------------------------------------------------------- .. currentmodule:: optree.integrations.numpy .. autosummary:: tree_ravel .. autofunction:: tree_ravel ------ Integration for `PyTorch `_ --------------------------------------------------------------- .. currentmodule:: optree.integrations.torch .. autosummary:: tree_ravel .. autofunction:: tree_ravel