[dtensor] readme typo (#115383)

Pull Request resolved: https://github.com/pytorch/pytorch/pull/115383
Approved by: https://github.com/awgu
ghstack dependencies: #115365
This commit is contained in:
Wanchao Liang 2023-12-07 14:22:50 -08:00 committed by PyTorch MergeBot
parent af925a56a1
commit 1215f2ffe2

View File

@ -57,7 +57,7 @@ import torch
from torch.distributed._tensor import DTensor, Shard, Replicate, distribute_tensor, distribute_module, init_device_mesh
# construct a device mesh with available devices (multi-host or single host)
device_mesh = init_device_mesh("cuda", )
device_mesh = init_device_mesh("cuda", (4,))
# if we want to do row-wise sharding
rowwise_placement=[Shard(0)]
# if we want to do col-wise sharding