Have a look here to see how a generic
Dataset can be implemented:
In particular, the
__getitiem__ method, which returns a tuple comprising (data, label)
The generic loop is something like:
for (data, labels) in dataloader:
# train / eval code
You’re free to ignore the label here and you can train an autoencoder on cifar10, for example, pretty much out of the box.