From a957cc22e7202afc341ff13e59bcc2f410b6ffcf Mon Sep 17 00:00:00 2001 From: Sangheyon Maeng Date: Wed, 28 Aug 2024 07:34:45 +0000 Subject: [PATCH 1/2] Correct typo in default value within help --- mnist/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mnist/main.py b/mnist/main.py index 7d7899d9..1bee55c4 100644 --- a/mnist/main.py +++ b/mnist/main.py @@ -77,7 +77,7 @@ def main(): parser.add_argument('--test-batch-size', type=int, default=1000, metavar='N', help='input batch size for testing (default: 1000)') parser.add_argument('--epochs', type=int, default=14, metavar='N', - help='number of epochs to train (default: 10)') + help='number of epochs to train (default: 14)') parser.add_argument('--lr', type=float, default=1.0, metavar='LR', help='learning rate (default: 1.0)') parser.add_argument('--gamma', type=float, default=0.7, metavar='M', From 3e7fc34b385763ebaae75f4ae9d6e15014f4ba1a Mon Sep 17 00:00:00 2001 From: Sangheyon Maeng Date: Wed, 28 Aug 2024 07:40:03 +0000 Subject: [PATCH 2/2] added missing non-linearity --- mnist/main.py | 1 - 1 file changed, 1 deletion(-) diff --git a/mnist/main.py b/mnist/main.py index 1bee55c4..393ba11f 100644 --- a/mnist/main.py +++ b/mnist/main.py @@ -26,7 +26,6 @@ def forward(self, x): x = self.dropout1(x) x = torch.flatten(x, 1) x = self.fc1(x) - x = F.relu(x) x = self.dropout2(x) x = self.fc2(x) output = F.log_softmax(x, dim=1)