Fix test failures with some glibc libraries (#60450)
Summary:
Large complex values lead to nan/inf results when using some glibc
implementations of atanh/acos
- Skip test_reference_numerics_hard instead of "normal"
- Test the edge values only for cdouble where the stdlib/glibc implementations support those large values
Fixes https://github.com/pytorch/pytorch/issues/60259
Pull Request resolved: https://github.com/pytorch/pytorch/pull/60450
Reviewed By: mrshenli
Differential Revision: D29304834
Pulled By: ezyang
fbshipit-source-id: d6b97456847c5573b9d2cb447bfc62abba73cb2a