Skip to content

Commit 5c47bb1

Browse files
committed
Example code fix for pytorch/tutorials#1619
Summary: Test Plan: Reviewers: Subscribers: Tasks: Tags: [ghstack-poisoned]
1 parent 2639cf0 commit 5c47bb1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

distributed/rpc/ddp_rpc/main.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ def run_worker(rank, world_size):
137137
for trainer_rank in [0, 1]:
138138
trainer_name = "trainer{}".format(trainer_rank)
139139
fut = rpc.rpc_async(
140-
trainer_name, _run_trainer, args=(remote_emb_module, rank)
140+
trainer_name, _run_trainer, args=(remote_emb_module, trainer_rank)
141141
)
142142
futs.append(fut)
143143

0 commit comments

Comments
 (0)