-
Notifications
You must be signed in to change notification settings - Fork 16
Open
Description
Is it possible to use dataloader with a custom sample/batch_sampler? At the moment, I cannot find any useful information on using poptorch's dataloader with custom sampler. Are there plans to support it, or is custom sampler impossible due to IPU design?
Edit: At the moment, using a custom batch_sampler would results in the following error:
Traceback (most recent call last):
File "train-ipu.py", line 488, in <module>
main()
File "train-ipu.py", line 446, in main
train_dataloader = poptorch.DataLoader(opts,train_dataset,collate_fn=collate_fn, batch_sampler=box_sampler)
File "/usr/local/lib/python3.8/dist-packages/poptorch/__init__.py", line 356, in __init__
super().__init__(dataset,
File "/usr/local/lib/python3.8/dist-packages/torch/utils/data/dataloader.py", line 251, in __init__
raise ValueError('batch_sampler option is mutually exclusive '
ValueError: batch_sampler option is mutually exclusive with batch_size, shuffle, sampler, and drop_last
Metadata
Metadata
Assignees
Labels
No labels