Fix TORCH_CHECK macros when glog is used (#83216)
Makes TORCH_CHECK_* run unconditionally, leaving only TORCH_DCHECK_*
special-cased to be optimized out in release builds.
Fixes a bug in #82032, relating to this comment
https://github.com/pytorch/pytorch/pull/82032#issuecomment-1203726409
Pull Request resolved: https://github.com/pytorch/pytorch/pull/83216
Approved by: https://github.com/ezyang, https://github.com/datumbox