Yes, it was on Jupyter,
One more thing I was experimenting with different ways of doing this and wrote this :
for k, p in resnet18.fc._parameters.items():
    p.requires_grad = True

which works but I tried to changed it again and wrote it this way this time:
(p.requires_grad_(True) for k,p in resnet18.fc._parameters.items())
which failed miserably!
I expected this to also work since I’m using the inplace operator (requires_grad_) but it doesnt! do you know why this is not working?