Skip to content

Commit 3321cdc

Browse files
zou3519soumith
authored andcommitted
Fix StepLR docs (#4478)
1 parent f31ac99 commit 3321cdc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

torch/optim/lr_scheduler.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ class StepLR(_LRScheduler):
8282
last_epoch (int): The index of last epoch. Default: -1.
8383
8484
Example:
85-
>>> # Assuming optimizer uses lr = 0.5 for all groups
85+
>>> # Assuming optimizer uses lr = 0.05 for all groups
8686
>>> # lr = 0.05 if epoch < 30
8787
>>> # lr = 0.005 if 30 <= epoch < 60
8888
>>> # lr = 0.0005 if 60 <= epoch < 90
@@ -117,7 +117,7 @@ class MultiStepLR(_LRScheduler):
117117
last_epoch (int): The index of last epoch. Default: -1.
118118
119119
Example:
120-
>>> # Assuming optimizer uses lr = 0.5 for all groups
120+
>>> # Assuming optimizer uses lr = 0.05 for all groups
121121
>>> # lr = 0.05 if epoch < 30
122122
>>> # lr = 0.005 if 30 <= epoch < 80
123123
>>> # lr = 0.0005 if epoch >= 80

0 commit comments

Comments
 (0)