remove deprecated torch.Tensor in test_distributed.py
Summary: Pull Request resolved: https://github.com/pytorch/pytorch/pull/28316
Test Plan: Imported from OSS
Differential Revision: D18019147
Pulled By: mrshenli
fbshipit-source-id: eb0fb08031d810ea85fb6ea54b1b25791178131b