Disable complex dispatch on min/max functions (#50347)
Summary:
Fixes https://github.com/pytorch/pytorch/issues/50064
**PROBLEM:**
In issue https://github.com/pytorch/pytorch/issues/36377, min/max functions were disabled for complex inputs (via dtype checks).
However, min/max kernels are still being compiled and dispatched for complex.
**FIX:**
The aforementioned dispatch has been disabled & we now rely on errors produced
by dispatch macro to not run those ops on complex, instead of doing redundant dtype checks.
Pull Request resolved: https://github.com/pytorch/pytorch/pull/50347
Reviewed By: zhangguanheng66
Differential Revision: D25870385
Pulled By: anjali411
fbshipit-source-id: 921541d421c509b7a945ac75f53718cd44e77df1