Fix SWALR doc string (#79836)

In `torch/optim/swa_utils.py`.
Pull Request resolved: https://github.com/pytorch/pytorch/pull/79836
Approved by: https://github.com/albanD
This commit is contained in:
Janosh Riebesell
2022-06-20 12:57:07 +00:00
committed by PyTorch MergeBot
parent e2a2ecac0e
commit 660d9ddef4

View File

@ -204,7 +204,7 @@ class SWALR(_LRScheduler):
(default: "cos")
last_epoch (int): the index of the last epoch (default: -1)
The :class:`SWALR` scheduler is can be used together with other
The :class:`SWALR` scheduler can be used together with other
schedulers to switch to a constant learning rate late in the training
as in the example below.