Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save n0obcoder/07a47b4bffe723b7784e43209e8893af to your computer and use it in GitHub Desktop.

Select an option

Save n0obcoder/07a47b4bffe723b7784e43209e8893af to your computer and use it in GitHub Desktop.
for param in model.layer1.parameters():
param.requires_grad = False
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment