Skip to content

Commit

Permalink
Revert "fix dataloaer for toolkit (PaddlePaddle#61867) (PaddlePaddle#…
Browse files Browse the repository at this point in the history
…61994)"

This reverts commit b50e906.
  • Loading branch information
hanhaowen-mt committed May 13, 2024
1 parent 126876b commit e627c5b
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions python/paddle/io/dataloader/dataloader_iter.py
Original file line number Diff line number Diff line change
Expand Up @@ -704,11 +704,10 @@ def _get_data(self):
if len(failed_workers) > 0:
self._exit_thread_unexpectedly()
pids = ', '.join(str(w.pid) for w in failed_workers)
logging.warning(
"DataLoader {} workers exit unexpectedly, "
"pids: {}".format(len(failed_workers), pids)
raise RuntimeError(
f"DataLoader {len(failed_workers)} workers exit unexpectedly, "
f"pids: {pids}"
)
return

# get(timeout) will call _poll(timeout) and may raise IOError
if isinstance(e, (IOError, queue.Empty)):
Expand Down

0 comments on commit e627c5b

Please sign in to comment.