Let exp support complex types on CUDA and enable device/dtype in complex tests (#39087)
Summary: Pull Request resolved: https://github.com/pytorch/pytorch/pull/39087
Differential Revision: D22169697
Pulled By: anjali411
fbshipit-source-id: 4866b7be6742508cc40540ed1ac811f005531d8b