Skip to content

Commit 930ae27

Browse files
rdinsesoumith
authored andcommitted
Change test DataLoader to use the test batch size
The batch size for the training set was erroneously used for instantiating the DataLoader class for the test set.
1 parent 2dca104 commit 930ae27

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mnist/main.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646
transforms.ToTensor(),
4747
transforms.Normalize((0.1307,), (0.3081,))
4848
])),
49-
batch_size=args.batch_size, shuffle=True, **kwargs)
49+
batch_size=args.test_batch_size, shuffle=True, **kwargs)
5050

5151

5252
class Net(nn.Module):

0 commit comments

Comments
 (0)