Solved by ougni in post #3 
              
              
                Thanks for  you reply. I think I got it! 
I just need to reshape the “data.tensor” , so just updating the following line works: 
rt_mnist = torch.utils.data.TensorDataset(test_mnist.data.unsqueeze(1), test_mnist.targets)