Created
July 17, 2020 17:14
-
-
Save prateekjoshi565/f0bc5fdf47bae4d5dc5065bc24b86c57 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# freeze all the parameters | |
for param in bert.parameters(): | |
param.requires_grad = False |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment