Migrate AT_DISPATCH_FLOATING_AND_COMPLEX_TYPES_AND2 to c10::complex (#39285)
Summary:
All the uses of `AT_DISPATCH_FLOATING_AND_COMPLEX_TYPES_AND2` are for CUDA.
Dispatch macro comes first, cleanup of remaining `c10::complex --> thrust::complex` will be done later.
Pull Request resolved: https://github.com/pytorch/pytorch/pull/39285
Differential Revision: D21803978
Pulled By: anjali411
fbshipit-source-id: ec9837f121e3020dfa2d12c8bc9aede9fb01c375