We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
size
world_size
1 parent 1cedb08 commit 1437a21Copy full SHA for 1437a21
intermediate_source/dist_tuto.rst
@@ -72,7 +72,7 @@ the following template.
72
mp.get_context("spawn")
73
else:
74
mp.set_start_method("spawn")
75
- for rank in range(size):
+ for rank in range(world_size):
76
p = mp.Process(target=init_process, args=(rank, world_size, run))
77
p.start()
78
processes.append(p)
0 commit comments