


import torch.distributed.rpc as rpc
      >>> rpc.init_rpc("worker1", rank=1, world_size=2)
      >>> rpc.shutdown()



  Below is an example of running a TorchScript function using RPC.

  >>> # On both workers:
  >>> @torch.jit.script
  >>> def my_script_add(t1, t2):
  >>>    return torch.add(t1, t2)

  >>> # On worker 0:
  >>> import torch.distributed.rpc as rpc
  >>> rpc.init_rpc("worker0", rank=0, world_size=2)
  >>> rref = rpc.remote("worker1", my_script_add, args=(torch.ones(2), 3))
  >>> rref.to_here()
  >>> rpc.shutdown()

  >>> # On worker 1:
  >>> import torch.distributed.rpc as rpc
  >>> rpc.init_rpc("worker1", rank=1, world_size=2)
  >>> rpc.shutdown()

torch.distributed.rpc.get_worker_info(worker_name=None)
Get "WorkerInfo" of a given worker name. Use this "WorkerInfo" to
   avoid passing an expensive string on every invocation.
Parameters:
      worker_name (str) -- the string name of a worker. If