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) – 索引 回傳:: (image, target) 其中 target 是目標類別的索引。 回傳類型:: tuple (元組)