Skip to content

Instantly share code, notes, and snippets.

@Sachin-crypto
Created December 16, 2022 12:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Sachin-crypto/83cf1bb333459e5599e53bffc4027c17 to your computer and use it in GitHub Desktop.
Save Sachin-crypto/83cf1bb333459e5599e53bffc4027c17 to your computer and use it in GitHub Desktop.
# We are not going to train last 23 layers and it's an arbitrary number
for layer in mobile.layers[:-23]:
layer.trainable=False
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment