Skip to content

Commit 4c36093

Browse files
authored
Update intermediate_source/ddp_tutorial.rst
1 parent ff7142e commit 4c36093

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

intermediate_source/ddp_tutorial.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,7 @@ and elasticity support, please refer to `TorchElastic <https://pytorch.org/elast
217217
torch.load(CHECKPOINT_PATH, map_location=map_location, weights_only=True))
218218
219219
loss_fn = nn.MSELoss()
220-
optimizer = optim.SGD(ddp_model.parameters(),gr=0.001)
220+
optimizer = optim.SGD(ddp_model.parameters(), lr=0.001)
221221
222222
optimizer.zero_grad()
223223
outputs = ddp_model(torch.randn(20, 10))

0 commit comments

Comments
 (0)