remove deprecated torch.Tensor in test_c10d.py
Summary: Pull Request resolved: https://github.com/pytorch/pytorch/pull/28315
Test Plan: Imported from OSS
Differential Revision: D18019148
Pulled By: mrshenli
fbshipit-source-id: 9aff891c6df0b1cfa5ff01e7551973a16d512909