Commit 6617f31d authored by Yong Tang's avatar Yong Tang
Browse files

Fix infinite loop when ignore_errors is used with TFRecordDataset



This fix tries to address the issue raised in 25700 where
ignore_errors combined with TFRecordDataset will have a infinite loop.
The issue was that when ignore errors happen, the index of the file names
are not moved forward with error returned. So the same file is repeated.

This fix is a short solution to fix it.

This fix fixes 25700.

Signed-off-by: default avatarYong Tang <yong.tang.github@outlook.com>
parent 1f856fb5
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment