avoid CPU std::copysign segfault when compiling on arm64 (take-2) (#55608)
Summary:
Re-land of https://github.com/pytorch/pytorch/issues/51834
Pull Request resolved: https://github.com/pytorch/pytorch/pull/55608
Reviewed By: ngimel
Differential Revision: D27649077
Pulled By: malfet
fbshipit-source-id: 1a21611fb12106f75fe50e8f9f14796ab6ab9464