Skip to content

Commit 1437a21

Browse files
authored
Fix typo size to world_size (#3274)
1 parent 1cedb08 commit 1437a21

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

intermediate_source/dist_tuto.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ the following template.
7272
mp.get_context("spawn")
7373
else:
7474
mp.set_start_method("spawn")
75-
for rank in range(size):
75+
for rank in range(world_size):
7676
p = mp.Process(target=init_process, args=(rank, world_size, run))
7777
p.start()
7878
processes.append(p)

0 commit comments

Comments
 (0)