Skip to content

Dataloader2 does not invoke set_seed if used without ReadingService #1107

@sehoffmann

Description

@sehoffmann

🐛 Describe the bug

See title: My custom datapipe with set_seed does not get invoked when using Dataloader2 (and calling seed(123)). This makes it impossible to fixate seeds when one does not want to use multiprocessing.

This is due to https://github.com/pytorch/data/blob/main/torchdata/dataloader2/dataloader2.py#L210

Versions

e78ab6c

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions