mindspore.dataset.config.get_error_samples_mode
- mindspore.dataset.config.get_error_samples_mode()
Get the current strategy for processing erroneous samples in a dataset pipeline. If set_error_samples_mode has never called before, the default setting is ErrorSamplesMode.RETURN.
- Returns:
ErrorSamplesMode. The method in which erroneous samples should be processed in a dataset pipeline.
ErrorSamplesMode.RETURN: means an erroneous sample results in an error being raised and returned.
ErrorSamplesMode.REPLACE: means an erroneous sample is replaced with an internally determined sample.
ErrorSamplesMode.SKIP: means an erroneous sample is skipped.
Examples
>>> import mindspore.dataset as ds >>> error_samples_mode = ds.config.get_error_samples_mode()