Skip to content

DataLoader2 does not properly reset iterator when using PrototypeMultiprocessingReadingService and prefetch #825

@NivekT

Description

@NivekT

🐛 Describe the bug

Vision team reported this behavior on Linux

dp = ...  # something with prefetch
dl = DataLoader2(reading_service=PrototypeMultiProcessingReadingService())
for _ in dl:
    # this works fine

for _ in dl:
    # dl is empty now, this never gets hit!

Versions

#815

cc: @VitalyFedyunin

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