change. Since v1.5.0, "torch.distributed.rpc" supports calling
  TorchScript functions as RPC target functions, and this will help
  improve parallelism on the callee side as executing TorchScript
  functions does not require GIL.
torch.distributed.rpc.rpc_sync(to, func, args=None, kwargs=None, timeout=- 1.0)
Make a blocking RPC call to run function "func" on worker "to". RPC
   messages are sent and received in parallel to execution of Python
   code. This method is thread-safe.
Parameters:
      * to (str or WorkerInfo or int) --
        name/rank/"WorkerInfo" of the destination worker.
  * **func** (*Callable*) -- a callable function, such as Python
    callables, builtin operators (e.g. "add()") and annotated
    TorchScript functions.

  * **args** (*tuple*) -- the argument tuple for the "func"
    invocation.

  * **kwargs** (*dict*) -- is a dictionary of keyword arguments
    for the "func" invocation.
