Displays the HLO representation of (un-)jitted JAX functions as SVG
Project description
Visualizing HLO computation graphs
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 compilation.
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))
To display the non-optimized HLO:
show(lambda x: 3 * x * 2, jnp.ones(10), jit=False)
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file visu_hlo-1.0.2.tar.gz.
File metadata
- Download URL: visu_hlo-1.0.2.tar.gz
- Upload date:
- Size: 27.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
efda2aa81855aaa9c6c6670dce48159fd77d3c146c56a1ea3a7819d24d618cd1
|
|
| MD5 |
749fbf3da1197f3b9bf7b22b29604129
|
|
| BLAKE2b-256 |
d7dc140cc96c00147fd37bceedc69d3c3cbfc7b69279693500f776fdac3bf7bc
|
Provenance
The following attestation bundles were made for visu_hlo-1.0.2.tar.gz:
Publisher:
release.yml on CMBSciPol/visu-hlo
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
visu_hlo-1.0.2.tar.gz -
Subject digest:
efda2aa81855aaa9c6c6670dce48159fd77d3c146c56a1ea3a7819d24d618cd1 - Sigstore transparency entry: 971407790
- Sigstore integration time:
-
Permalink:
CMBSciPol/visu-hlo@c2e5cd0d9a4f3bc424cf9620f7e1d42819e53a9c -
Branch / Tag:
refs/tags/v1.0.2 - Owner: https://github.com/CMBSciPol
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@c2e5cd0d9a4f3bc424cf9620f7e1d42819e53a9c -
Trigger Event:
release
-
Statement type:
File details
Details for the file visu_hlo-1.0.2-py3-none-any.whl.
File metadata
- Download URL: visu_hlo-1.0.2-py3-none-any.whl
- Upload date:
- Size: 6.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
bcc5e382394bb3982d88a38d707bf9ea199015d6674145d1f227414e5bcf7204
|
|
| MD5 |
3d7b16310ee2673fd99a55d3dfba3209
|
|
| BLAKE2b-256 |
0326e75d192df0cb78805c291d7029097520107b1c41905c4ec65f6c6a3b2694
|
Provenance
The following attestation bundles were made for visu_hlo-1.0.2-py3-none-any.whl:
Publisher:
release.yml on CMBSciPol/visu-hlo
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
visu_hlo-1.0.2-py3-none-any.whl -
Subject digest:
bcc5e382394bb3982d88a38d707bf9ea199015d6674145d1f227414e5bcf7204 - Sigstore transparency entry: 971407798
- Sigstore integration time:
-
Permalink:
CMBSciPol/visu-hlo@c2e5cd0d9a4f3bc424cf9620f7e1d42819e53a9c -
Branch / Tag:
refs/tags/v1.0.2 - Owner: https://github.com/CMBSciPol
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@c2e5cd0d9a4f3bc424cf9620f7e1d42819e53a9c -
Trigger Event:
release
-
Statement type: