title: How to convert an list of image into Pytorch Tensor
body: <p>I have a list called <code>wordImages</code>. It contains images in np.array format with different width &amp; height.</p>
  
  <p>How Do I convert this into a tensor and use this instead of <code>my_dataset</code> in the below code?</p>
  
  <p>Currently i am using this. But I need to save/read images</p>
  
  <pre><code>demo_data = RawDataset(root="output_craft/", opt=opt) 
  
  demo_loader = torch.utils.data.DataLoader(
                  demo_data , batch_size=opt.batch_size,
                  shuffle=False,
                  num_workers=int(opt.workers),
                  collate_fn=AlignCollate_demo, pin_memory=True)
  </code></pre>