hello there and thanks for the immediate  reply .
I tried your above steps , I get the following error ,please help on this .
path_save="./model_new_10_300_0.005.pth"
model = torch.hub.load(‘pytorch/vision:v0.5.0’, ‘resnext50_32x4d’, pretrained=False)
for param in model.parameters():
param.requires_grad = False
model.fc = nn.Linear(2048, num_classes)
model
print(model)
checkpoint=torch.load(path_save)
model.load_state_dict(checkpoint[‘state_dict’])
And the error is
model.load_state_dict(checkpoint[‘state_dict’])
KeyError: ‘state_dict’