Delete Tensor::swap(), replace with pointer swap (#12730)
Summary:
Pull Request resolved: https://github.com/pytorch/pytorch/pull/12730
i-am-not-moving-c2-to-c10
Reviewed By: smessmer
Differential Revision: D10415430
fbshipit-source-id: 8a2ce8611c5fa77bbbd73fb6788c1baa3b370f07