Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions torch/optim/lr_scheduler.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ class StepLR(_LRScheduler):
last_epoch (int): The index of last epoch. Default: -1.

Example:
>>> # Assuming optimizer uses lr = 0.5 for all groups
>>> # Assuming optimizer uses lr = 0.05 for all groups
>>> # lr = 0.05 if epoch < 30
>>> # lr = 0.005 if 30 <= epoch < 60
>>> # lr = 0.0005 if 60 <= epoch < 90
Expand Down Expand Up @@ -118,7 +118,7 @@ class MultiStepLR(_LRScheduler):
last_epoch (int): The index of last epoch. Default: -1.

Example:
>>> # Assuming optimizer uses lr = 0.5 for all groups
>>> # Assuming optimizer uses lr = 0.05 for all groups
>>> # lr = 0.05 if epoch < 30
>>> # lr = 0.005 if 30 <= epoch < 80
>>> # lr = 0.0005 if epoch >= 80
Expand Down