mindspore.dataset.config.get_error_samples_mode

mindspore.dataset.config.get_error_samples_mode()

Get the current configuration for strategy for processing erroneous samples in a dataset pipeline. If set_error_samples_mode is 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 erroneous sample results in error raised and returned.

  • ErrorSamplesMode.REPLACE: means erroneous sample is replaced with an internally determined sample.

  • ErrorSamplesMode.SKIP: means erroneous sample is skipped.

Examples

>>> import mindspore.dataset as ds
>>> error_samples_mode = ds.config.get_error_samples_mode()