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

how to freeze some layers during training #231

Open
renukachittimalla opened this issue Jun 4, 2020 · 1 comment
Open

how to freeze some layers during training #231

renukachittimalla opened this issue Jun 4, 2020 · 1 comment

Comments

@renukachittimalla
Copy link

I am trying to train ELMO on small dataset and want to freeze all the top layers i.e., cnn,highway network layers and 1st LSTM. I am using restart.py to retrain and i don't have a clue how to freeze these layers. Can you please help me . Thanks

@eduamf
Copy link

eduamf commented Jul 29, 2020

To freeze a layer is to fix the weights. This can be done with trainable=False when setting a variable. It`s a clue.

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