AT DISPATCH to AT DISPATCH V2 Converter This skill helps convert PyTorch's legacy AT DISPATCH macros to the new AT DISPATCH V2 format, as defined in . When to use this skill Use this skill when: - Converting AT DISPATCH macros to AT DISPATCH V2 - Porting ATen kernels to use the new dispatch API - Working with files in that use dispatch macros - User mentions "AT DISPATCH", "dispatch v2", "Dispatch v2.h", or macro conversion Quick reference Old format: New format: Key transformations 1. Reorder arguments : and come first, then lambda, then types 2. Wrap the lambda : Use to handle internal comm…