# mert-kurttutan/torchview

torchview: visualize pytorch models

Repository: https://github.com/mert-kurttutan/torchview
Canonical: https://ross.abutalabs.com/products/torchview
Homepage: https://mert-kurttutan.github.io/torchview/
Language: Python
License: MIT
License Family: permissive
Topics: deep-learning, keras, machine-learning, neural-network, pytorch, visualization, python, torchviz
Last push: 2026-02-26T13:25:10+00:00

## Health v2 (maintenance only)
Score: 54/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 69, release rhythm 8, longevity 99
- inputs: {"age_days": 1394, "days_push": 188, "days_rel": 673, "gap_med": null, "n_releases_24m": 1}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1072, forks 49 (observed 2026-08-28T04:03:28.398863+00:00)

## What it is
torchview is a Python library that visualizes PyTorch models as visual graphs, showing tensors, modules, torch functions, and input/output shapes. It is the PyTorch equivalent of Keras's plot_model, supporting meta tensors, RNNs, skip connections, and Hugging Face models.

## Use cases
- visualize pytorch model architecture as a graph
- show input and output shapes of pytorch model layers
- plot pytorch model like keras plot_model
- inspect operations between tensors in a neural network
- visualize large models without consuming memory using meta tensors
- generate architecture diagrams for hugging face models

## When to choose
- you need architecture diagrams of PyTorch models with layer shapes
- you want a Keras plot_model equivalent for PyTorch
- you need to visualize very large models without memory overhead via meta tensors
- you want to see tensor operations, not just module calls

## When to avoid
- you need training metrics dashboards or profiling rather than architecture graphs
- you work outside PyTorch (e.g., TensorFlow or JAX)
- you cannot install the Graphviz system dependency

## Facets
- artifact type: library
- maturity: active
- function: data-visualization, developer-tools
- domain: deep-learning, machine-learning, data-visualization
- platform: python, cross-platform
- tags: pytorch, graphviz, model-visualization, neural-networks, torchviz

## Member repositories
- mert-kurttutan/torchview (main) score 54

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:03:28.398863+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T06:53:42.286479+00:00, confidence not recorded.
  - readme: https://github.com/mert-kurttutan/torchview (fetched 2026-08-28T04:03:28.398863+00:00, sha a517ebcf6553)
  - homepage: https://mert-kurttutan.github.io/torchview/ (fetched 2026-08-29T12:56:03.685331+00:00, sha b183506485b2)
  - registry_pypi: https://pypi.org/pypi/torchview/json (fetched 2026-08-29T12:56:03.694686+00:00, sha 9af94f5c92c6)
- Data as of 2026-08-30T08:39:29.467469+00:00.
