net.load_state_dict(torch.load(config.checkpoint_path+'/checkpoint.pth.tar')['state_dict'])
state = {'model': net, 'train_loader': train_loader,
             'val_loader': val_loader, 'criterion': criterion,
             'center': center_dict['center'], 'config': config,
             'optimizer': optimizer}```
I think that solved the problem. I will keep you updated.