FashionMNIST — Torchvision 0.22 documentation (original) (raw)

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

Fashion-MNIST Dataset.

Parameters:

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