data icon indicating copy to clipboard operation
data copied to clipboard

Add documentation about custom random DataPipe

Open NivekT opened this issue 1 year ago • 0 comments

📚 The doc issue

Similar to #1104, DataLoader2 has built-in functionality to set random seed for DataPipes when they have set_seed method implemented.

https://github.com/pytorch/data/blob/main/torchdata/dataloader2/graph/settings.py#L22

We should provide official guidance about what we expect users to implement in cases where a custom random DataPipe is implemented/necessary.

Suggest a potential alternative/fix

No response

NivekT avatar Mar 21 '23 21:03 NivekT