说明:https://discuss.pytorch.org/t/how-to-modify-the-final-fc-layer-based-on-the-torch-model/766/12
That’s because vgg19 doesn’t have a fc member variable. Instead, it has a
(classifier): Sequential (
(0): Dropout (p = 0.5)
(1): Linear (25088 -> 40 <weixin_38546846> 上传 | 大小:25kb