model = models.inception_v3(pretrained=True)
for data in dataloders[‘val’]:
inputs, labels = data
inputs, labels = Variable(inputs), Variable(labels)
outputs = model(inputs)
_, preds = torch.max(outputs.data, 1)
Then, from the last line, I got the AttributeError: ‘tuple’ object has no attribute ‘data’, however, when I was using pretrained resnet or densetnet, no errors like this.