title: Cifar10 dataset: read certain number of images from a class
body: <p>I am currently learning deep learning with Pytorch and doing some experiment with <code>Cifar 10</code> dataset. Which is having 10 classes each class is having 5000 test images. I want to use only 60% of dog and deer classes data and 100% data of other classes.</p>
  
  <p>As per my understanding I need to use custom dataset. But I am not actually able to figure it out. Any Idea, sample code or link if you can share will be helpful for me.  </p>