krishna511:

slice() cannot be applied to a 0-dim tensor. in line (in class Dataset)


@ptrblck sir what about this? I have changed the data to float() and targets as long(). Now it showing the above error at
return torch.FloatTensor(this.X[idx]), torch.LongTensor(this.y[idx])