I think we solved the problem, but now I encounter an error in the iterator. Can you explain what is the source of these problems?
 len(valid_data_loader)
 iterator = iter(valid_data_loader)
 x,y = next(iterator)


TypeError                                 Traceback (most recent call last)
 in ()
1 len(valid_data_loader)
2 iterator = iter(valid_data_loader)
----> 3 x,y = next(iterator)
7 frames
/usr/local/lib/python3.6/dist-packages/torchvision/transforms/functional.py in resize(img, size, interpolation)
317     “”"
318     if not _is_pil_image(img):
–> 319         raise TypeError(‘img should be PIL Image. Got {}’.format(type(img)))
320     if not (isinstance(size, int) or (isinstance(size, Iterable) and len(size) == 2)):
321         raise TypeError(‘Got inappropriate size arg: {}’.format(size))
TypeError: img should be PIL Image. Got <class ‘torch.Tensor’>