Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

the usage of the 'orch.optim.lr_scheduler' #1

Open
ccijunk opened this issue Aug 1, 2019 · 0 comments
Open

the usage of the 'orch.optim.lr_scheduler' #1

ccijunk opened this issue Aug 1, 2019 · 0 comments

Comments

@ccijunk
Copy link

ccijunk commented Aug 1, 2019

line 90 , in main.py , the usage of the 'orch.optim.lr_scheduler' might be wrong.That code couldn't adjust the lr

the example in Document is as the follow

 Example:
        >>> # 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
        >>> scheduler = MultiStepLR(optimizer, milestones=[30,80], gamma=0.1)
        >>> for epoch in range(100):
        >>>     train(...)
        >>>     validate(...)
        >>>     scheduler.step()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant