What if I want to discard the fc layer? How can I delete fc layer after using
model_resnet.load_state_dict(resnet50_weights)

I think this might work
model_resnet = nn.Sequential(*list(model_resnet.children())[:-2])