Wow,Thanks , it works!
However as I initialize model by using
#fc layer has been deleted here
for key in resnet50_weights:
    model_resnet.state_dict()[key] = resnet50_weights[key]

And I do a little test to check initialization is done properly.
print(model_resnet.state_dict()["layer4.2.bn3.running_mean"]==resnet50_weights["layer4.2.bn3.running_mean"])

And the output be like:
tensor([False, False, False,  ..., False, False, False])

Which implies initialization is wrong ,But why does it fail?