Add torch.Tensor.as_subclass method. (#34369)
Summary:
This is according to pytorch/rfcs#3.
Pull Request resolved: https://github.com/pytorch/pytorch/pull/34369
Differential Revision: D20963929
Pulled By: ezyang
fbshipit-source-id: e618af6fd36e1dfaeda617162314ad5840f55358