Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Update 15_transfer_learning.py#6

Open
ipesanz wants to merge 1 commit into
patrickloeber:master from
ipesanz:patch-1
Open

Update 15_transfer_learning.py #6
ipesanz wants to merge 1 commit into
patrickloeber:master from
ipesanz:patch-1

Conversation

@ipesanz

@ipesanz ipesanz commented Jun 14, 2021
edited
Loading

Copy link
Copy Markdown

Add comment to have a FC layer of the same size as len(class_name)... it was commented on l:138 but not in l:172

Add comment to have a FC layer of the same size as len(class_name)... it was commented on l:138 but in l:172
Comment thread 15_transfer_learning.py
num_ftrs = model_conv.fc.in_features
model_conv.fc = nn.Linear(num_ftrs, 2)

# Creating a FC layer of the same size as our categories

@patrickloeber patrickloeber Jun 22, 2021

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please move this to line 168 and use this comment:

Creating a FC layer of the same size as our categories.

Parameters of newly constructed layers have requires_grad=True by default

@patrickloeber patrickloeber Jun 22, 2021

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like a # is rendered as headline here in markdown :D

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@patrickloeber patrickloeber patrickloeber requested changes

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

AltStyle によって変換されたページ (->オリジナル) /