def encodeFeature(image, model):
    """Extract encoded values for a single image

    Arguments:
        image {Tensor} -- image dataset to sample
        model {Moduke} -- [description]

    Returns:
        Tensor -- flattened encoded image
    """
    features = model(image.unsqueeze(0).cuda())[1].cpu()
    return features.view(1, -1)