Custom dataset based on CIFAR10

It seems self.dst_train is not a tensor but a list.
From the example which is @ptrblck mentioned,

The dataset is a tensor has size of (100, 1) but your self.dst_train is a list.
List type cannot be indexed with list where a tensor can do.

Try convert self.dst_train to a tensor.
Should work