Open ceo21ckim opened 8 months ago
def __getitem__(self, idx): item = {key: val[idx].clone().detach() for key, val in self.datasets.items()} return item, torch.tensor(self.labels[idx])