CIFAR100¶ class torchvision.datasets.CIFAR100(root: Union[str, Path], train: bool = True, transform: Optional[Callable] = None, target_transform: Optional[Callable] = None, download: bool = False)[source]¶ CIFAR100 数据集。 这是CIFAR10数据集的一个子类。 Special-members: __getitem__(index: int) → Tuple[Any, Any]¶ Parameters: index (int) – 索引 Returns: (image, target) 其中 target 是目标类的索引。 Return type: tuple