Skip to content

Commit 3e57431

Browse files
committed
added a warning in 09_dataloader.py for num_workers fail
1 parent 60bf138 commit 3e57431

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

09_dataloader.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ def __len__(self):
5858
# Load whole dataset with DataLoader
5959
# shuffle: shuffle data, good for training
6060
# num_workers: faster loading with multiple subprocesses
61+
# !!! IF YOU GET AN ERROR DURING LOADING, SET num_workers TO 0 !!!
6162
train_loader = DataLoader(dataset=dataset,
6263
batch_size=4,
6364
shuffle=True,

0 commit comments

Comments
 (0)