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

Questions about learning rate decay #20

Open
Jiaolong opened this issue Dec 13, 2019 · 0 comments
Open

Questions about learning rate decay #20

Jiaolong opened this issue Dec 13, 2019 · 0 comments

Comments

@Jiaolong
Copy link

In the paper section 4.1, it is said:
ηp = η0(1 + αp)−β, where p is the training progress changing from 0 to 1

I understand p = iter_num/max_iters

However, in the following pytorch code:

lr = lr * (1 + gamma * iter_num) ** (-power)

and also in the tensorflow code:
https://github.com/thuml/CDAN/blob/master/tensorflow/train.py#L13

p = iter_num is used instead of p = iter_num/max_iters

Can you explain about this? Thanks!

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