CIFAR100¶ class torchvision.datasets.CIFAR100(root: Union[str, Path], train: bool = True, transform: Optional[Callable] = None, target_transform: Optional[Callable] = None, download: bool = False)[原始碼]¶ CIFAR100 資料集。 這是 CIFAR10 資料集的子類。 特殊成員: __getitem__(index: int) → tuple[Any, Any]¶ 引數: index (int) – 索引 返回: (影像, 目標) 其中目標是目標類的索引。 返回型別: 元組