Skip to main content
AI/MLpytorch

at-dispatch-v2

Convert PyTorch AT_DISPATCH macros to AT_DISPATCH_V2 format in ATen C++ code. Use when porting AT_DISPATCH_ALL_TYPES_AND*, AT_DISPATCH_FLOATING_TYPES*, or other dispatch macros to the new v2 API. For ATen kernel files, CUDA kernels, and native operator implementations.

Stars
100,283
Source
pytorch/pytorch
Updated
2026-05-31
Slug
pytorch--pytorch--at-dispatch-v2
View on GitHubRaw SKILL.md

// install — copy + paste into any project

mkdir -p .claude/skills && curl -fsSL https://raw.githubusercontent.com/pytorch/pytorch/HEAD/.claude/skills/at-dispatch-v2/SKILL.md -o .claude/skills/at-dispatch-v2.md

Drops the SKILL.md into .claude/skills/at-dispatch-v2.md. Works with Claude Code, Cursor, and any agent that loads SKILL.md files from .claude/skills/.