I moved my model to gpu
net.to(device)

but when i try to test the model , as per the
Pytorch tutorial 40
dataiter = iter(testloader)
images, labels = dataiter.next()

imshow(torchvision.utils.make_grid(images))
print('GroundTruth: ', ' '.join('%5s' % classes[labels[j]] for j in range(4)))

outputs = net(images)  #This line throws the error

what is the issue ???