Skip to content
Kitbay
Submit
Skill

at-dispatch-v2

NOASSERTIONUpdated on Nov 11, 2026105,390GitHub stars

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.

What the skill teaches

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.

Capabilities

Not stated in its documentation