Revert "Revert "Added {logical_not, trace} refs, moved logical ops to use method overloads""
This reverts commit d67309aefb435930c77d45935181b3238cf5772e.
Pull Request resolved: https://github.com/pytorch/pytorch/pull/79224
Approved by: https://github.com/mruberry