I read two lines of codes as follows
for param in resnet.parameters():
param.requires_grad = False
And it is for fintune only top layer of the model, but I cant understand why?
Is there anyone who can explain it to me! Thank you very much!