‘InceptionOutputs‘ object has no attribute ‘log_softmax‘

Problem Statement.
When using inception_v3 with torchvision.models.inception_v3 today, an error was reported during training.
Solution.
Put net = torchvision.models.inception_v3(pretrained=False).to(DEVICE)
Change to
net = torchvision.models.inception_v3(aux_logits=False,pretrained=False).to(DEVICE)

Read More: