Remove torch.distributed.rpc function (#27287)
Summary:
Pull Request resolved: https://github.com/pytorch/pytorch/pull/27287
This is replaced by calls to `dist.rpc_sync` and `dist.rpc_async`.
Test Plan: Imported from OSS
Differential Revision: D17808210
Pulled By: pietern
fbshipit-source-id: 3103a615fa8b08224780387a3ea4ac6b1c73badb