EMNIST — Torchvision 0.22 documentation (original) (raw)

class torchvision.datasets.EMNIST(root: Union[str, Path], split: str, **kwargs: Any)[source]

EMNIST 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