Hi Fancy!



 fancy:

My machine has 16 GB and runs out of memory instantly!


Furthermore, it looks like the full time and memory are taken up by
creating the iterator (or whatever implements for  item in data:)
rather than by actually executing the loop:
>>> import torch
>>> torch.__version__
'1.10.0'
>>> data = torch.rand (30000000)
>>> for  item in data:
...     break
...
>>> data = torch.rand (60000000)
>>> for  item in data:
...     break
...
Killed

Best.
K. Frank