Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

pytorch freeze layers

# freeze all layers... but you get the point
for param in model.parameters():
    param.requires_grad = False
 
PREVIOUS NEXT
Tagged: #pytorch #freeze #layers
ADD COMMENT
Topic
Name
1+5 =