Skip to content

Commit

Permalink
updated train.py
Browse files Browse the repository at this point in the history
  • Loading branch information
IshanRattan committed Aug 7, 2024
1 parent 5fabafe commit 49b0abe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dl/image/classification/cifar10/train.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@


datasets = {'train':train_set, 'val':val_set}
dataloaders = {x: torch.utils.data.DataLoader(dataset=datasets[x], batch_size=batch_size, shuffle=True)
dataloaders = {x: torch.utils.data.DataLoader(dataset=datasets[x], batch_size=config.batch_size, shuffle=True)
for x in ['train', 'val']}

dataset_sizes = {x: len(datasets[x]) for x in ['train', 'val']}
Expand Down

0 comments on commit 49b0abe

Please sign in to comment.