Skip to content

Commit

Permalink
added missing non-linearity
Browse files Browse the repository at this point in the history
  • Loading branch information
dalse52 committed Jan 5, 2024
1 parent ed40a2c commit 0d2a5c0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion mnist/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,9 @@ def __init__(self):

def forward(self, x):
x = self.conv1(x)
x = F.relu(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 0d2a5c0

Please sign in to comment.