Shortcuts

CIFAR100

class torchvision.datasets.CIFAR100(root: str, train: bool = True, transform: Optional[Callable] = None, target_transform: Optional[Callable] = None, download: bool = False)[source]

CIFAR100 Dataset.

This is a subclass of the CIFAR10 Dataset.

Special-members

__getitem__(index: int)Tuple[Any, Any]
Parameters

index (int) – Index

Returns

(image, target) where target is index of the target class.

Return type

tuple

Docs

Access comprehensive developer documentation for PyTorch

View Docs

Tutorials

Get in-depth tutorials for beginners and advanced developers

View Tutorials

Resources

Find development resources and get your questions answered

View Resources