Comparison
thop vs torchprofile
Maintenance, adoption and momentum side by side, from PyPI, GitHub and deps.dev data refreshed every day.
A tool to count the FLOPs of PyTorch model.
Likely abandoned. No release or commit for years (last release over 4 years ago).
$
pip install thopCount the MACs / FLOPs of PyTorch models
Low maintenance activity. Last release 9 months ago, commits in 0 of the last 26 weeks. Weaker on commit activity and release cadence.
$
pip install torchprofileIn short
- thop looks abandoned: avoid it for new projects.
- torchprofile is the most used: 72.5K downloads a month.
- torchprofile also has the best Pythie’s Index (34).
Side by side
| Metric | thop | torchprofile |
|---|---|---|
| Pythie’s Index | Pythie’s Index: 23 | 34 |