Make `torch.det()` support complex input. (#45980)
Summary:
As per title. A minor fix required to make it available for the CPU (`fmod` does not support complex).
For CUDA requires [https://github.com/pytorch/pytorch/issues/45898 ](https://github.com/pytorch/pytorch/pull/45898).
Pull Request resolved: https://github.com/pytorch/pytorch/pull/45980
Reviewed By: izdeby
Differential Revision: D24539097
Pulled By: anjali411
fbshipit-source-id: 508830dbfd7794ab73e19320d07c69a051c91819