fixed num_workers (#229)

* fixed num_workers

* ch06 & ch07: added num_workers to create_dataloader_v1
This commit is contained in:
Daniel Kleine
2024-06-20 00:36:46 +02:00
committed by GitHub
parent 24523bd34d
commit bbb2a0c3d5
15 changed files with 20 additions and 20 deletions

View File

@@ -128,7 +128,7 @@
" batch_size=batch_size,\n",
" shuffle=shuffle,\n",
" drop_last=drop_last,\n",
" num_workers=0\n",
" num_workers=num_workers\n",
" )\n",
"\n",
" return dataloader"