$npx skillfedfor your agent

torchsummary

Model summary in PyTorch similar to `model.summary()` in Keras

SkipPyPI Artificial IntelligenceReleased Sep 2018101.5K downloads / moPure Python

Decision gist · record as of 2026-08-14

pure-Python wheel — torchsummary-1.5.1-py3-none-any.whl
v1.5.1 · released 2018-09-26

No—the package is dormant and its own documentation recommends torchinfo as the maintained successor. Install torchsummary only if you are maintaining legacy code that already depends on it; for new projects, use torchinfo instead.AI-flagged interpretation of the facts on this page — verify before relying

Before you install

  • Requires a forward pass through the model; input_size parameter must match the expected tensor dimensions for the model's input.
  • Installation is frictionless with no runtime dependencies.
  • However, the package is dormant—last release was 2018-09-26 and last commit 2024-03-02—so it receives no active maintenance.

License · maintenance · safety

(unclear) — License treatment is unclear; the description mentions MIT licensing but the metadata lacks formal SPDX declaration. Verify the actual license terms in the repository before relying on it in proprietary or license-sensitive contexts.

last release 2018-09-26 (2879 days) · last repo commit 2024-03-02 · 4,054 stars

0 known vulnerabilities (OSV.dev, 2026-08-14) · 101,495 downloads/mo, #12,930 on PyPI

Verify before relying

pip install torchsummary

from torchsummary import summary
summary(your_model, input_size=(channels, H, W))
  • Compatibility with recent PyTorch versions—last release predates many breaking changes in the PyTorch API.
  • Whether torchinfo is a direct drop-in replacement or requires code changes for existing torchsummary users.
  • Current state of maintenance and whether the archived repository flag affects long-term usability.
Same gist for agents: .md · .json

What it is and what it does

torchsummary provides a quick way to inspect neural network models by printing a formatted table of layers, output shapes, and parameter counts—similar to Keras's built-in `model.summary()` method. It works by running a forward pass through the network with dummy input of the specified size and capturing layer information along the way.

The package has no runtime dependencies and installs easily, but it is no longer actively maintained. The original author's description explicitly directs users to torchinfo as a newer, updated alternative. Use torchsummary only if you are working with legacy code or have a specific reason to avoid migrating.

Use it for

  • Quickly inspect the architecture of a custom neural network during development and debugging.
  • Estimate total model size in parameters and memory footprint before training or deployment.
  • Verify that layer output shapes match expectations when designing a new network.
  • Document model structure in notebooks or reports with a clean, readable summary table.
  • Check parameter counts across different model variants to compare complexity.

Worth the install?

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

Skip

No—the package is dormant and its own documentation recommends torchinfo as the maintained successor.

Install torchsummary only if you are maintaining legacy code that already depends on it; for new projects, use torchinfo instead.

Install

torchsummary on PyPI

Before you install

Installation is frictionless with no runtime dependencies. However, the package is dormant—last release was 2018-09-26 and last commit 2024-03-02—so it receives no active maintenance. The description itself recommends migrating to torchinfo.

Requires a forward pass through the model; input_size parameter must match the expected tensor dimensions for the model's input.

License in practice

License treatment is unclear; the description mentions MIT licensing but the metadata lacks formal SPDX declaration. Verify the actual license terms in the repository before relying on it in proprietary or license-sensitive contexts.

Quickstart

pip install torchsummary

from torchsummary import summary
summary(your_model, input_size=(channels, H, W))

Verify before relying

  • Compatibility with recent PyTorch versions—last release predates many breaking changes in the PyTorch API.
  • Whether torchinfo is a direct drop-in replacement or requires code changes for existing torchsummary users.
  • Current state of maintenance and whether the archived repository flag affects long-term usability.

Package facts

LicenseNot declared unclear
Python supportNot specified
Install frictionLow. Pure-Python wheel
Runtime dependenciesNone
MaintenanceDormant 2,879 days since the last release
Last repo commit
First released
Downloads101,495 / month, #12,930 on PyPI 30-day window, as of 2026-08-14
Known vulnerabilitiesNone known OSV.dev, checked 2026-08-14

Evidence: torchsummary-1.5.1-py3-none-any.whl

Tags

Capabilities
pytorch model summarykeras style model.summary pytorchneural network layer visualizationpytorch model architecture inspectionparameter count pytorchmodel size estimation pytorchpytorch network debugging
Topics
model-inspectiondeprecated

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 › “keras style model.summary pytorch”

  • torchsummaryDisplays a Keras-style summary of PyTorch neural network models,…
  • torchinfoGenerates detailed summaries of PyTorch neural network models,…
  • kerasKeras 3 is a multi-backend deep learning framework supporting JAX,…

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 torchinfo · ultralytics-thop · thop · ema-pytorch · torchviz · timm · vit-pytorch · pnnx · torch-model-archiver · onnx2torch