Skip to main content

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

Project description

VISU-HLO

Visualizing HLO computation graphs

PyPI version Python versions Continuous integration Coverage Documentation

visu-hlo is a Python package that displays the HLO (High Level Operations) representation of JAX functions as SVG visualizations. This tool helps developers understand the computational graphs generated by XLA compilations.

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

Quick Example

import jax.numpy as jnp
from visu_hlo import show

# Display optimized HLO (default)
show(lambda x: 3 * x * 2, jnp.ones(10))
Optimized HLO

To display the non-optimized HLO:

show(lambda x: 3 * x * 2, jnp.ones(10), jit=False)
Non-optimized HLO

To save as an SVG file:

from visu_hlo import write_svg
write_svg('graph.svg', func, jnp.ones(10))

Installation

pip install visu-hlo

System dependency: Install 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-1.1.0.tar.gz (28.0 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-1.1.0-py3-none-any.whl (7.1 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for visu_hlo-1.1.0.tar.gz
Algorithm Hash digest
SHA256 92aa3d256047dc115409deb5914bd923f1d162a5a8b9746e4085bd8ae4844d79
MD5 f60e9970fce7138041788c15aaf889ef
BLAKE2b-256 89a031006311e329d791b61b1ce41f8f366491eee20404351019c29cf2832468

See more details on using hashes here.

Provenance

The following attestation bundles were made for visu_hlo-1.1.0.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-1.1.0-py3-none-any.whl.

File metadata

  • Download URL: visu_hlo-1.1.0-py3-none-any.whl
  • Upload date:
  • Size: 7.1 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-1.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 3b6a84f3edc79ed80048994226b34fb673bd9e3ad6da364648213c9cc4ea8c66
MD5 145750a296796a94c47afacc030df5c6
BLAKE2b-256 cc021efd0a5da4a6c5791c7e1a3d70517d96d2e209041ff6f71b25896bacd5d2

See more details on using hashes here.

Provenance

The following attestation bundles were made for visu_hlo-1.1.0-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