Skip to main content

Additional pytree utilities for JAX

Project description

Jaxtree Extensions

jaxtree-extensions is a Python library that extends JAX's native jax.tree_util with additional tree utilities. It is designed to provide clean, reusable helper functions for mapping, filtering, and manipulating PyTree structures in common JAX workflows.

Installation

You can install the package locally using uv:

uv pip install -e .

Quick Start

import jax.numpy as jnp
import jaxtree_extensions as jte

# Example tree structure
tree = {
    "a": jnp.ones((3, 3)),
    "b": jnp.zeros((3,)),
}

Running Tests

To run the test suite:

uv run pytest

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

jaxtree_extensions-0.1.0.tar.gz (103.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

jaxtree_extensions-0.1.0-py3-none-any.whl (2.7 kB view details)

Uploaded Python 3

File details

Details for the file jaxtree_extensions-0.1.0.tar.gz.

File metadata

  • Download URL: jaxtree_extensions-0.1.0.tar.gz
  • Upload date:
  • Size: 103.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.14 {"installer":{"name":"uv","version":"0.11.14","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for jaxtree_extensions-0.1.0.tar.gz
Algorithm Hash digest
SHA256 4e10acc797a4706a6e40860a040b9646866930de32ea0477286651880dae2219
MD5 8333b3b74f3781abc828c333df300e52
BLAKE2b-256 881d7bdf996a7a8e43c7f311fbb9a64426f9ba96c1bfd8311195010233f11843

See more details on using hashes here.

File details

Details for the file jaxtree_extensions-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: jaxtree_extensions-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 2.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.11.14 {"installer":{"name":"uv","version":"0.11.14","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for jaxtree_extensions-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 106e39e755ba9e4658a3b113e7afc879674304266e6107a3b3e0f30620f8c328
MD5 a4c24c9ad73c1e1f9ffc93a26cd2eaaa
BLAKE2b-256 d3b1058e7479521540d0ff424870421b2046f826d121fda9a999060a8daace53

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page