Dataset.map Ignore failed batches

I often use the batch mode of dataset.map to process large amounts of data. Since there may be some format problems in the data, some batches may fail in the map (while most batches are OK).

Is there some way to ignore the failed batches and return the successful batches?

1 Like

For example, how about just use Python Exception?

Thanks, It’s helpful !

1 Like

This topic was automatically closed 12 hours after the last reply. New replies are no longer allowed.