Replicate

class paddle.distributed. Replicate

The Replicate describes the tensor placed repeatedly on ProcessMesh.

Examples

>>> import paddle
>>> import paddle.distributed as dist
>>> mesh = dist.ProcessMesh([0, 1], dim_names=["x"])
>>> a = paddle.ones([10, 20])
>>> 
>>> # distributed tensor
>>> d_tensor = dist.shard_tensor(a, mesh, [dist.Replicate()])
is_partial ( self: paddle.base.libpaddle.Placement ) bool

is_partial

is_replicated ( self: paddle.base.libpaddle.Placement ) bool

is_replicated

is_shard ( self: paddle.base.libpaddle.Placement, dim: Optional[int] = None ) bool

is_shard