(num_samples, root=None, **kwargs)
return images
Loads randomly sampled CIFAR-10 training images.

    Args:
        num_samples (int): The number of images to randomly sample.
        root (str): The root directory where all datasets are stored.

    Returns:
        Tensor: Batch of num_samples images in np array form.
Loads randomly sampled CIFAR-10 training images.
Loads randomly sampled CIFAR - 10 training images .
def get_cifar10_images(num_samples, root=None, **kwargs):
    """
    Loads randomly sampled CIFAR-10 training images.

    Args:
        num_samples (int): The number of images to randomly sample.
        root (str): The root directory where all datasets are stored.

    Returns:
        Tensor: Batch of num_samples images in np array form.
    """
    dataset = data_utils.load_cifar10_dataset(root=root, **kwargs)

    images = get_random_images(dataset, num_samples)

    return images
def get_cifar10_images ( num_samples , root = None , * * kwargs ) : dataset = data_utils . load_cifar10_dataset ( root = root , * * kwargs ) images = get_random_images ( dataset , num_samples ) return images