def METHOD_NAME(model, optimizer, filename, filepath = './pth', cpu=False):
    if cpu:
        checkpoint = torch.METHOD_NAME(filepath + '/' + filename, map_location=torch.device('cpu'))
    else:
        checkpoint = torch.METHOD_NAME(filepath + '/' + filename)
    model.load_state_dict(checkpoint['model_state_dict'])
    optimizer.load_state_dict(checkpoint['optimizer_state_dict'])
    #epoch = checkpoint['epoch']
    model.eval()