title: How to load dataset from pickle files into PyTorch?
body: <p>I have X_train(inputs) and Y_train(labels) in separate pickle files in form of integer matrices. Now, I need to load them and train using PyTorch. I tried <code>torch.utils.data.DataLoader</code> and <code>torchvision.datasets.DatasetFolder</code> but nothing worked or I might be getting wrong somewhere. Please suggest a proper way for the same.</p>