This solution worked;
model = models.inception_v3(pretrained=True) model.aux_logits = False
Found the solution here;