Support remote for Python UDF in distributed autograd
Summary: Pull Request resolved: https://github.com/pytorch/pytorch/pull/28656
Test Plan: Imported from OSS
Differential Revision: D18138561
Pulled By: mrshenli
fbshipit-source-id: 798e7c00465b5a299f7b4642683bc407895bc7da