Revert "Revert "Revert "Added {logical_not, trace} refs, moved logical ops to use method overloads"""
This reverts commit a2d2981e8e5e128d4e642494bbb5e037ae9933ff.
Reverted https://github.com/pytorch/pytorch/pull/79224 on behalf of https://github.com/suo due to broke lots of things https://hud.pytorch.org/pytorch/pytorch/commit/a2d2981e8e5e128d4e642494bbb5e037ae9933ff