I am training with vgg net, but came across the error:  ‘VGG’ object has no attribute ‘fc’.
but there are no similar errors with inception v3 and resnet. I have trained them early. and now is with vgg.
the part code is follow:
model = models.vgg16(pretrained=True)
num_ftrs = model.fc.in_features  #(error is here  )
model.fc = nn.Linear(num_ftrs, num)