data icon indicating copy to clipboard operation
data copied to clipboard

DataPipes for Error Handling and Retry

Open NivekT opened this issue 2 years ago • 1 comments

🚀 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

NivekT avatar Jan 24 '23 23:01 NivekT