Skip to content

Commit

Permalink
fix error in resnet34 of chapter4
Browse files Browse the repository at this point in the history
  • Loading branch information
chenyuntc committed Mar 18, 2018
1 parent 584251c commit fc59e3d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions chapter4-神经网络工具箱nn/chapter4.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -1871,10 +1871,10 @@
" nn.MaxPool2d(3, 2, 1))\n",
" \n",
" # 重复的layer,分别有3,4,6,3个residual block\n",
" self.layer1 = self._make_layer( 64, 128, 3)\n",
" self.layer2 = self._make_layer( 128, 256, 4, stride=2)\n",
" self.layer3 = self._make_layer( 256, 512, 6, stride=2)\n",
" self.layer4 = self._make_layer( 512, 512, 3, stride=2)\n",
" self.layer1 = self._make_layer( 64, 64, 3)\n",
" self.layer2 = self._make_layer( 64, 128, 4, stride=2)\n",
" self.layer3 = self._make_layer( 128, 256, 6, stride=2)\n",
" self.layer4 = self._make_layer( 256, 512, 3, stride=2)\n",
"\n",
" #分类用的全连接\n",
" self.fc = nn.Linear(512, num_classes)\n",
Expand Down

0 comments on commit fc59e3d

Please sign in to comment.