[PyTorch] Provide overload of torchCheckFail taking `const char*` (#51389)
Summary:
Pull Request resolved: https://github.com/pytorch/pytorch/pull/51389
This should reduce code size when STRIP_ERROR_MESSAGES is defined by allowing callers of TORCH_CHECK to avoid creating `std::string`s.
ghstack-source-id: 120692772
Test Plan: Measure code size of STRIP_ERROR_MESSAGES builds
Reviewed By: ezyang
Differential Revision: D25891476
fbshipit-source-id: 34eef5af7464da6534989443859e2765887c243c