title: Pytorch: best practice to save list of tensors?
body: <p>I use tensors to do transformation then I save it in a list. Later, I will make it a dataset using <code>Dataset</code>, then finally <code>DataLoader</code> to train my model. To do it, I can simply use:</p>
  <pre><code>l = [tensor1, tensor2, tensor3,...]
  dataset = Dataset.TensorDataset(l)
  dataloader = DataLoader(dataset)
  </code></pre>
  <p>I wonder what is the best practice doing so, to avoid RAM overflow if the size of <code>l</code> grows? Can something like <code>Iterator</code> avoid it?</p>