awesome-repositories.com
Blog
MCP
awesome-repositories.com

Discover the best open-source repositories with AI-powered search.

ExploreCurated searchesOpen-source alternativesSelf-hosted softwareBlogSitemap
ProjectMCP serverAboutHow we rankPress
LegalPrivacyTerms
© 2026 Bringes Technology SRL·VAT RO45896025·hello@awesome-repositories.com
sksq96 avatar

sksq96/pytorch-summary

0
View on GitHub↗
4,054 stars·410 forks·Python·MIT·15 views

Pytorch Summary

pytorch-summary is a collection of utilities for PyTorch neural networks designed to generate model summaries, calculate memory requirements, and visualize layer-by-layer tensor shapes. It functions as a reporting tool that provides detailed breakdowns of network layers and output shapes to assist with model debugging and inspection.

The project provides specialized capabilities for estimating the total memory usage of forward and backward passes based on input dimensions and parameter counts. It generates human-readable visualizations of model structures to verify architectural designs and identify dimension mismatches across layers.

The tool implements structural analysis through recursive module traversal, hook-based tensor tracking, and input-driven shape inference. These capabilities allow for the aggregation of parameter counts and the mapping of data flow between successive operations.

Features

  • Architecture Visualizers - A reporting tool that generates detailed breakdowns of network layers and tensor shapes for model debugging.
  • Model Summary Visualizers - Generates human-readable summaries of PyTorch model structures similar to the Keras summary format.
  • Tensor Shape Inferences - Determines output dimensions by passing dummy tensors through the network to trigger actual layer computations.
  • Runtime Shape Tracking - Intercepts PyTorch forward passes using hooks to record the exact shape of tensors at every layer.
  • Model Parameter Aggregators - Sums the elements of all registered model weights to calculate the total size of the neural network.
  • Neural Network Debugging - Checks for dimension mismatches and tensor shape errors across multiple layers within a PyTorch model.
  • Model Architecture Inspection - Analyzes the architecture and layer-by-layer output shapes of PyTorch neural networks to verify model design.
  • Model Summary Tools - A utility for visualizing layer architecture, output shapes, and parameter counts for PyTorch neural networks.
  • Recursive Module Operations - Iterates through the nested hierarchy of PyTorch modules to aggregate parameter counts and layer metadata.
  • Tensor Data Flow Mapping - Maps the flow of data and resulting tensor shapes between successive neural network layers.
  • Memory Capacity Estimators - Calculates the memory footprint of each operation based on the size of input and output tensors.
  • Pass-Based Memory Estimation - Calculates the total memory and parameter counts required for PyTorch models during forward and backward passes.
  • Model Architecture Visualizations - Generates detailed reports of network layers, output shapes, and parameter counts for specified input tensors.
  • Developer Tools - Model summary utility.
  • Training and Utilities - Model summary utility similar to Keras.

Star history

Star history chart for sksq96/pytorch-summaryStar history chart for sksq96/pytorch-summary

How this analysis was created: This summary and feature list are AI-generated from collected project material and can contain mistakes. Stars, license and language are imported from GitHub. Inclusion does not mean that we have tested or audited this project. Check the source documentation for any feature you depend on. Learn more on our About page.

AI search

Explore more awesome repositories

Describe what you need in plain English — the AI ranks thousands of curated open-source projects by relevance.

Start searching with AI

Projects sharing features with Pytorch Summary

These projects share indexed features with Pytorch Summary. Shared tags can include platform or build tooling; verify the primary use case before treating a result as a replacement.
  • facebook/pyreflyfacebook avatar

    facebook/pyrefly

    5,390View on GitHub↗

    Pyrefly is a static type checker for Python that operates as a language server, delivering real-time diagnostics, completions, and navigation in any editor supporting the Language Server Protocol. It also performs static tensor shape analysis, using symbolic dimension variables and arithmetic to verify shape consistency in deep learning models without runtime execution. Beyond core type checking, Pyrefly supports gradual adoption workflows: it can generate a baseline of known errors so only new issues are reported, migrate configuration from other type checkers, and automatically suppress exi

    Rustcode-qualitycontributions-welcomegood-first-issue
    View on GitHub↗5,390
  • lyken17/pytorch-opcounterLyken17 avatar

    Lyken17/pytorch-OpCounter

    5,080View on GitHub↗

    pytorch-OpCounter is a profiling utility for PyTorch neural networks designed to quantify model efficiency by calculating floating point operations and multiply-accumulate counts. It functions as a complexity analyzer to measure the computational cost and theoretical workload of different model architectures. The tool allows for the definition of custom operation counting rules to support third-party modules not covered by default. It uses forward hooks to intercept module calls and recursive traversal of the module tree to aggregate operations across child sub-modules. The project provides

    Python
    View on GitHub↗5,080
  • datawhalechina/thorough-pytorchdatawhalechina avatar

    datawhalechina/thorough-pytorch

    3,684View on GitHub↗

    This project is an educational resource and comprehensive guide for implementing and deploying deep learning models using the PyTorch framework. It provides a structured learning curriculum consisting of tutorials and notebooks that cover neural network architectures, data pipelines, and model optimization across multiple AI domains. The curriculum includes practical implementation guides for building convolutional networks, transformers, and recurrent models. It specifically focuses on workflows for computer vision, including image classification, object detection, and segmentation, as well

    Jupyter Notebookdeep-learningmachine-learningpython
    View on GitHub↗3,684
  • bloodaxe/pytorch-toolbeltBloodAxe avatar

    BloodAxe/pytorch-toolbelt

    1,572View on GitHub↗

    PyTorch extensions for fast R&D prototyping and Kaggle farming

    Pythonaugmentationdeep-learningfocal-loss
    View on GitHub↗1,572
Compare all 30 related projects→

Frequently asked questions

What does sksq96/pytorch-summary do?

pytorch-summary is a collection of utilities for PyTorch neural networks designed to generate model summaries, calculate memory requirements, and visualize layer-by-layer tensor shapes. It functions as a reporting tool that provides detailed breakdowns of network layers and output shapes to assist with model debugging and inspection.

What are the main features of sksq96/pytorch-summary?

The main features of sksq96/pytorch-summary are: Architecture Visualizers, Model Summary Visualizers, Tensor Shape Inferences, Runtime Shape Tracking, Model Parameter Aggregators, Neural Network Debugging, Model Architecture Inspection, Model Summary Tools.

Which projects share features with sksq96/pytorch-summary?

Projects with overlapping indexed features include: lyken17/pytorch-opcounter — pytorch-OpCounter is a profiling utility for PyTorch neural networks designed to quantify model efficiency by… facebook/pyrefly — Pyrefly is a static type checker for Python that operates as a language server, delivering real-time diagnostics,… datawhalechina/thorough-pytorch — This project is an educational resource and comprehensive guide for implementing and deploying deep learning models… catalyst-team/catalyst — Accelerated deep learning R&D. blue-season/pywarm. bloodaxe/pytorch-toolbelt — PyTorch extensions for fast R&D prototyping and Kaggle farming.