Skip to content

Commit

Permalink
fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
jinyouzhi committed Oct 9, 2023
1 parent d82c04c commit 84810bf
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions python/paddle/distributed/rpc/rpc.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@ def init_rpc(name, rank=None, world_size=None, master_endpoint=None):
Examples:
.. code-block:: python
>>> # doctest: +REQUIRES(env:DISTRIBUTED)
>>> import paddle.distributed.rpc as rpc
>>> rpc.init_rpc("worker0", rank=0, world_size=1,
Expand Down Expand Up @@ -162,7 +163,7 @@ def rpc_sync(to, fn, args=None, kwargs=None, timeout=_DEFAULT_RPC_TIMEOUT):
Examples:
.. code-block:: python
>>> doctest: +REQUIRES(env:DISTRIBUTED)
>>> # doctest: +REQUIRES(env:DISTRIBUTED)
>>> import paddle.distributed.rpc as rpc
>>> def add(a, b):
Expand Down Expand Up @@ -204,7 +205,7 @@ def rpc_async(to, fn, args=None, kwargs=None, timeout=_DEFAULT_RPC_TIMEOUT):
Examples:
.. code-block:: python
>>> doctest: +REQUIRES(env:DISTRIBUTED)
>>> # doctest: +REQUIRES(env:DISTRIBUTED)
>>> import paddle.distributed.rpc as rpc
>>> def add(a, b):
Expand Down Expand Up @@ -286,7 +287,7 @@ def shutdown():
Examples:
.. code-block:: python
>>> doctest: +REQUIRES(env:DISTRIBUTED)
>>> # doctest: +REQUIRES(env:DISTRIBUTED)
>>> import paddle.distributed.rpc as rpc
>>> rpc.init_rpc("worker0", rank=0, world_size=1,
Expand Down Expand Up @@ -318,7 +319,7 @@ class `WorkerInfo` with attribute `name`, `rank`, `ip` and `port`.
Examples:
.. code-block:: python
>>> doctest: +REQUIRES(env:DISTRIBUTED)
>>> # doctest: +REQUIRES(env:DISTRIBUTED)
>>> import paddle.distributed.rpc as rpc
>>> import os
Expand All @@ -345,7 +346,7 @@ def get_all_worker_infos():
Examples:
.. code-block:: python
>>> doctest: +REQUIRES(env:DISTRIBUTED)
>>> # doctest: +REQUIRES(env:DISTRIBUTED)
>>> import paddle.distributed.rpc as rpc
>>> import os
Expand All @@ -372,7 +373,7 @@ class `WorkerInfo` with attribute `name`, `rank`, `ip` and `port`.
Examples:
.. code-block:: python
>>> doctest: +REQUIRES(env:DISTRIBUTED)
>>> # doctest: +REQUIRES(env:DISTRIBUTED)
>>> import paddle.distributed.rpc as rpc
>>> import os
Expand Down

0 comments on commit 84810bf

Please sign in to comment.