It gives an error
TypeError                                 Traceback (most recent call last)
<ipython-input-79-f4dfad644a8d> in <module>()
      3 import torch
      4 start=time.time()
----> 5 a = torch.Tensor(IPython.display.Image(url))
      6 
      7 a = Resize(512)(a)

TypeError: new(): data must be a sequence (got Image)