delu.data#

An addition to torch.utils.data.

Enumerate

Make dataset return both indices and items.

IndexDataset

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


Warning

The API listed below is deprecated.

make_index_dataloader

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

FnDataset

[DEPRECATED | ] Create simple PyTorch datasets without classes and inheritance.

IndexLoader

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