Skip to content

Update transfer_learning_tutorial.py #57

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

Merged
merged 2 commits into from
Apr 9, 2017
Merged

Conversation

kli-casia
Copy link
Contributor

No description provided.

@@ -297,7 +297,7 @@ def optim_scheduler_ft(model, epoch, init_lr=0.001, lr_decay_epoch=7):
param.requires_grad = False

# Parameters of newly constructed modules have requires_grad=True by default
model.fc = nn.Linear(512, 100)
model.fc = nn.Linear(512, 2)

This comment was marked as off-topic.

@chsasank chsasank merged commit 1c780e8 into pytorch:master Apr 9, 2017
@chsasank
Copy link
Contributor

chsasank commented Apr 9, 2017

Thanks!

chsasank added a commit that referenced this pull request Apr 9, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants