for images, _in train_dataloader: print(images.min(), images.max()) images= images.to(device) print(images.min(), images.max()) ...
After to(device), the range of images changed from [-1, 1] to (-inf, int).
To be more specific, the value of images after to(device) could become Nan or any arbitrary values.
What could be the possible reason for it?
Here are the images before to(device) and after:
I don’t understand why there could be some random horizontal lines or vertical lines which are pixels with arbitrary values