Skip to content

Commit

Permalink
Update main.py (pytorch#1095)
Browse files Browse the repository at this point in the history
val data should not shuffle
  • Loading branch information
daming-lu committed Nov 29, 2022
1 parent 1b36393 commit 387ce7b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vae/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
batch_size=args.batch_size, shuffle=True, **kwargs)
test_loader = torch.utils.data.DataLoader(
datasets.MNIST('../data', train=False, transform=transforms.ToTensor()),
batch_size=args.batch_size, shuffle=True, **kwargs)
batch_size=args.batch_size, shuffle=False, **kwargs)


class VAE(nn.Module):
Expand Down

0 comments on commit 387ce7b

Please sign in to comment.