diff --git a/mnist/main.py b/mnist/main.py index 7d7899d9..df88f40d 100644 --- a/mnist/main.py +++ b/mnist/main.py @@ -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) @@ -77,7 +78,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', @@ -94,7 +95,6 @@ def main(): help='For Saving the current Model') args = parser.parse_args() use_cuda = not args.no_cuda and torch.cuda.is_available() - torch.manual_seed(args.seed) device = torch.device("cuda" if use_cuda else "cpu") @@ -132,3 +132,30 @@ def main(): if __name__ == '__main__': main() + + + + + + + + + + + + + + + + + + + + + + + + + + +