lets say i have a model
from torchvision import models
model = models.resnet18(pretrained=True)
Now i freeze all the layers
for param in model.parameters():
param.requires_grad = False
and then pass all the models parameters in the optimizer
optimizer = optim.Adam(model.parameters() , lr=0.1)
would the optimzer do nothing, because all the model parameters have requires_grad = False?
thanks in advance