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

Why we need #3

Open
liming-ai opened this issue Aug 27, 2021 · 1 comment
Open

Why we need #3

liming-ai opened this issue Aug 27, 2021 · 1 comment

Comments

@liming-ai
Copy link

Hi @sadeepj , Thanks for your amazing work, I noticed that there is another weight decay term:

loss = loss + args.weight_decay * loss_r

Why do we need this line? The weight decay has been set in optimizer init

Besides, I did not found any weight decay in the official TensorFlow code. Could you please explain it?

@limengyang1992
Copy link

image

在109行

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

2 participants