ptrblck:

Shuffling will shuffle each tensor in the same way


This what I also assumed, but when I get a single batch without shuffle the pairs works fine. Only when shuffle is true the input and target tensors are no longer pairs. Note: to check the the issue of shuffling I have made the input and target with same shape and same values, and I found that they are shuffled independently. So, please, can you help with this