Ross ROSS = Recommend OSS · open-source software intelligence for agents

Swall0w/torchstat

Model analyzer in PyTorch observed · 2026-08-28

github.com/Swall0w/torchstat · Python · MIT (permissive) observed · 2026-08-28

Health v2 · maintenance only

23/100

  • Activity 0
  • 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-02. Adoption (stars, forks) is never an input.

  • gap_med: n/a
  • age_days: 2868
  • days_rel: n/a
  • days_push: 1263
  • n_releases_24m: 0

Full methodology

Adoption not part of the score

1500 stars · 138 forks observed · 2026-08-28

What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded

torchstat is a lightweight neural network analyzer for PyTorch that reports parameter counts, FLOPs, multiply-adds, and memory usage per layer. It can be used as a CLI tool or imported as a Python module to profile nn.Module models.

Use cases

  • count total parameters in a PyTorch model
  • estimate FLOPs and multiply-adds of a neural network
  • measure memory usage of model layers
  • profile layer-by-layer compute cost of a network
  • debug PyTorch model architecture statistics

When to choose

  • you need quick parameter/FLOPs/memory stats for a PyTorch nn.Module
  • you want a simple CLI or one-line stat() call for model analysis

When to avoid

  • you need support for ops like Dropout2d or newer PyTorch modules
  • you need actively maintained tooling with modern PyTorch compatibility
  • you need runtime profiling rather than theoretical estimates

Facets

library · maturity maintenance

benchmarking developer-tools cli deep-learning machine-learning developer-tools performance python cli cross-platform pytorch model-analysis flops memory-usage neural-networks profiling

2 sources

Member repositories

RepositoryRoleHealth v2
Swall0w/torchstatmain23

For agents

markdown · JSON · MCP: product_card(name="Swall0w/torchstat")

Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem