THOP: PyTorch-OpCounter

JSON →
library 0.1.1.post2209072238 ·python maintenance
verified May 23, 2026

THOP (PyTorch-OpCounter) is a Python library designed to calculate the Multiply-Accumulate Operations (MACs) and parameters of PyTorch models. It provides an intuitive API for deep learning practitioners to evaluate the computational efficiency and memory footprint of their models, aiding in optimization and architecture selection. The current PyPI version is 0.1.1.post2209072238, released in September 2022, indicating a less active maintenance cadence for this specific branch.

total hits 23
actors 6 distinct systems
last hit 23h ago ByteDance
GPTBot
6
OAI-SearchBot
4
ByteDance
3
Script
2
ChatGPT-User
2
Humans
3

top countries 🇺🇸 United States · 🇸🇬 Singapore · 🇩🇪 Germany · 🇨🇦 Canada · 🇫🇷 France