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.

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

>>> error_samples_mode = ds.config.get_error_samples_mode()