pytorch/extension-cpp resource
C++ extensions in PyTorch observed · 2026-08-28
Health v2 · maintenance only
60/100
- Activity 62
- Release rhythm 35
- Longevity 100
Flags: no_releases no_license
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: 3105
- days_rel: n/a
- days_push: 232
- n_releases_24m: 0
Adoption not part of the score
1203 stars · 247 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded
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.
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
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
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
Facets
learning-resource · maturity active
machine-learning gpu-computing developer-tools deep-learning developer-tools gpu-computing python cpp cross-platform pytorch cpp-extension cuda custom-ops example-code stable-abi libtorch gpu
1 source
- readme: https://github.com/pytorch/extension-cpp · fetched 2026-08-28 · 3e892100c36d
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| pytorch/extension-cpp | main | 60 |
For agents
markdown · JSON · MCP: product_card(name="pytorch/extension-cpp")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem