(root, name, **kwargs)
Loads different datasets specifically for GAN training.
    By default, all images are normalized to values in the range [-1, 1].

    Args:
        root (str): Path to where datasets are stored.
        name (str): Name of dataset to load.

    Returns:
        Dataset: Torch Dataset object for a specific dataset.
Loads different datasets specifically for GAN training.
    By default, all images are normalized to values in the range [-1, 1].
Loads different datasets specifically for GAN training . By default all images are normalized to values in the range [ - 1 1 ] .
def load_dataset(root, name, **kwargs):
    """
    Loads different datasets specifically for GAN training.
    By default, all images are normalized to values in the range [-1, 1].

    Args:
        root (str): Path to where datasets are stored.
        name (str): Name of dataset to load.

    Returns:
        Dataset: Torch Dataset object for a specific dataset.
    """
    if name == "cifar10":
        return load_cifar10_dataset(root, **kwargs)

    else:
        raise ValueError("Invalid dataset name {} selected.".format(name))
def load_dataset ( root , name , * * kwargs ) : if name == "cifar10" : return load_cifar10_dataset ( root , * * kwargs ) else : raise ValueError ( "Invalid dataset name {} selected." . format ( name ) )