Skip to content

Commit

Permalink
Change test DataLoader to use the test batch size
Browse files Browse the repository at this point in the history
The batch size for the training set was erroneously used for instantiating the DataLoader class for the test set.
  • Loading branch information
rdinse authored and soumith committed Sep 5, 2017
1 parent 2dca104 commit 930ae27
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mnist/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
transforms.ToTensor(),
transforms.Normalize((0.1307,), (0.3081,))
])),
batch_size=args.batch_size, shuffle=True, **kwargs)
batch_size=args.test_batch_size, shuffle=True, **kwargs)


class Net(nn.Module):
Expand Down

0 comments on commit 930ae27

Please sign in to comment.