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