Skip to content

Commit

Permalink
Fix densenet AdaptiveMaxPool2d
Browse files Browse the repository at this point in the history
  • Loading branch information
astonzhang authored Jan 20, 2022
1 parent 801e499 commit f6b1dd0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion chapter_convolutional-modern/densenet.md
Original file line number Diff line number Diff line change
Expand Up @@ -340,7 +340,7 @@ net.add(nn.BatchNorm(),
net = nn.Sequential(
b1, *blks,
nn.BatchNorm2d(num_channels), nn.ReLU(),
nn.AdaptiveMaxPool2d((1, 1)),
nn.AdaptiveAvgPool2d((1, 1)),
nn.Flatten(),
nn.Linear(num_channels, 10))
```
Expand Down

0 comments on commit f6b1dd0

Please sign in to comment.