Instead of model.fc, you may need to use model.classifier to point to the correct layer in your model.
model.fc
model.classifier