Skip to main content

Interactive Visualizer for T1C-IR Graphs

Project description

T1C-IR Logo

T1C-Viz - Interactive Visualization for T1C-IR Graphs

T1C-Viz generates beautiful, interactive HTML visualizations of T1C-IR computation graphs using D3.js and ELK for automatic layout. View your neural network architectures in Jupyter notebooks or export standalone HTML files.

T1C-Viz provides an intuitive way to explore and understand T1C-IR computation graphs, making it easier to debug, analyze, and document neuromorphic neural network architectures.

Read more about T1C-IR in our documentation

Installation

uv add t1c-viz@git+ssh://git@github.com:type1compute/t1cir.git

Or with Jupyter support:

uv add "t1c-viz[jupyter]@git+ssh://git@github.com:type1compute/t1cir.git"

Quick Start

from t1c import ir, viz

# Load a graph
graph = ir.read('model.t1c')

# Display interactively (opens browser or shows in Jupyter)
viz.visualize(graph, title="My SNN Model")

Display Methods

Browser Display

Outside Jupyter, opens in default browser:

viz.visualize(graph, title="My SNN Model")
# Output: Visualization written to: /tmp/t1c-viz/My_SNN_Model_xxx.html

Jupyter Display

In Jupyter notebooks, displays as embedded iframe:

viz.visualize(graph, title="My SNN", width=960, height=640)

Export to File

Save as standalone HTML:

path = viz.export_html(graph, "model.html", title="Production Model")
print(f"Saved to: {path}")

The HTML is self-contained - no server needed.

Features

Graph Visualization (Left Panel)

  • Dagre layout: Automatic hierarchical graph layout
  • SNN-specific styling: LIF neurons shown with distinctive spiking icon
  • Interactive: Pan, zoom, click nodes to inspect
  • Parameter display: Shows tau/theta on neuron nodes, kernel sizes on convolutions

Data Explorer (Right Panel)

  • HDF5 tree: Navigate graph structure
  • Array visualization: Heatmaps for weights, line plots for biases
  • Statistics: Min, max, mean, std for all arrays
  • Bidirectional sync: Click in tree to highlight node in graph

Node Colors

Primitive Color Description
Input Green Graph entry points
Output Red Graph exit points
Affine Blue Linear layers
SpikingAffine Purple Quantized affine with spike hints
LIF Cyan Leaky integrate-and-fire neurons
Conv2d Orange 2D convolution
SepConv2d Deep Orange Depthwise separable convolution
MaxPool2d Brown Max pooling
AvgPool2d Blue Grey Average pooling
Flatten Grey Reshape operations
Skip Yellow Residual/skip connections

Development

From the repo root (requires t1c-ir installed first):

uv pip install -e .
pytest tests/ -v

Project details


Download files

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

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

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

t1c_viz-0.0.1-py3-none-any.whl (52.4 kB view details)

Uploaded Python 3

File details

Details for the file t1c_viz-0.0.1-py3-none-any.whl.

File metadata

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

File hashes

Hashes for t1c_viz-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 3c2e9b9a7066d762fca9ed4adf86ad143b910eb716846de40d78243eb525642b
MD5 80f9356e09a8653dcb0e3eb7cf4be453
BLAKE2b-256 033d0171d2360484803e5cf0025e0fa873c5113df5f457e5dc2d5de18a8a0b35

See more details on using hashes here.

Provenance

The following attestation bundles were made for t1c_viz-0.0.1-py3-none-any.whl:

Publisher: publish.yml on type1compute/t1cviz

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