From baee127a4ccf213a283d38c8be775214ede997da Mon Sep 17 00:00:00 2001 From: fordai <48076288+fordai@users.noreply.github.com> Date: Tue, 25 May 2021 15:10:04 +0800 Subject: [PATCH] Update 3_neural_networks_tutorial.ipynb MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 该类不存在名为num_flot_features的方法,此处应调用名为num_flat_features的方法。 --- chapter1/3_neural_networks_tutorial.ipynb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chapter1/3_neural_networks_tutorial.ipynb b/chapter1/3_neural_networks_tutorial.ipynb index ac5351c..483d7dc 100644 --- a/chapter1/3_neural_networks_tutorial.ipynb +++ b/chapter1/3_neural_networks_tutorial.ipynb @@ -92,7 +92,7 @@ " x = F.max_pool2d(F.relu(self.conv1(x)), (2, 2))\n", " # If the size is a square you can only specify a single number\n", " x = F.max_pool2d(F.relu(self.conv2(x)), 2)\n", - " x = x.view(-1, self.num_flot_features(x))\n", + " x = x.view(-1, self.num_flat_features(x))\n", " x = F.relu(self.fc1(x))\n", " x = F.relu(self.fc2(x))\n", " x = self.fc3(x)\n",