mindspore.dataset.config.set_fast_recovery

mindspore.dataset.config.set_fast_recovery(fast_recovery)

Set whether dataset pipeline should recover in fast mode during failover (In fast mode, random augmentations may not get same results as before the failure occurred).

Parameters

fast_recovery (bool) – Whether the dataset pipeline recovers in fast mode.

Raises

TypeError – If fast_recovery is not a boolean data type.

Examples

>>> import mindspore.dataset as ds
>>> ds.config.set_fast_recovery(False)