title: 'ToPILImage' object has no attribute 'show'
body: <p>I'm doing an image processing task and I want to concat two sites of pictures. For concatting, I first converted the image to tensor, then converted the tensor to a PIL image to display it, but it was reported incorrectly.Could someone please help me?
  Here is my code:</p>
  
  <pre><code>import skimage.io as io
  import torch
  from torchvision import  models, transforms
  from PIL import Image
  import matplotlib.pyplot as plt
  from torchvision.transforms import ToPILImage
  import numpy as np
  from skimage import data_dir,io,color
  
  coll1 = io.ImageCollection('F:\\code1/*.jpg')
  coll2 = io.ImageCollection('F:\\code2/*.jpg')
  a = torch.tensor(coll1)
  print(a)
  print(a.shape)
  b = torch.tensor(coll2)
  print(b)
  print(b.shape)
  c=torch.cat((a,b),1)
  print(c.shape)
  print(c)
  img= transforms.ToPILImage()
  img.show()
  </code></pre>
  
  <p>and here is the error code:</p>
  
  <blockquote>
    <p>Traceback (most recent call last):   File "F:/filelist.py", line 39,
    in 
        img.show() AttributeError: 'ToPILImage' object has no attribute 'show'</p>
  </blockquote>