alexbauer-pf commited on
Commit
a8dd00d
·
verified ·
1 Parent(s): a9111d2

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +1 -1
README.md CHANGED
@@ -378,7 +378,7 @@ full_flat_ds = full_flat_ds.select_columns([c for c in full_flat_ds.column_names
378
  device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
379
  ds_torch = full_flat_ds.with_format("torch", device=device) # other options: "jax", "tensorflow" etc.
380
 
381
- for batch in DataLoader(ds_torch, batch_size=4):
382
  print(batch)
383
  break
384
  ```
 
378
  device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
379
  ds_torch = full_flat_ds.with_format("torch", device=device) # other options: "jax", "tensorflow" etc.
380
 
381
+ for batch in DataLoader(ds_torch, batch_size=4, num_workers=4):
382
  print(batch)
383
  break
384
  ```