Merge pull request #148 from NumesSanguis/master

Fix PyTorch example, test_loader was using train batch_size instead of test_batch_size
This commit is contained in:
Allegro AI 2020-06-19 17:00:58 +03:00 committed by GitHub
commit c50574ca4d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -118,7 +118,7 @@ def main():
transform=transforms.Compose([
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)
model = Net()
if args.cuda:

View File

@ -118,7 +118,7 @@ def main():
transform=transforms.Compose([
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)
model = Net()
if args.cuda: