Skip to content

DataPipes for Error Handling and Retry #962

Open
@NivekT

Description

@NivekT

🚀 The feature

Provide a mechanism to catch exception raised by a previous DataPipe and retry. These can be related but separate DataPipes. Non-DataPipes implementation should also be considered.

Motivation, pitch

Currently, there is no standard mechanism to handle exception from a source DataPipe. One example of such issues is raised on the PyTorch forum.

Alternatives

Given how iterators are implemented, it is unclear to me if this is feasible as a DataPipe implementation. We may have to modify the iterator wrapper within _hook_iterator.py (inside PyTorch core) to make this feature possible.

We can also consider modifying specific DataPipes where custom error handling and retries are frequently needed .

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions