{"adoption": {"forks": 535, "observed_at": "2026-08-28T04:09:09.500461+00:00", "stars": 5078}, "canonical_url": "https://ross.abutalabs.com/products/pytorch-opcounter", "card": {"archived": false, "artifact_type": "library", "description": "Count the MACs / FLOPs of your PyTorch model.", "domain": ["deep-learning", "machine-learning", "developer-tools"], "enriched": true, "function": ["machine-learning", "benchmarking", "developer-tools"], "health_score": 20, "homepage": null, "language": "Python", "license": "MIT", "license_family": "permissive", "maturity": "maintenance", "member_repos": ["Lyken17/pytorch-OpCounter"], "name": "Lyken17/pytorch-OpCounter", "platform": ["python"], "pushed_at": "2024-07-08T06:44:15+00:00", "repo": "Lyken17/pytorch-OpCounter", "stars": 5078, "tags": ["pytorch", "flops", "macs", "model-complexity", "profiling"], "topics": [], "urls": [], "use_cases": ["count flops of a pytorch model", "measure macs of resnet50", "estimate model computational complexity", "count parameters in a neural network", "compare compute cost of different model architectures", "profile custom pytorch modules for flop counting"], "what_it_is": "THOP (PyTorch-OpCounter) is a Python library that counts the MACs/FLOPs and parameters of PyTorch models. It profiles arbitrary nn.Modules with support for custom operations and includes benchmarks for popular torchvision models.", "when_to_avoid": ["you need runtime latency or memory profiling rather than static op counts", "you work outside PyTorch (e.g., TensorFlow or JAX)", "you need highly accurate hardware-aware performance measurement"], "when_to_choose": ["you need quick MACs/FLOPs and parameter counts for PyTorch models", "you want to benchmark standard torchvision architectures", "you need custom counting rules for third-party modules"]}, "data_as_of": "2026-08-30T08:39:29.467469+00:00", "members": [{"path": "/products/pytorch-opcounter", "repo": "Lyken17/pytorch-OpCounter", "role": "main", "score": 32}], "provenance": {"archived": {"kind": "observed", "observed_at": "2026-08-28T04:09:09.500461+00:00", "source": "github"}, "artifact_type": {"confidence": null, "enriched_at": "2026-08-29T18:02:35.942745+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "027e35d6486359c7ef60c06a793b89274378bafef61efc5c7da5724f30e88afd", "fetched_at": "2026-08-28T04:09:09.500461+00:00", "kind": "readme", "missing": false, "url": "https://github.com/Lyken17/pytorch-OpCounter"}], "taxonomy_version": 1}, "description": {"kind": "observed", "observed_at": "2026-08-28T04:09:09.500461+00:00", "source": "github"}, "domain": {"confidence": null, "enriched_at": "2026-08-29T18:02:35.942745+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "027e35d6486359c7ef60c06a793b89274378bafef61efc5c7da5724f30e88afd", "fetched_at": "2026-08-28T04:09:09.500461+00:00", "kind": "readme", "missing": false, "url": "https://github.com/Lyken17/pytorch-OpCounter"}], "taxonomy_version": 1}, "enriched": {"inputs": [], "kind": "computed", "method": "enrichment_status"}, "function": {"confidence": null, "enriched_at": "2026-08-29T18:02:35.942745+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "027e35d6486359c7ef60c06a793b89274378bafef61efc5c7da5724f30e88afd", "fetched_at": "2026-08-28T04:09:09.500461+00:00", "kind": "readme", "missing": false, "url": "https://github.com/Lyken17/pytorch-OpCounter"}], "taxonomy_version": 1}, "health_score": {"inputs": ["days_since_push", "days_since_release", "archived"], "kind": "computed", "method": "health_v1"}, "homepage": {"kind": "observed", "observed_at": "2026-08-28T04:09:09.500461+00:00", "source": "github"}, "language": {"kind": "observed", "observed_at": "2026-08-28T04:09:09.500461+00:00", "source": "github"}, "license": {"kind": "observed", "observed_at": "2026-08-28T04:09:09.500461+00:00", "source": "github"}, "license_family": {"inputs": ["license"], "kind": "computed", "method": "license_family"}, "maturity": {"confidence": null, "enriched_at": "2026-08-29T18:02:35.942745+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "027e35d6486359c7ef60c06a793b89274378bafef61efc5c7da5724f30e88afd", "fetched_at": "2026-08-28T04:09:09.500461+00:00", "kind": "readme", "missing": false, "url": "https://github.com/Lyken17/pytorch-OpCounter"}], "taxonomy_version": 1}, "member_repos": {"kind": "observed", "observed_at": "2026-08-28T04:09:09.500461+00:00", "source": "github"}, "name": {"kind": "observed", "observed_at": "2026-08-28T04:09:09.500461+00:00", "source": "github"}, "platform": {"confidence": null, "enriched_at": "2026-08-29T18:02:35.942745+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "027e35d6486359c7ef60c06a793b89274378bafef61efc5c7da5724f30e88afd", "fetched_at": "2026-08-28T04:09:09.500461+00:00", "kind": "readme", "missing": false, "url": "https://github.com/Lyken17/pytorch-OpCounter"}], "taxonomy_version": 1}, "pushed_at": {"kind": "observed", "observed_at": "2026-08-28T04:09:09.500461+00:00", "source": "github"}, "repo": {"kind": "observed", "observed_at": "2026-08-28T04:09:09.500461+00:00", "source": "github"}, "stars": {"kind": "observed", "observed_at": "2026-08-28T04:09:09.500461+00:00", "source": "github"}, "tags": {"confidence": null, "enriched_at": "2026-08-29T18:02:35.942745+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "027e35d6486359c7ef60c06a793b89274378bafef61efc5c7da5724f30e88afd", "fetched_at": "2026-08-28T04:09:09.500461+00:00", "kind": "readme", "missing": false, "url": "https://github.com/Lyken17/pytorch-OpCounter"}], "taxonomy_version": 1}, "topics": {"kind": "observed", "observed_at": "2026-08-28T04:09:09.500461+00:00", "source": "github"}, "urls": {"kind": "observed", "observed_at": "2026-08-28T04:09:09.500461+00:00", "source": "github"}, "use_cases": {"confidence": null, "enriched_at": "2026-08-29T18:02:35.942745+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "027e35d6486359c7ef60c06a793b89274378bafef61efc5c7da5724f30e88afd", "fetched_at": "2026-08-28T04:09:09.500461+00:00", "kind": "readme", "missing": false, "url": "https://github.com/Lyken17/pytorch-OpCounter"}], "taxonomy_version": 1}, "what_it_is": {"confidence": null, "enriched_at": "2026-08-29T18:02:35.942745+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "027e35d6486359c7ef60c06a793b89274378bafef61efc5c7da5724f30e88afd", "fetched_at": "2026-08-28T04:09:09.500461+00:00", "kind": "readme", "missing": false, "url": "https://github.com/Lyken17/pytorch-OpCounter"}], "taxonomy_version": 1}, "when_to_avoid": {"confidence": null, "enriched_at": "2026-08-29T18:02:35.942745+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "027e35d6486359c7ef60c06a793b89274378bafef61efc5c7da5724f30e88afd", "fetched_at": "2026-08-28T04:09:09.500461+00:00", "kind": "readme", "missing": false, "url": "https://github.com/Lyken17/pytorch-OpCounter"}], "taxonomy_version": 1}, "when_to_choose": {"confidence": null, "enriched_at": "2026-08-29T18:02:35.942745+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "027e35d6486359c7ef60c06a793b89274378bafef61efc5c7da5724f30e88afd", "fetched_at": "2026-08-28T04:09:09.500461+00:00", "kind": "readme", "missing": false, "url": "https://github.com/Lyken17/pytorch-OpCounter"}], "taxonomy_version": 1}}, "score": {"components": {"activity": 0, "longevity": 100, "rhythm": 35}, "computed_at": "2026-09-02T17:46:02.011165+00:00", "flags": ["no_releases"], "formula": "round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)", "inputs": {"age_days": 3141, "days_push": 786, "days_rel": null, "gap_med": null, "n_releases_24m": 0}, "score": 32, "version": 2}, "staleness": {"enrichment_outdated": false, "low_confidence": false, "scrape_days": 9, "stale_scrape": false}}