Solved by ptrblck in post #5 
              
              
                That’s strange, since the data loading time seem to be completely hidden behind the computation. 
I just tried your code on my machine and simplified it a bit: 

removed the test loop
used random inputs (torch.randn as data and torch.randint as target)
used an input batch of [20, 1, 100]


Using thi…