I didn’t get you, You used a Tensor in self.data, but my dataset is an object, which when wrapped under ImageDataset gives an iterator, how can i make it usable with self.data in datasetA and datasetB