{"adoption": {"forks": 247, "observed_at": "2026-08-28T04:03:58.704126+00:00", "stars": 1203}, "canonical_url": "https://ross.abutalabs.com/products/extension-cpp", "card": {"archived": false, "artifact_type": "learning-resource", "description": "C++ extensions in PyTorch", "domain": ["deep-learning", "developer-tools", "gpu-computing"], "enriched": true, "function": ["machine-learning", "gpu-computing", "developer-tools"], "health_score": 57, "homepage": null, "language": "Python", "license": null, "license_family": "other", "maturity": "active", "member_repos": ["pytorch/extension-cpp"], "name": "pytorch/extension-cpp", "platform": ["python", "cpp", "cross-platform"], "pushed_at": "2026-01-13T16:13:29+00:00", "repo": "pytorch/extension-cpp", "stars": 1203, "tags": ["pytorch", "cpp-extension", "cuda", "custom-ops", "example-code", "stable-abi", "libtorch", "gpu"], "topics": [], "urls": [], "use_cases": ["write custom C++ CUDA kernels for pytorch", "create a custom op in pytorch with cpu and cuda support", "learn how to build pytorch cpp extensions", "build a pytorch extension that works across pytorch versions", "speed up a slow python op with a c++ kernel"], "what_it_is": "An official PyTorch example repository demonstrating how to write C++/CUDA extensions with custom ops. It includes two variants: one using the standard ATen/LibTorch API and one using the LibTorch Stable ABI.", "when_to_avoid": ["you need a production library rather than example code", "you want prebuilt extensions without writing C++ yourself", "you need extensions for pytorch versions older than 2.10 with the stable ABI variant"], "when_to_choose": ["you need a reference example for writing pytorch C++/CUDA custom ops", "you want to learn the standard ATen extension API or the new stable ABI", "you need a starting template for a pytorch extension project"]}, "data_as_of": "2026-08-30T08:39:29.467469+00:00", "members": [{"path": "/products/extension-cpp", "repo": "pytorch/extension-cpp", "role": "main", "score": 60}], "provenance": {"archived": {"kind": "observed", "observed_at": "2026-08-28T04:03:58.704126+00:00", "source": "github"}, "artifact_type": {"confidence": null, "enriched_at": "2026-08-30T06:20:31.871436+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "3e892100c36da2a797ed25526db0e06197137785f769f25295d7d6892c3323a9", "fetched_at": "2026-08-28T04:03:58.704126+00:00", "kind": "readme", "missing": false, "url": "https://github.com/pytorch/extension-cpp"}], "taxonomy_version": 1}, "description": {"kind": "observed", "observed_at": "2026-08-28T04:03:58.704126+00:00", "source": "github"}, "domain": {"confidence": null, "enriched_at": "2026-08-30T06:20:31.871436+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "3e892100c36da2a797ed25526db0e06197137785f769f25295d7d6892c3323a9", "fetched_at": "2026-08-28T04:03:58.704126+00:00", "kind": "readme", "missing": false, "url": "https://github.com/pytorch/extension-cpp"}], "taxonomy_version": 1}, "enriched": {"inputs": [], "kind": "computed", "method": "enrichment_status"}, "function": {"confidence": null, "enriched_at": "2026-08-30T06:20:31.871436+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "3e892100c36da2a797ed25526db0e06197137785f769f25295d7d6892c3323a9", "fetched_at": "2026-08-28T04:03:58.704126+00:00", "kind": "readme", "missing": false, "url": "https://github.com/pytorch/extension-cpp"}], "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:03:58.704126+00:00", "source": "github"}, "language": {"kind": "observed", "observed_at": "2026-08-28T04:03:58.704126+00:00", "source": "github"}, "license": {"kind": "observed", "observed_at": "2026-08-28T04:03:58.704126+00:00", "source": "github"}, "license_family": {"inputs": ["license"], "kind": "computed", "method": "license_family"}, "maturity": {"confidence": null, "enriched_at": "2026-08-30T06:20:31.871436+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "3e892100c36da2a797ed25526db0e06197137785f769f25295d7d6892c3323a9", "fetched_at": "2026-08-28T04:03:58.704126+00:00", "kind": "readme", "missing": false, "url": "https://github.com/pytorch/extension-cpp"}], "taxonomy_version": 1}, "member_repos": {"kind": "observed", "observed_at": "2026-08-28T04:03:58.704126+00:00", "source": "github"}, "name": {"kind": "observed", "observed_at": "2026-08-28T04:03:58.704126+00:00", "source": "github"}, "platform": {"confidence": null, "enriched_at": "2026-08-30T06:20:31.871436+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "3e892100c36da2a797ed25526db0e06197137785f769f25295d7d6892c3323a9", "fetched_at": "2026-08-28T04:03:58.704126+00:00", "kind": "readme", "missing": false, "url": "https://github.com/pytorch/extension-cpp"}], "taxonomy_version": 1}, "pushed_at": {"kind": "observed", "observed_at": "2026-08-28T04:03:58.704126+00:00", "source": "github"}, "repo": {"kind": "observed", "observed_at": "2026-08-28T04:03:58.704126+00:00", "source": "github"}, "stars": {"kind": "observed", "observed_at": "2026-08-28T04:03:58.704126+00:00", "source": "github"}, "tags": {"confidence": null, "enriched_at": "2026-08-30T06:20:31.871436+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "3e892100c36da2a797ed25526db0e06197137785f769f25295d7d6892c3323a9", "fetched_at": "2026-08-28T04:03:58.704126+00:00", "kind": "readme", "missing": false, "url": "https://github.com/pytorch/extension-cpp"}], "taxonomy_version": 1}, "topics": {"kind": "observed", "observed_at": "2026-08-28T04:03:58.704126+00:00", "source": "github"}, "urls": {"kind": "observed", "observed_at": "2026-08-28T04:03:58.704126+00:00", "source": "github"}, "use_cases": {"confidence": null, "enriched_at": "2026-08-30T06:20:31.871436+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "3e892100c36da2a797ed25526db0e06197137785f769f25295d7d6892c3323a9", "fetched_at": "2026-08-28T04:03:58.704126+00:00", "kind": "readme", "missing": false, "url": "https://github.com/pytorch/extension-cpp"}], "taxonomy_version": 1}, "what_it_is": {"confidence": null, "enriched_at": "2026-08-30T06:20:31.871436+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "3e892100c36da2a797ed25526db0e06197137785f769f25295d7d6892c3323a9", "fetched_at": "2026-08-28T04:03:58.704126+00:00", "kind": "readme", "missing": false, "url": "https://github.com/pytorch/extension-cpp"}], "taxonomy_version": 1}, "when_to_avoid": {"confidence": null, "enriched_at": "2026-08-30T06:20:31.871436+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "3e892100c36da2a797ed25526db0e06197137785f769f25295d7d6892c3323a9", "fetched_at": "2026-08-28T04:03:58.704126+00:00", "kind": "readme", "missing": false, "url": "https://github.com/pytorch/extension-cpp"}], "taxonomy_version": 1}, "when_to_choose": {"confidence": null, "enriched_at": "2026-08-30T06:20:31.871436+00:00", "kind": "inferred", "prompt_version": 1, "sources": [{"content_hash": "3e892100c36da2a797ed25526db0e06197137785f769f25295d7d6892c3323a9", "fetched_at": "2026-08-28T04:03:58.704126+00:00", "kind": "readme", "missing": false, "url": "https://github.com/pytorch/extension-cpp"}], "taxonomy_version": 1}}, "score": {"components": {"activity": 62, "longevity": 100, "rhythm": 35}, "computed_at": "2026-09-02T17:46:02.011165+00:00", "flags": ["no_releases", "no_license"], "formula": "round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)", "inputs": {"age_days": 3105, "days_push": 232, "days_rel": null, "gap_med": null, "n_releases_24m": 0}, "score": 60, "version": 2}, "staleness": {"enrichment_outdated": false, "low_confidence": false, "scrape_days": 9, "stale_scrape": false}}