pytorch调用inception-v3报错 'max() received an invalid combination of arguments'
pytorch调用inception-v3报错:
1 | error: |
软件版本:
- python: 3.7.7
- pytorch: 1.4.0
- torchvision: 0.5.0
解决办法:
-
1
2
3model_ft = models.inception_v3(pretrained=True)
# 加入下面这一行
model_ft.aux_logits=False