关于
This skill automates the migration of legacy PyTorch dispatch macros to the updated V2 API found in ATen. It streamlines the process of porting ATen kernels and native operators by correctly reordering arguments, wrapping lambdas with the required AT_WRAP macro, and expanding type groups using AT_EXPAND. It is specifically designed for developers working on PyTorch core, CUDA kernels, or custom operators who need to maintain compatibility with the latest ATen dispatching standards while reducing boilerplate and macro arity issues.