From 46c04c8fcc3fc1ef964d3c181e53323ce3c85fb5 Mon Sep 17 00:00:00 2001 From: Weilong Wu Date: Thu, 9 Jun 2022 10:53:52 +0800 Subject: [PATCH] Fix format for doc (#43341) --- python/paddle/fluid/framework.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/python/paddle/fluid/framework.py b/python/paddle/fluid/framework.py index fdd5c0b47b4..a790feb9af2 100644 --- a/python/paddle/fluid/framework.py +++ b/python/paddle/fluid/framework.py @@ -265,16 +265,16 @@ def ipu_shard_guard(index=None, stage=None): Used to shard the graph on IPUs. Set each Op run on which IPU in the sharding and which stage in the pipelining. Args: - index(int, optional): Specify which ipu the Tensor is computed on, (such as ‘0, 1, 2, 3’). + index(int, optional): Specify which ipu the Tensor is computed on, (such as '0, 1, 2, 3'). The default value is None, which means the Op only run on IPU 0. - stage(int, optional): Specify the computation order of the sharded model(such as ‘0, 1, 2, 3’). + stage(int, optional): Specify the computation order of the sharded model(such as '0, 1, 2, 3'). The sharded model will be computed from small to large. The default value is None, which means no pipelining computation order and run Ops in terms of graph. **Note**: - Only if the enable_manual_shard=True, the ‘index’ is able to be set not None. Please refer + Only if the enable_manual_shard=True, the 'index' is able to be set not None. Please refer to :code:`paddle.static.IpuStrategy` . - Only if the enable_pipelining=True, the ‘stage’ is able to be set not None. Please refer + Only if the enable_pipelining=True, the 'stage' is able to be set not None. Please refer to :code:`paddle.static.IpuStrategy` . A index is allowed to match none stage or a stage. A stage is only allowed to match a new or duplicated index. -- GitLab