$npx skillfedfor your agent

torchviz

A small package to create visualizations of PyTorch execution graphs

With conditionsPyPI Artificial IntelligenceReleased Dec 20242.1M downloads / moBSDPure Python

Decision gist · record as of 2026-08-14

pure-Python wheel — torchviz-0.0.3-py3-none-any.whl
v0.0.3 · released 2024-12-02 · 2 runtime deps: torch, graphviz

Yes, if you need to visualize PyTorch computation graphs for debugging or documentation. The install is straightforward and the package has no known vulnerabilities. However, maintenance is dormant (620 days since last release), so verify compatibility with your PyTorch version before relying on it for production workflows. The graphviz system dependency is a minor friction point but standard for graph visualization.AI-flagged interpretation of the facts on this page — verify before relying

Before you install

  • graphviz system library must be installed separately (e.g., `brew install graphviz` on macOS).
  • Low friction install with a pure Python wheel, but depends on the graphviz system library which must be installed separately.
  • Maintenance is dormant—last release was 620 days ago, though the package remains in the top 5000 by downloads.

License · maintenance · safety

BSD (permissive) — BSD permissive license allows use in most projects without restriction, including commercial and proprietary software.

last release 2024-12-02 (620 days)

0 known vulnerabilities (OSV.dev, 2026-08-14) · 2,052,967 downloads/mo, #3,338 on PyPI

Verify before relying

pip install torchviz

from torchviz import make_dot
import torch
from torch import nn

model = nn.Sequential(nn.Linear(8, 16), nn.Tanh(), nn.Linear(16, 1))
x = torch.randn(1, 8)
y = model(x)
make_dot(y.mean(), params=dict(model.named_parameters()))
  • Whether the package works with recent PyTorch versions given 620 days since last release.
  • Current status of the GitHub repository and whether it is actively maintained by PyTorch maintainers.
Same gist for agents: .md · .json

What it is and what it does

torchviz is a small visualization utility for PyTorch that converts neural network computation graphs into diagrams. It takes a PyTorch tensor output and the model's parameters, then uses graphviz to render a visual representation of how data flows through the network's layers and operations during the forward pass. The package can optionally display what autograd saves for the backward pass (available for PyTorch 1.9 and later) by setting `show_attrs=True` and `show_saved=True`.

The package is designed for model inspection and debugging—developers use it to understand network architecture visually, verify layer connections, and trace tensor transformations. It depends on torch for the computation graph structure and graphviz for rendering the diagram as an image or PDF. Installation requires both the Python package and the graphviz system library.

Use it for

  • Visualize a custom neural network architecture to verify layer connections and data flow during forward pass.
  • Debug autograd computation graphs to understand which operations are tracked for backpropagation.
  • Generate architecture diagrams for documentation or research papers showing model structure.
  • Inspect what intermediate tensors and gradients are saved during the forward pass for memory analysis.

Worth the install?

AI-flagged interpretation of the facts on this page. Verify before relying on it.

With conditions

Yes, if you need to visualize PyTorch computation graphs for debugging or documentation.

The install is straightforward and the package has no known vulnerabilities. However, maintenance is dormant (620 days since last release), so verify compatibility with your PyTorch version before relying on it for production workflows. The graphviz system dependency is a minor friction point but standard for graph visualization.

Install

torchviz on PyPI

Before you install

Low friction install with a pure Python wheel, but depends on the graphviz system library which must be installed separately. Maintenance is dormant—last release was 620 days ago, though the package remains in the top 5000 by downloads.

graphviz system library must be installed separately (e.g., `brew install graphviz` on macOS).

License in practice

BSD permissive license allows use in most projects without restriction, including commercial and proprietary software.

Quickstart

pip install torchviz

from torchviz import make_dot
import torch
from torch import nn

model = nn.Sequential(nn.Linear(8, 16), nn.Tanh(), nn.Linear(16, 1))
x = torch.randn(1, 8)
y = model(x)
make_dot(y.mean(), params=dict(model.named_parameters()))

Verify before relying

  • Whether the package works with recent PyTorch versions given 620 days since last release.
  • Current status of the GitHub repository and whether it is actively maintained by PyTorch maintainers.

Package facts

LicenseBSD permissive
Python supportNot specified
Install frictionLow. Pure-Python wheel
Runtime dependencies
2 packages
torchgraphviz
MaintenanceDormant 620 days since the last release
First released
Downloads2,052,967 / month, #3,338 on PyPI 30-day window, as of 2026-08-14
Known vulnerabilitiesNone known OSV.dev, checked 2026-08-14

Evidence: torchviz-0.0.3-py3-none-any.whl

Tags

Capabilities
pytorch graph visualizationneural network architecture diagramautograd computation graphpytorch model visualizationtensor flow visualizationpytorch execution trace
Topics
pytorchvisualizationdebugging

Let your AI agent find packages like this

Example. Real query, live index.

You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.

wish › “pytorch graph visualization”

  • torchvizGenerates visual diagrams of PyTorch neural network computation…
  • ai-edge-model-explorerVisualizes and debugs machine learning model graphs with hierarchical…
  • depyfDecompile and inspect the internal bytecode and optimization graphs…

Give your agent the search over MCP, or paste the wish link into any chat.

More Artificial Intelligence packages

litellm With conditions
PyPI · Artificial Intelligence · released Aug 2026

LiteLLM provides a unified Python interface to call 100+ LLM providers (OpenAI, Anthropic, Gemini, Bedrock, Azure, and others) using OpenAI-compatible API format, available as both a Python SDK and a self-hosted AI Gateway proxy server.

Install it if you need to work with multiple LLM providers or want to centralize LLM routing in your organization.

MITcompiled wheel
682.8Mdownloads / mo
huggingface-hub Worth it
PyPI · Artificial Intelligence · released Aug 2026

Client library and CLI tool for downloading, uploading, and managing models, datasets, and repositories on the Hugging Face Hub platform.

Install it if you work with Hugging Face Hub models or datasets.

Apache-2.0pure Python · 3.10.0+
442.4Mdownloads / mo
langchain Worth it
PyPI · Python Modules · released Aug 2026

LangChain provides a framework for building agents and LLM-powered applications by composing language models, tools, and memory through a unified API that abstracts over multiple model providers.

MITpure Python
315.4Mdownloads / mo
hf-xet With conditions
PyPI · Artificial Intelligence · released Aug 2026

hf-xet provides chunk-based deduplication and efficient file transfer for the Hugging Face Hub, enabling faster uploads and downloads of large files with local disk caching.

Apache-2.0compiled wheel · 3.8+
258.4Mdownloads / mo
tokenizers Worth it
PyPI · Artificial Intelligence · released Apr 2026

Tokenizers converts raw text into token sequences for NLP models, with support for training custom vocabularies and using pre-built tokenizers (BPE, WordPiece) optimized for speed via Rust.

Apache-2.0compiled wheel · 3.10+
222.9Mdownloads / mo
transformers Worth it
PyPI · Artificial Intelligence · released Aug 2026

Transformers provides a unified framework for loading, fine-tuning, and running state-of-the-art pretrained models across text, vision, audio, video, and multimodal tasks using PyTorch, JAX, or TensorFlow.

Install it if you need to run or train any transformer-based model for NLP, vision, audio, or multimodal tasks.

permissive licensepure Python · 3.10.0+
186.6Mdownloads / mo

See also torch · pygraphviz · pydotplus · gravis · torchsummary · graphviz · pystructurizr · diagrams · torch-geometric · tinygrad

Further reading