Skip to content

Commit c5a9aa0

Browse files
quanvuongapaszke
authored andcommitted
fix wrong path to ReduceLROnPlateau in docstring
1 parent 11a14fd commit c5a9aa0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

torch/optim/lr_scheduler.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@ class ReduceLROnPlateau(object):
197197
198198
Example:
199199
>>> optimizer = torch.optim.SGD(model.parameters(), lr=0.1, momentum=0.9)
200-
>>> scheduler = torch.optim.ReduceLROnPlateau(optimizer, 'min')
200+
>>> scheduler = ReduceLROnPlateau(optimizer, 'min')
201201
>>> for epoch in range(10):
202202
>>> train(...)
203203
>>> val_loss = validate(...)

0 commit comments

Comments
 (0)