Define TORCH_ASSERT_ONLY_METHOD_OPERATORS in ATen/core (#72344)
Summary:
Pull Request resolved: https://github.com/pytorch/pytorch/pull/72344
ATen core is mostly compliant already so we can just add the flag to
the build system. The only exception is interned string which includes
symbols like `aten::add` generated for each operator.
Test Plan: Imported from OSS
Reviewed By: jbschlosser
Differential Revision: D34010820
Pulled By: albanD
fbshipit-source-id: ef1a625d96f30457b5e6beffc5e630516e54f9b4
(cherry picked from commit b90c262a9258c49393999c5ed39b8725dd4203ee)