Solved by ptrblck in post #4 
              
              
                You are passing the DataLoader directly to the model in: 
result=model(test_loader)

while you would have to iterate the DataLoader and pass the input tensors to the model. 
Take a look at this tutorial for a simple example. 
In your case something like: 
for data, target in test_loader:
    output …