Skip to content

Dataset

jax_dataloader.datasets.Dataset ¤

A pytorch-like Dataset class.

Source code in jax_dataloader/datasets.py
12
13
14
15
16
17
18
19
class Dataset:
    """A pytorch-like Dataset class."""

    def __len__(self):
        raise NotImplementedError

    def __getitem__(self, index):
        raise NotImplementedError

Functions¤

__getitem__(index) ¤

Source code in jax_dataloader/datasets.py
18
19
def __getitem__(self, index):
    raise NotImplementedError

__len__() ¤

Source code in jax_dataloader/datasets.py
15
16
def __len__(self):
    raise NotImplementedError