Skip to main content

Displays the HLO representation of (un-)jitted functions as SVG

Project description

visu-hlo

visu-hlo displays the HLO representation of JAX functions as SVG visualizations.

Documentation PyPI version

Quick Example

import jax.numpy as jnp
from jax import jit
from visu_hlo import show

def func(x):
    return 3 * x * 2

# Visualize original function
show(func, jnp.ones(10))

# Visualize jitted function
show(jit(func), jnp.ones(10))

Installation

pip install visu-hlo

System dependency: Install Graphviz

Features

  • 🎯 Easy Visualization: Display HLO graphs with a single function call
  • JIT Support: Works with both regular and jitted JAX functions
  • 🖼️ SVG Output: High-quality vector graphics that scale perfectly
  • 🖥️ Cross-Platform: Supports Linux, macOS, and Windows
  • 📦 Lightweight: Minimal dependencies - just JAX and Graphviz

Documentation

Full documentation: https://visu-hlo.readthedocs.io/

License

MIT

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

visu_hlo-0.1.tar.gz (22.6 kB view details)

Uploaded Source

Built Distribution

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

visu_hlo-0.1-py3-none-any.whl (3.6 kB view details)

Uploaded Python 3

File details

Details for the file visu_hlo-0.1.tar.gz.

File metadata

  • Download URL: visu_hlo-0.1.tar.gz
  • Upload date:
  • Size: 22.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for visu_hlo-0.1.tar.gz
Algorithm Hash digest
SHA256 5e88e411551500b576f4d130dcd90f694a79913d619f9689357c56da33c3f09e
MD5 a6f001e33a93ddc0fe91639af26ddb48
BLAKE2b-256 d00d029576e2eb52d90ff75a03dc778df4925ead1a3baad18d21870e7bb33584

See more details on using hashes here.

Provenance

The following attestation bundles were made for visu_hlo-0.1.tar.gz:

Publisher: release.yml on CMBSciPol/visu-hlo

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file visu_hlo-0.1-py3-none-any.whl.

File metadata

  • Download URL: visu_hlo-0.1-py3-none-any.whl
  • Upload date:
  • Size: 3.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for visu_hlo-0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 d65e919d59c89d9bb982c5b300bcabc393570216a25bb6551a877d356113c047
MD5 379ae71cd721d15bf36fd2c726019dd7
BLAKE2b-256 037aab1a7992a68fb13253224494de03d0e4b19bd5cfdffbba14bfa459f3f45c

See more details on using hashes here.

Provenance

The following attestation bundles were made for visu_hlo-0.1-py3-none-any.whl:

Publisher: release.yml on CMBSciPol/visu-hlo

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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