-
Notifications
You must be signed in to change notification settings - Fork 1.5k
CSVIterableDataset doesn't work in the same way as CSVDataset #3195
Copy link
Copy link
Closed
Labels
questionFurther information is requestedFurther information is requested
Milestone
Description
Is your feature request related to a problem? Please describe.
Here is the feedback from @holgerroth :
When I am using CSVIterableDataset, I get this error
Traceback (most recent call last):
File "run_classification_criteo_monai_mlp.py", line 227, in <module>
main()
File "run_classification_criteo_monai_mlp.py", line 143, in main
f"{step}/{len(train_ds) // train_loader.batch_size}, "
TypeError: object of type 'CSVIterableDataset' has no len()
Also, trying to set shuffle=True for the training dataset gives
Traceback (most recent call last):
File "run_classification_criteo_monai_mlp.py", line 227, in <module>
main()
File "run_classification_criteo_monai_mlp.py", line 87, in main
train_loader = torch.utils.data.DataLoader(
File "/home/hroth/.local/lib/python3.8/site-packages/torch/utils/data/dataloader.py", line 224, in __init__
raise ValueError(
ValueError: DataLoader with IterableDataset: expected unspecified shuffle option, but got shuffle=True
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
questionFurther information is requestedFurther information is requested