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

about the weight decay #9

Open
shawnthu opened this issue Oct 12, 2019 · 0 comments
Open

about the weight decay #9

shawnthu opened this issue Oct 12, 2019 · 0 comments

Comments

@shawnthu
Copy link

shawnthu commented Oct 12, 2019

in your original code opt = SGD(trainable_params(model), momentum=0.9, weight_decay=5e-4*batch_size, nesterov=True)
multiply 5e-4 by batch_size is redundant.

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