delu.data#

An addition to torch.utils.data.

Enumerate

Make dataset return both indices and items.

FnDataset

Create simple PyTorch datasets without classes and inheritance.

IndexDataset

A trivial dataset that yeilds indices back to user (useful for DDP).


Deprecated items

Show

make_index_dataloader

[DEPRECATED | Instead, use delu.data.IndexDataset and DataLoader] Make DataLoader over indices instead of data.

IndexLoader

[DEPRECATED | Instead, use delu.data.IndexDataset and DataLoader] Like DataLoader, but over indices instead of data.