Skip to content

Commit

Permalink
fix rpc_sync and rpc_async doc;test=develop (#64107)
Browse files Browse the repository at this point in the history
  • Loading branch information
danleifeng authored May 10, 2024
1 parent 9013831 commit 1319992
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions python/paddle/distributed/rpc/rpc.py
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ def init_rpc(name, rank=None, world_size=None, master_endpoint=None):

def rpc_sync(to, fn, args=None, kwargs=None, timeout=_DEFAULT_RPC_TIMEOUT):
"""
Make a blocking RPC call to run function ``fn`` on worker ``to``.
Make a blocking RPC call to run function ``fn`` on worker ``to``. Attention: Users must use this API in a secure network environment.
Args:
to (str): name of the destination worker.
Expand Down Expand Up @@ -182,7 +182,7 @@ def rpc_sync(to, fn, args=None, kwargs=None, timeout=_DEFAULT_RPC_TIMEOUT):

def rpc_async(to, fn, args=None, kwargs=None, timeout=_DEFAULT_RPC_TIMEOUT):
"""
Make a non-blocking RPC call to run function ``fn`` on worker ``to``.
Make a non-blocking RPC call to run function ``fn`` on worker ``to``. Attention: Users must use this API in a secure network environment.
Args:
to (str): name of the destination worker.
Expand Down

0 comments on commit 1319992

Please sign in to comment.