TylerYep/torchinfo
View model summaries in PyTorch! observed · 2026-08-28
Health v2 · maintenance only
67/100
- Activity 99
- Release rhythm 8
- Longevity 100
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-03. Adoption (stars, forks) is never an input.
- gap_med: n/a
- age_days: 2361
- days_rel: n/a
- days_push: 7
- n_releases_24m: 0
Adoption not part of the score
2947 stars · 138 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded
torchinfo is a Python library that provides Keras-style model summaries for PyTorch, showing layer types, input/output shapes, parameter counts, and multiply-add operations. It is a rewritten successor to torchsummary with a cleaner API for inspecting and debugging neural network architectures.
Use cases
- view pytorch model summary like keras
- count parameters in a pytorch model
- inspect layer shapes of a neural network
- debug pytorch network architecture
- estimate model compute with mult-adds
- replace torchsummary with maintained alternative
When to choose
- you need a detailed, maintained model summary for PyTorch models
- you want parameter counts and FLOPs per layer for debugging
- you miss TensorFlow's model.summary() when working in PyTorch
When to avoid
- you use TensorFlow/Keras, which has model.summary() built in
- you need full computational graph visualization rather than a tabular summary
- you require support for very old Python or PyTorch versions no longer backported
Facets
library · maturity active
data-visualization developer-tools machine-learning deep-learning machine-learning developer-tools python pytorch model-summary torchsummary debugging neural-networks
2 sources
- readme: https://github.com/TylerYep/torchinfo · fetched 2026-08-28 · 5f67e4872808
- registry_pypi: https://pypi.org/pypi/torchinfo/json · fetched 2026-08-29 · 095391b5cc77
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| TylerYep/torchinfo | main | 67 |
For agents
markdown · JSON · MCP: product_card(name="TylerYep/torchinfo")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem