removing some macros (#120314)
Summary: Will be making some changes in the surrounding code, they are going to be easier without macros
Differential Revision: D54001770
Pull Request resolved: https://github.com/pytorch/pytorch/pull/120314
Approved by: https://github.com/zhxchen17