Added CUDA support for complex input for torch.inverse #2 (#47595)
Summary:
`torch.inverse` now works for complex inputs on GPU.
Opening a new PR here. The previous PR was merged and reverted due to a bug in tests marked with `slowTest`.
Previous PR https://github.com/pytorch/pytorch/pull/45034
Ref. https://github.com/pytorch/pytorch/issues/33152
Pull Request resolved: https://github.com/pytorch/pytorch/pull/47595
Reviewed By: navahgar
Differential Revision: D24840955
Pulled By: anjali411
fbshipit-source-id: ec49fffdc4b3cb4ae7507270fa24e127be14f59b