Skip to content

Commit

Permalink
added missing non-linearity
Browse files Browse the repository at this point in the history
  • Loading branch information
soumith authored Mar 5, 2020
1 parent 47f09db commit dce9319
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions mnist/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ def forward(self, x):
x = self.conv1(x)
x = F.relu(x)
x = self.conv2(x)
x = F.relu(x)
x = F.max_pool2d(x, 2)
x = self.dropout1(x)
x = torch.flatten(x, 1)
Expand Down

0 comments on commit dce9319

Please sign in to comment.