Solved by grsilva in post #4 
              
              
                PyTorch most basic working element is a tensor. So, when you are loading your data set through enumerate(train_iterator) you are already dealing with tensors. Basically what you have to do is just not transform into Numpy (erase it detach().numpy()). 
Then the underlying problem is how to deal with …