Replace constexpr with CONSTEXPR_EXCEPT_WIN_CUDA (#48717)
Summary:
Fixes https://github.com/pytorch/pytorch/issues/48716
Pull Request resolved: https://github.com/pytorch/pytorch/pull/48717
Reviewed By: ezyang
Differential Revision: D25277886
Pulled By: datumbox
fbshipit-source-id: eb845db35d31b64d3e4401ed56843814192ce5a6