Skip to content

Commit 62c6017

Browse files
authored
Merge pull request #12 from daisyden/xiangdong/fix
Update test_dtensor.py
2 parents ab42f03 + a1c2919 commit 62c6017

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/distributed/tensor/test_dtensor.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -942,7 +942,7 @@ def test_split_tensor_1D(self) -> None:
942942
mesh = self.build_device_mesh()
943943
shard_placement = Shard(0)
944944

945-
for size in range(8):
945+
for size in range(self.world_size):
946946
tensor = self._create_tensor(size)
947947
splitted_tensor_list, pad_sizes = shard_placement._split_tensor(
948948
tensor,

0 commit comments

Comments
 (0)