Zum Inhalt springen
Kitbay
Skill

at-dispatch-v2

NOASSERTIONAktualisiert am 11. Nov. 2026105.390GitHub-Sterne

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.

Was der Skill vermittelt

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.

Funktionen

In der Dokumentation nicht angegeben