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

A Training Bug #1

Open
zjykzj opened this issue Dec 23, 2021 · 2 comments
Open

A Training Bug #1

zjykzj opened this issue Dec 23, 2021 · 2 comments
Labels
bug Something isn't working

Comments

@zjykzj
Copy link
Member

zjykzj commented Dec 23, 2021

There is a training bug in this project. That is I only set teacher model's require_grad_=False, but still put it's parameters to optimizer. So teacher model will update in training while it doesn't compute grad.

I don't have plan to fix it, because the training result shows it also works well.

@zjykzj zjykzj added the bug Something isn't working label Dec 23, 2021
@zjykzj zjykzj pinned this issue Dec 23, 2021
@zjykzj
Copy link
Member Author

zjykzj commented Dec 29, 2021

May be that's fine if I had set requires_grad=False. See What is the behavior of passing model parameters with requires_grad == False to an optimizer?

Optimizer has done the filter func implicitly, for example sgd. To be on the safe side, filter the parameters entered into the optimizer

@thancaocuong
Copy link

it's not a bug 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants