本文へスキップ
Kitbay
スキル

at-dispatch-v2

NOASSERTION2026年11月11日 更新105,390GitHubスター

A contributor skill in the PyTorch repository for converting ATen C++ code from the older AT_DISPATCH macros, whose names encode how many extra types they take, to the AT_DISPATCH_V2 form.

スキルの内容

A contributor skill in the PyTorch repository for converting ATen C++ code from the older AT_DISPATCH macros, whose names encode how many extra types they take, to the AT_DISPATCH_V2 form. The agent adds the v2 header next to the old one, maps each old macro to its type group, moves the dtype and name arguments to the front, wraps the lambda so commas inside it do not break the macro, marks type groups for expansion and lists extra types individually. Worked examples cover the common variants, and a checklist confirms each conversion. The agent shows the converted file and explains the changes but is told not to compile or test it.

できること

ドキュメントに記載なし