Update README.md
Browse files
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 |
```
|