New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Chapter 4 - Replacing the Classifier #35
Comments
Hmm, I cannot reproduce this error. After redefining this with
when you run |
Thank you for your reply. 😁 |
transfer_model.fc = nn.Sequential(nn.Linear(transfer_model.fc.in_features, 500),
nn.ReLU(),
nn.Dropout(),
nn.Linear(500,2))
AttributeError: 'Sequential' object has no attribute 'in_features'
The text was updated successfully, but these errors were encountered: