title: pytorch data loader multiple iterations
body: <p>i use iris-dataset to train a simple network with pytorch.</p>
  
  <pre><code>trainset = iris.Iris(train=True)
  trainloader = torch.utils.data.DataLoader(trainset, batch_size=150,
                                            shuffle=True, num_workers=2)
  
  dataiter = iter(trainloader)
  </code></pre>
  
  <p>the dataset itself has only 150 data points, and pytorch dataloader iterates jus t once over the whole dataset, because of the batch size of 150.</p>
  
  <p>My question is now, is there generally any way to tell dataloader of pytorch to repeat over the dataset if it's once done with iteration? </p>
  
  <p>thnaks</p>
  
  <p><strong>update</strong></p>
  
  <p>got it runnning :)
  just created a sub class of dataloader and implemented my own <code>__next__()</code></p>