Boxing uses if_constexpr instead of SFINAE (#31092)
Summary:
Pull Request resolved: https://github.com/pytorch/pytorch/pull/31092
-
ghstack-source-id: 102878439
Test Plan: unit tests
Reviewed By: ezyang
Differential Revision: D18927221
fbshipit-source-id: 70d99025b45edfaef11a0d587cf8bf8e749df6b8