-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
How can I "freeze" some layers? #17
Comments
Hi, @EncodeTS . The first way is to use the
The second way is to get the variables by a given name. For example, if you want to get all variables which the layer name contail
After you get the variable list, you can define your optimizer like that so as to update only a part of the variables.
|
Thanks!! |
@zsdonghao |
it will only update |
How can I exclude some layers from training when I want to fine-tune a model?In keras I can simply set the
trainable=False
.Is there a method for tensorlayer to do this?The text was updated successfully, but these errors were encountered: